Using a Function from a Blueprint Library inside a Macro from a Macro Library will cause a crash when using Standalone Game for PIE. The same setup will function as expected when Playing in Selected Viewport.
1. Create a new Third Person Blueprint template project
2. Create a new Function Library
3. Create a new Function "GetCharacterMeshComponent"
4. Give the new function an input of type Character
5. Give the new function an output of type MeshComponent
6. Cast to MyCharacter from the input
7. Get Mesh and attach to the output
8. Create a new Macro Library based on Actor
9. Create a new Macro "GetMyCharacterMeshName"
10. Give the new macro Exec and Character inputs
11. Give the new macro Exec and String outputs
12. Get Character Mesh Component from the input
13. Get Display Name and attach to the output
14. Open the MyCharacter Blueprint
15. Event Begin Play
16. GetMyCharacterMeshName off of a reference to Self
17. Attach the output to a Print String
18. Play in Selected Viewport
19. Play in Standalone Game
Result:
The Standalone Game crashes
<unknown module>! UE4Editor_Core!FOutputDeviceWindowsError::Serialize() <unknown module>! UE4Editor_Core!FOutputDevice::Logf__VA() <unknown module>! UE4Editor_Core!FDebug::AssertFailed() <unknown module>! UE4Editor_CoreUObject!UObject::CallFunction() <unknown module>! UE4Editor_CoreUObject!UObject::execVirtualFunction() <unknown module>! UE4Editor_CoreUObject!UObject::ProcessContextOpcode() <unknown module>! UE4Editor_CoreUObject!UObject::ProcessInternal() <unknown module>! UE4Editor_CoreUObject!UObject::CallFunction() <unknown module>! UE4Editor_CoreUObject!UObject::execVirtualFunction() <unknown module>! UE4Editor_CoreUObject!UObject::ProcessInternal() <unknown module>! UE4Editor_CoreUObject!UFunction::Invoke() <unknown module>! UE4Editor_CoreUObject!UObject::ProcessEvent() <unknown module>! UE4Editor_Engine!AActor::ProcessEvent() <unknown module>! UE4Editor_Engine!AWorldSettings::NotifyBeginPlay() <unknown module>! UE4Editor_Engine!AGameMode::HandleMatchHasStarted() <unknown module>! UE4Editor_Engine!AGameMode::SetMatchState() <unknown module>! UE4Editor_Engine!AGameMode::StartMatch() <unknown module>! UE4Editor_Engine!UEngine::LoadMap() <unknown module>! UE4Editor_Engine!UEngine::Browse() <unknown module>! UE4Editor_Engine!UGameInstance::StartGameInstance() <unknown module>! UE4Editor_Engine!UGameEngine::Init() <unknown module>! UE4Editor!FEngineLoop::Init() <unknown module>! UE4Editor!GuardedMain() <unknown module>! UE4Editor!GuardedMainWrapper() <unknown module>! UE4Editor!WinMain() <unknown module>! UE4Editor!__tmainCRTStartup()
Head over to the existing Questions & Answers thread and let us know what's up.
2 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.6.1, 4.8, 4.13 |
Target Fix | 4.16 |
Created | Jan 9, 2015 |
---|---|
Resolved | Jan 11, 2017 |
Updated | Feb 5, 2017 |