Download

[CRASH]Crash in-editor but not in compiled version[SOLVED]

Hey there,

So i have a problem for quite some time, whenever i use my menu in game i crash(in-editor). Out of the blue and i can’t fix it. Now, when i do this in the compiled version of my game i get no crash and i can use it.

Error is as following(in-editor):


MachineId:BED8DA784572E45DBB078C8D45763A52EpicAccountId:2623e85bbac44840af0f5ef6b5dbe93d


Unknown exception - code 00000001 (first/second chance not available)


Assertion failed: false [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.7\Engine\Source\Runtime\UMG\Private\Components\Widget.cpp] [Line: 551] 


KERNELBASE + 42141 bytes
UE4Editor_Core!FOutputDeviceWindowsError::Serialize() + 292 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:95]
UE4Editor_Core!FOutputDevice::Logf__VA() + 248 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\misc\outputdevice.cpp:144]
UE4Editor_Core!FDebug::AssertFailed() + 1079 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\misc\outputdevice.cpp:224]
UE4Editor_UMG!UWidget::ConvertSerializedVisibilityToRuntime() + 85 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\umg\private\components\widget.cpp:541]
UE4Editor_UMG!UWidget::ConvertVisibility() + 72 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\umg\public\components\widget.h:368]
UE4Editor_UMG!TMemberFunctionCaller<UWidget,EVisibility (__cdecl UWidget::*)(TAttribute<enum ESlateVisibility>)const __ptr64>::operator()<TAttribute<enum ESlateVisibility> const & __ptr64>() + 79 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\public\delegates\delegateinstanceinterface_variadics.h:162]
UE4Editor_UMG!TBaseUObjectMethodDelegateInstance<1,UWidget,EVisibility __cdecl(void),TAttribute<enum ESlateVisibility> >::Execute() + 271 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:682]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 129 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:377]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_SlateCore!SWidget::SlatePrepass() + 163 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slatecore\private\widgets\swidget.cpp:380]
UE4Editor_Slate!PrepassWindowAndChildren() + 548 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:984]
UE4Editor_Slate!FSlateApplication::DrawPrepass() + 551 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1029]
UE4Editor_Slate!FSlateApplication::PrivateDrawWindows() + 523 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1068]
UE4Editor_Slate!FSlateApplication::Tick() + 2879 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1323]
UE4Editor!FEngineLoop::Tick() + 4447 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\launchengineloop.cpp:2284]
UE4Editor!GuardedMain() + 1404 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\launch.cpp:142]
UE4Editor!GuardedMainWrapper() + 26 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() + 249 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
UE4Editor!__tmainCRTStartup() + 329 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]

Someone has an idea why this crashes in unreal engine? But when i build the game i can freely use it?

Kind regards,
Celeste

It’s hitting a check(false) in the ConvertSerializedVisibilityToRuntime, someone reported this the other day. The check(false) happens when the function is asked to convert a value from the visibility enum in UMG. If it fails to do so, it asserts. How this is happening, is blueprint code that early terminates a binding function bound to the visibility of a widget. So you’ve likely got a blueprint function with a branch or something and one of the branches is being hit, that doesn’t end up terminating at the Return node. Failure to do this sends garbage to the function, which is itself a bug, but even if it sent 0’s, you’d be getting undefined behavior, and in early out cases we’d always return Visible.

Why isn’t it happening in your compiled game? check()'s are compiled out in shipping builds.

So, the fix would be? Just redo all bracnhes that are linked to the menu? Would that fix it?

Kind regards,
celeste

Look in your functions you’ve bound to widget visibility, make sure all their paths terminate at a return node.

Well, I did check it all and there isn’t a single node that’s not connected.

I call it like this, which never was a problem for me. I didn’t do anything at all to make this error, i could re-watch my Stream(as i was streaming when it failed) and see what i did. But it worked perfect until i rebooted my pc and tried the day after.

&stc=1

I’m not sure why this all of the sudden happened.

greetings

Hey everyone!

Admin/mod note: Can you add [Solved] To title?

I went through it all, and i found 2 return nodes with no input or function inside it, and when i deleted those, and just recoded that add to viewport it seemed to fix it.

Thanks!
Celeste

and done:)