Author Topic: Packaged Project Crash  (Read 7636 times)

Hello, I am currently working with Josh Trevisiol, and I have a separate issue than him. When packaging a project, and launching the unreal .exe, I get an instant crash and this callstack:


Fatal error: [File:F:\Documents\Unreal\Engine\Source\Runtime\Core\Private\Windows\WindowsPlatformMisc.cpp] [Line: 305]
Pure virtual function being called

Code: [Select]
KERNELBASE.dll!UnknownFunction (0x00007ffddad9606c) + 0 bytes [UnknownFile:0]
Veg.exe!FOutputDeviceWindowsError::Serialize() (0x00007ff7915d42c5) + 0 bytes [f:\documents\unreal\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:95]
Veg.exe!FMsg::Logf__VA() (0x00007ff7914517f4) + 0 bytes [f:\documents\unreal\engine\source\runtime\core\private\misc\outputdevice.cpp:526]
Veg.exe!PureCallHandler() (0x00007ff79154d49d) + 0 bytes [f:\documents\unreal\engine\source\runtime\core\private\windows\windowsplatformmisc.cpp:307]
MSVCR120.dll!UnknownFunction (0x00007ffdad5eddb0) + 0 bytes [UnknownFile:0]
Veg.exe!FUntypedBulkData::GetBulkDataSize() (0x00007ff79163fc3f) + 9 bytes [f:\documents\unreal\engine\source\runtime\coreuobject\private\serialization\bulkdata.cpp:271]
Veg.exe!Substance::Helpers::PrepareFileImageInput_GetBGRA() (0x00007ff793fd7d28) + 21 bytes [f:\documents\unreal\projects\veg\plugins\substance\source\substancecore\private\substancecorehelpers.cpp:1255]
Veg.exe!Substance::Helpers::PrepareFileImageInput() (0x00007ff793fd7c0d) + 0 bytes [f:\documents\unreal\projects\veg\plugins\substance\source\substancecore\private\substancecorehelpers.cpp:1333]
Veg.exe!Substance::FImageInputInstance::SetImageInput() (0x00007ff793fdb963) + 65 bytes [f:\documents\unreal\projects\veg\plugins\substance\source\substancecore\private\substancestructures.cpp:520]
Veg.exe!Substance::Helpers::SetDelayedImageInput() (0x00007ff793fdb8a6) + 0 bytes [f:\documents\unreal\projects\veg\plugins\substance\source\substancecore\private\substancecorehelpers.cpp:198]
Veg.exe!Substance::Helpers::PerformDelayedRender() (0x00007ff793fd6603) + 0 bytes [f:\documents\unreal\projects\veg\plugins\substance\source\substancecore\private\substancecorehelpers.cpp:250]
Veg.exe!FSubstanceCoreModule::OnWorldInitialized() (0x00007ff793fd61e7) + 0 bytes [f:\documents\unreal\projects\veg\plugins\substance\source\substancecore\private\substancecoremodule.cpp:59]
Veg.exe!TBaseStaticDelegateInstance<void __cdecl(UWorld * __ptr64,UWorld::InitializationValues)>::ExecuteIfSafe() (0x00007ff79315ee04) + 0 bytes [f:\documents\unreal\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:876]
Veg.exe!TBaseMulticastDelegate<void,UWorld * __ptr64,UWorld::InitializationValues const >::Broadcast() (0x00007ff792d754d8) + 19 bytes [f:\documents\unreal\engine\source\runtime\core\public\delegates\delegatesignatureimpl_variadics.inl:978]
Veg.exe!UWorld::InitWorld() (0x00007ff792d9439c) + 0 bytes [f:\documents\unreal\engine\source\runtime\engine\private\world.cpp:929]
Veg.exe!UEngine::LoadMap() (0x00007ff792d3468b) + 0 bytes [f:\documents\unreal\engine\source\runtime\engine\private\unrealengine.cpp:8887]
Veg.exe!UEngine::Browse() (0x00007ff792d014fd) + 43 bytes [f:\documents\unreal\engine\source\runtime\engine\private\unrealengine.cpp:8100]
Veg.exe!UGameInstance::StartGameInstance() (0x00007ff7928a1e30) + 40 bytes [f:\documents\unreal\engine\source\runtime\engine\private\gameinstance.cpp:296]
Veg.exe!UGameEngine::Init() (0x00007ff79288ac86) + 0 bytes [f:\documents\unreal\engine\source\runtime\engine\private\gameengine.cpp:480]
Veg.exe!FEngineLoop::Init() (0x00007ff7912f962f) + 0 bytes [f:\documents\unreal\engine\source\runtime\launch\private\launchengineloop.cpp:1919]
Veg.exe!GuardedMain() (0x00007ff7912f89ed) + 0 bytes [f:\documents\unreal\engine\source\runtime\launch\private\launch.cpp:129]
Veg.exe!GuardedMainWrapper() (0x00007ff7912f8ada) + 5 bytes [f:\documents\unreal\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
Veg.exe!WinMain() (0x00007ff791305d89) + 17 bytes [f:\documents\unreal\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
Veg.exe!__tmainCRTStartup() (0x00007ff79402d1c9) + 21 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]
KERNEL32.DLL!UnknownFunction (0x00007ffddbbb16ad) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007ffddd8f4409) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007ffddd8f4409) + 0 bytes [UnknownFile:0]

A number of these lines reference Substance, and so I figured I could get help here. The odd portion is that the file url points to my unreal folder, when this is a development build that is in my O drive.

I am currently using the most up to date plugin for Unreal 4.6

Hi shadowranpu,

Sorry to see you having this issue! What version of UE4 are you running your project on, and what version of the Substance Plugin?

Unreal 4.6 (release version, not 4.6.1), and the latest substance 4.6 plugin.

Additional information:

We found a project build from 4.5.1 and it works fine, but this issue has only cropped up in 4.6.

Thanks for the info shadowranpu, we'll start looking into it and let you know what turns up.

Hi shadowranpu,

I've been unable to reproduce the bug you're describing. From your callstack it looks like the crash happens when a Substance Image Input is being used, but the crash seems to be a pure function call in FUntypedBulkData::GetBulkDataSize. Did you make any modifications to FUntypedBulkData or FByteBulkData? Does the bug only happen with a packaged project?
Regards,

Antoine

Shadowranpu, the next time you get the crash, can you attach or email us the crash logs?

This page will show you where to find them:
https://wiki.unrealengine.com/Locating_Project_Logs

The most important files are the .dmp files.

Created a more up-to-date Packaged Development Build, Attached the logs.

This only happens on a build or when simulating a launch in the editor. PIE works fine.

We haven't messed with FUntypedBulkData nor GetBulkDataSize.
Last Edit: January 07, 2015, 02:50:23 am

Can you give us some information about the setup of you scene? Number of Substances, Image Inputs, etc.
If you want to keep it confidential, you can send it via email at antoine.gonzalez@allegorithmic.com