Download

Using ConstructorHelper for creating widgets freezes the editor at 72% loading

I am facing a weird issue. Here is a portion of my code. I have debugged and confirmed this is the part that is causing the problem. Removing it works fine.

a1bae9cebe735d9bd0e43b369a2470d05c5aa96f.png

Basically i am using


ConstructorHelpers

for getting User Widget Blueprint. But for some unknown reason, in some cases it works in some cases the editor simply freezes at 72% loading. I decided to check if


GEngine

is valid or not, which make it work perfectly fine no issues or errors. It works in editor, standalone.

The problem however occurs when i package the game. Packaging went smoothly no issues, errors in output window. But the game simply crashes. Throws this issue:

9696f792fadff679ae1db40337189defd22fd296.png

Here is the answerhub question:
https://answers.unrealengine.com/questions/670306/ssertion-failed-recursionnotallowedincrement-1.html

Is it a bug? or am i doing something wrong?

Also i know i can use


TSubClassOf<>

75f17ff9fe1e34c0539ce3d3dd64bdcea82af7bf.png
and then select the widget from the dropdown in the detail panel. Which works but the biggest drawback is whenever i make some changes to the class i need to re-select the class from the dropdown AGAIN! Instead i hard coded the referance paths and using


ConstructorHelpers

for that purpose.

I had a similar problem with Widgets hanging but i could not find any solution to it. So I just moved it out of the constructor and now everything works fine.
Putting it in property like you did last is the way I solve most of the preselection of assets.

Yeah i also moved everything out of constructor and it works fine. Seems like a bug. I posted on answerhub but no response :frowning:

Epic confirms this as a bug. Here is the bug report in case anyone is facing the same issue:

I know it is an old topic but how to know if I’m using G engine or constructor helper and to disable it? I can package successfully (with almost 291 warnings) but the exe crashes on startup with a message about assertion failed and I have no clue on what to do, I hope it is not c++ related (but I’m afraid it is)

If you have 291 warnings, it’s time to clean up your house, as one might say.

Lol I know but it is a lot of same errors and most of them are really abstract. I try to google for them but no luck. Some errors are just dumb, example it doesn’t find a game mode whereas the game mode is present

It’s hard to debug things without a log. Can you copy the last few lines of the log when it crashes?

I have made a new package with “include debug file” enable but I’m not sure which file is the log. In my directory I have :
-CrashContext.runtime-xml
-CrashReportClient.ini
-UE4Minidump.dmp
-WelsChallenges.log

I suppose it is the last one but the last lines in it don’t seem very significant :

[2019.05.20-21.55.45:255] 0]LogD3D11RHI: GPU DeviceId: 0x1c02 (for the marketing name, search the web for “GPU Device Id”)
[2019.05.20-21.55.45:255] 0]LogWindows: EnumDisplayDevices:
[2019.05.20-21.55.45:255] 0]LogWindows: 0. ‘NVIDIA GeForce GTX 1060 3GB’ (P:1 D:1)
[2019.05.20-21.55.45:255] 0]LogWindows: 1. ‘NVIDIA GeForce GTX 1060 3GB’ (P:0 D:0)
[2019.05.20-21.55.45:255] 0]LogWindows: 2. ‘NVIDIA GeForce GTX 1060 3GB’ (P:0 D:0)
[2019.05.20-21.55.45:256] 0]LogWindows: 3. ‘NVIDIA GeForce GTX 1060 3GB’ (P:0 D:0)
[2019.05.20-21.55.45:256] 0]LogWindows: DebugString: FoundDriverCount:4
[2019.05.20-21.55.45:256] 0]LogD3D11RHI: Adapter Name: NVIDIA GeForce GTX 1060 3GB
[2019.05.20-21.55.45:256] 0]LogD3D11RHI: Driver Version: 419.67 (internal:25.21.14.1967, unified:419.67)
[2019.05.20-21.55.45:256] 0]LogD3D11RHI: Driver Date: 3-17-2019
[2019.05.20-21.55.45:256] 0]LogRHI: Texture pool is 2091 MB (70% of 2988 MB)
[2019.05.20-21.55.45:297] 0]LogD3D11RHI: Async texture creation enabled
[2019.05.20-21.55.45:303] 0]LogRendererCore: FGlobalReadBuffer::InitRHI
[2019.05.20-21.55.45:304] 0]LogRendererCore: FGlobalReadBuffer::InitRHI
[2019.05.20-21.55.45:304] 0]LogRendererCore: FGlobalReadBuffer::InitRHI
[2019.05.20-21.55.45:311] 0]LogD3D11RHI: GPU Timing Frequency: 1000.000000 (Debug: 2 1)
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: Global and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: Global_SC and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: UE4EditorCustomize and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: UE4EditorCustomize_SC and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: UE4EditorCustomize and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: UE4EditorCustomize_SC and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: DonAINavigation and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: DonAINavigation_SC and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: DonAINavigation and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: DonAINavigation_SC and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: LowEntryExtStdLib and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: LowEntryExtStdLib_SC and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: LowEntryExtStdLib and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: LowEntryExtStdLib_SC and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: PTMTool and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: PTMTool_SC and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: PTMTool and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: PTMTool_SC and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: Paper2D and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: Paper2D_SC and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: Paper2D and no native library supported.
[2019.05.20-21.55.45:361] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: Paper2D_SC and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: AnimationSharing and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: AnimationSharing_SC and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: AnimationSharing and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: AnimationSharing_SC and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: CryptoKeys and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: CryptoKeys_SC and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: CryptoKeys and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: CryptoKeys_SC and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: DatasmithContent and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: DatasmithContent_SC and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: DatasmithContent and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: DatasmithContent_SC and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: MediaCompositing and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: MediaCompositing_SC and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: MediaCompositing and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: MediaCompositing_SC and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: OculusVR and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: OculusVR_SC and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: OculusVR and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: OculusVR_SC and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: SteamVR and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: SteamVR_SC and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: SteamVR and no native library supported.
[2019.05.20-21.55.45:362] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: SteamVR_SC and no native library supported.
[2019.05.20-21.55.45:376] 0]LogMaterial: Verifying Global Shaders for PCD3D_SM5
[2019.05.20-21.55.45:400] 0]LogSlate: Using FreeType 2.6.0
[2019.05.20-21.55.45:400] 0]LogSlate: SlateFontServices - WITH_FREETYPE: 1, WITH_HARFBUZZ: 1
[2019.05.20-21.55.45:444] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: WelsChallenges and no native library supported.
[2019.05.20-21.55.45:444] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: WelsChallenges_SC and no native library supported.
[2019.05.20-21.55.45:444] 0]LogRHI: Display: Opened pipeline cache after state change and enqueued 0 of 0 tasks for precompile.
[2019.05.20-21.55.45:444] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: WelsChallenges and no native library supported.
[2019.05.20-21.55.45:444] 0]LogShaderLibrary: Display: Failed to load Shared Shader Library: WelsChallenges_SC and no native library supported.
[2019.05.20-21.55.45:444] 0]LogRHI: Display: Opened pipeline cache after state change and enqueued 0 of 0 tasks for precompile.
[2019.05.20-21.55.45:444] 0]LogRHI: Display: Failed to open default shader pipeline cache for WelsChallenges using shader platform 0.
[2019.05.20-21.55.45:444] 0]LogInit: Using OS detected language (fr-FR).
[2019.05.20-21.55.45:444] 0]LogInit: Using OS detected locale (fr-FR).
[2019.05.20-21.55.45:444] 0]LogTextLocalizationManager: No localization for ‘fr-FR’ exists, so ‘en’ will be used for the language.
[2019.05.20-21.55.45:445] 0]LogTextLocalizationManager: No localization for ‘fr-FR’ exists, so ‘en’ will be used for the locale.
[2019.05.20-21.55.45:445] 0]LogSlate: FontCache flush requested. Reason: Culture for localization was changed
[2019.05.20-21.55.45:445] 0]LogSlate: FontCache flush requested. Reason: Culture for localization was changed
[2019.05.20-21.55.45:445] 0]LogTextLocalizationManager: Compacting localization data took 0.04ms
[2019.05.20-21.55.45:454] 0]LogAssetRegistry: FAssetRegistry took 0.0089 seconds to start up
[2019.05.20-21.55.45:546] 0]LogStreaming: Display: Flushing async loaders.
[2019.05.20-21.55.45:546] 0]LogPackageLocalizationCache: Processed 13 localized package path(s) for 1 prioritized culture(s) in 0.000085 seconds
[2019.05.20-21.55.45:547] 0]LogPakFile: New pak file …/…/…/WelsChallenges/Content/Paks/WelsChallenges-WindowsNoEditor.pak added to pak precacher.
[2019.05.20-21.55.45:550] 0]LogInit: Selected Device Profile: [WindowsNoEditor]
[2019.05.20-21.55.45:561] 0]LogNetVersion: WelsChallenges 1.0.0, NetCL: 5660361, EngineNetVer: 10, GameNetVer: 0 (Checksum: 59619601)
[2019.05.20-21.55.45:561] 0]LogStreaming: Error: Couldn’t find file for package /Engine/EngineSounds/Master requested by async loading code. NameToLoad: /Engine/EngineSounds/Master
[2019.05.20-21.55.45:561] 0]LogStreaming: Error: Found 0 dependent packages…
[2019.05.20-21.55.45:694] 0]LogMoviePlayer: Initializing movie player
[2019.05.20-21.55.45:697] 0]LogAndroidPermission: UAndroidPermissionCallbackProxy::GetInstance
[2019.05.20-21.55.45:697] 0]LogOcInput: OculusInput pre-init called
[2019.05.20-21.55.45:702] 0]LogUObjectArray: 40559 objects as part of root set at end of initial load.
[2019.05.20-21.55.45:702] 0]LogUObjectArray: 19 objects are not in the root set, but can never be destroyed because they are in the DisregardForGC set.
[2019.05.20-21.55.45:702] 0]LogUObjectAllocator: 6257648 out of 0 bytes used by permanent object pool.
[2019.05.20-21.55.45:702] 0]LogUObjectArray: CloseDisregardForGC: 40559/40559 objects in disregard for GC pool
[2019.05.20-21.55.45:780] 0]LogEngine: Initializing Engine…
[2019.05.20-21.55.45:780] 0]LogHMD: Failed to initialize OpenVR with code 110
[2019.05.20-21.55.45:791] 0]LogStats: UGameplayTagsManager::InitializeManager - 0.000 s
[2019.05.20-21.55.45:860] 0]LogInit: Initializing FReadOnlyCVARCache
[2019.05.20-21.55.45:865] 0]LogAudioDebug: Display: Lib vorbis DLL was dynamically loaded.
[2019.05.20-21.55.45:871] 0]LogInit: XAudio2 using ‘Haut-parleurs (Realtek High Definition Audio)’ : 2 channels at 48 kHz using 32 bits per sample (channel mask 0x3)
[2019.05.20-21.55.45:887] 0]LogInit: FAudioDevice initialized.
[2019.05.20-21.55.45:898] 0]LogNetVersion: Set ProjectVersion to 1.0.0. Version Checksum will be recalculated on next use.
[2019.05.20-21.55.45:898] 0]LogInit: Texture streaming: Enabled
[2019.05.20-21.55.45:997] 0]LogWindows: Windows GetLastError: L’opération a réussi. (0)

I’ve cleaned few warnings but still have 150 (but as I said some are thrown multiple times)

Here are warnings I get at the end:
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: Warning/Error Summary (Unique only)
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: -----------------------------------
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogConsoleManager: Warning: Setting the console variable ‘r.Streaming.PoolSize’ with ‘SetByScalability’ was ignored as it is lower priority than the previous ‘SetByProjectSetting’. Value remains ‘4000’
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogStreaming: Warning: Failed to read file ‘F:/Nouveau dossier (2)/WelsChallenges -4.22/Content/Localization/Game/Game.locmeta’ error.
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogUObjectGlobals: Warning: Failed to find object ‘SoundClass /Engine/EngineSounds/Master.Master’
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogClass: Warning: FDoNNavigationQueryData::Origin is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogClass: Warning: FDoNNavigationQueryData::Destination is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogClass: Warning: FTimeDate::Millisecond is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogClass: Warning: FTimeDate::Second is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogClass: Warning: FTimeDate::Minute is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogClass: Warning: FTimeDate::Hour is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogClass: Warning: FTimeDate::Day is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogClass: Warning: FTimeDate::Month is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogClass: Warning: FTimeDate::Year is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogAutomationTest: Warning: FDoNNavigationQueryData::Origin is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogAutomationTest: Warning: FDoNNavigationQueryData::Destination is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogAutomationTest: Warning: FTimeDate::Millisecond is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogAutomationTest: Warning: FTimeDate::Second is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogAutomationTest: Warning: FTimeDate::Minute is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogAutomationTest: Warning: FTimeDate::Hour is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogAutomationTest: Warning: FTimeDate::Day is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogAutomationTest: Warning: FTimeDate::Month is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogAutomationTest: Warning: FTimeDate::Year is not initialized properly
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: CookResults: Warning: Unable to find package for cooking /Game/Blueprints/Game_Objects/TutoGameMode
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogCook: Warning: Unable to find package for cooking /Game/Blueprints/Game_Objects/TutoGameMode
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: CookResults: Warning: Unable to find package for cooking /Game/Blueprints/Game_Objects/ChainComboGameMode
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogCook: Warning: Unable to find package for cooking /Game/Blueprints/Game_Objects/ChainComboGameMode
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogPhysics: Warning: FConstraintInstance::GetRefFrame : Contained scale.
UATHelper: Packaging (Windows (64-bit)): LogInit: Display:
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: Success - 0 error(s), 154 warning(s)

I’ve indeed deleted the tuto game mode which is not in use but the ChainComboGameMode is still at its original location
But these are just warnings, I don’t think one of these is responsible of the launch crash with the assertion error.

EDIT : I’ve tried to package in shipping mode and it works, few things are not rendered correctly and some physics/mechanics don’t work as expected but at least the game doesn’t crash on startup.