Description

Result:
Crash while compiling modules for the project

Fatal error: [File:d:\Builds\Release-4.18\Engine\Source\Runtime\CoreUObject\Private\Templates\Casts.cpp] [Line: 10] Cast of nullptr to Package failed

Expected:
Feature pack is successfully added to the project.

The only feature pack I hit this with is the C++ First Person feature pack. Crash looks like it occurs while trying to compile the modules for the project. I noticed that even though this crash occurs, a lot of the source and header files for the feature pack are added to the project. When I noticed that I opened the project and PIE-Viewport. Only issue was the projectiles were not rendering. I did see the physics/collision of a projectile hitting the cubes in the map.That being said, the header and source file for the projectile were missing from the C++ folder in the Content Browser and the Source folder in File Explorer.

Another anlalyst repro'd this on a binary build while they were set up for our normal workflows.

Steps to Reproduce

Repro:

  1. Create a blank Blueprint project
  2. In the Content Browser, press the green Add New button
  3. Click the Add Feature or Content pack option
  4. Add a C++ First Person feature pack to the project
Callstack
UE4Editor_CoreUObject!CastLogError() casts.cpp:11 
UE4Editor_CoreUObject!CastChecked<UPackage,UObject>() casts.h:211 
UE4Editor_CoreUObject!UE4CodeGen_Private::ConstructUPackage() uobjectglobals.cpp:4418 
UE4Editor_MyProject3!Z_Construct_UPackage__Script_MyProject3() 
UE4Editor_CoreUObject!UE4CodeGen_Private::ConstructUClass() uobjectglobals.cpp:4443 
UE4Editor_MyProject3!Z_Construct_UClass_AFP_FirstPersonCharacter() 
UE4Editor_CoreUObject!UObjectLoadAllCompiledInDefaultProperties() uobjectbase.cpp:742 
UE4Editor_CoreUObject!ProcessNewlyLoadedUObjects() uobjectbase.cpp:839 
UE4Editor_CoreUObject!TBaseStaticDelegateInstance<void __cdecl() delegateinstancesimpl.h:1027 
UE4Editor_Core!TBaseMulticastDelegate<void>::Broadcast() delegatesignatureimpl.inl:937 
UE4Editor_Core!FModuleManager::LoadModuleWithFailureReason() modulemanager.cpp:487 
UE4Editor_Core!FModuleManager::LoadModule() modulemanager.cpp:338 
UE4Editor_Core!FModuleManager::LoadModuleWithCallback() modulemanager.cpp:1107 
UE4Editor_HotReload!FHotReloadModule::RecompileModule() hotreload.cpp:726 
UE4Editor_UnrealEd!UPackFactory::FactoryCreateBinary() packfactory.cpp:713 
UE4Editor_UnrealEd!UFactory::FactoryCreateBinary() factory.h:290 
UE4Editor_UnrealEd!UFactory::FactoryCreateFile() factory.cpp:86 
UE4Editor_UnrealEd!UFactory::ImportObject() factory.cpp:169 
UE4Editor_AssetTools!UAssetToolsImpl::ImportAssetsInternal() assettools.cpp:1535 
UE4Editor_AssetTools!UAssetToolsImpl::ImportAssets() assettools.cpp:783 
UE4Editor_AddContentDialog!FFeaturePackContentSource::InstallToProject() featurepackcontentsource.cpp:280 
UE4Editor_AddContentDialog!SAddContentWidget::AddButtonClicked() saddcontentwidget.cpp:328 
UE4Editor_AddContentDialog!TMemberFunctionCaller<SAddContentWidget,FReply() delegateinstanceinterface.h:165 
UE4Editor_AddContentDialog!UE4Tuple_Private::TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SAddContentWidget,FReply() tuple.h:497 
UE4Editor_AddContentDialog!TBaseSPMethodDelegateInstance<0,SAddContentWidget,0,FReply __cdecl() delegateinstancesimpl.h:327 
UE4Editor_Slate!TBaseDelegate<FReply>::Execute() delegatesignatureimpl.inl:537 
UE4Editor_Slate!SButton::OnMouseButtonUp() sbutton.cpp:282 
UE4Editor_Slate!<lambda_1002768c627006711ef2f351a87ec0e7>::operator() slateapplication.cpp:5263 
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_1002768c627006711ef2f351a87ec0e7> >() slateapplication.cpp:234 
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() slateapplication.cpp:5252 
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() slateapplication.cpp:5750 
UE4Editor_Slate!FSlateApplication::OnMouseUp() slateapplication.cpp:5730 
UE4Editor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() windowsapplication.cpp:1725 
UE4Editor_ApplicationCore!FWindowsApplication::DeferMessage() windowsapplication.cpp:2171 
UE4Editor_ApplicationCore!FWindowsApplication::ProcessMessage() windowsapplication.cpp:888 
UE4Editor_ApplicationCore!FWindowsApplication::AppWndProc() windowsapplication.cpp:725 
user32!<Unknown> 
user32!<Unknown> 
UE4Editor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() windowsplatformapplicationmisc.cpp:129 
UE4Editor!FEngineLoop::Tick() launchengineloop.cpp:3220 
UE4Editor!GuardedMain() launch.cpp:166 
UE4Editor!GuardedMainWrapper() launchwindows.cpp:134 
UE4Editor!WinMain() launchwindows.cpp:210 
UE4Editor!__scrt_common_main_seh() exe_common.inl:253 
kernel32!<Unknown> 
ntdll!<Unknown> 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-50616 in the post.

2
Login to Vote

Fixed
ComponentUE - Foundation - Core
Affects Versions4.18
Target Fix4.18
Fix Commit3677338
Release Commit3677338
CreatedOct 2, 2017
ResolvedOct 3, 2017
UpdatedApr 27, 2018