Editor Crash 'Ensure Condition Failed' GenericPlatformMath.cpp - What does this mean?

Each time I open the editor I get this error from the output log. If I attempt to open a specific map, the editor will crash and this same error log will appear at the bottom of the crash log file. I’ve verified the engine and tried opening older versions of the map, but can’t figure out what this means and how to fix it. Can anyone help?

Thanks,
Svr33

LogOutputDevice: Error: === Handled ensure: ===
LogOutputDevice: Error: Ensure condition failed: Y != 0 [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMath.cpp] [Line: 105]
LogOutputDevice: Error: FMath::FMod(X=0.000000, Y=0.000000) : Y is zero, this is invalid and would result in NaN!
LogOutputDevice: Error: Stack: 
LogOutputDevice: Error: [Callstack] 0x00007ffdd6b49513 UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdd643a255 UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdaf6f2582 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdaf6f205e UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdaf76cc56 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdaf6e011f UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdaf730abb UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdad59322f UE4Editor-Renderer.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdad588045 UE4Editor-Renderer.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdad58842f UE4Editor-Renderer.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdad656e2c UE4Editor-Renderer.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdaf0a230e UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdd6409ff2 UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdd640a393 UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdf8b35391 UE4Editor-RenderCore.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdf8b3e254 UE4Editor-RenderCore.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdd68832ef UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffdd6882f94 UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffe22487bd4 KERNEL32.DLL!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffe23f2ced1 ntdll.dll!UnknownFunction []
1 Like

can you download editor debug symbols (installation options) and cause crash and post call stack again? so we know where crash actually happens, might hint something. This is either a bug or level asset corruption

1 Like

LogStats: === Handled ensure: ===
LogOutputDevice: Error: SubmitErrorReport - 0.000 s
LogOutputDevice: Error: orReport - 0.000 s
LogOutputDevice: Error: rReport - 0.000 s
LogOutputDevice: Error: FMath::FMod(X=0.000000, Y=0.000000) : Y is zero, this is invalid and would result in NaN!
LogOutputDevice: Error: Stack:
LogOutputDevice: Error: [Callstack] 0x00007ffdd1d69513 UE4Editor-Core.dll!DispatchCheckVerify >() [d:\build++ue4\sync\engine\source\runtime\core\public\misc\assertionmacros.h:167]
LogOutputDevice: Error: [Callstack] 0x00007ffdd165a255 UE4Editor-Core.dll!FGenericPlatformMath::Fmod() [d:\build++ue4\sync\engine\source\runtime\core\private\genericplatform\genericplatformmath.cpp:82]
LogOutputDevice: Error: [Callstack] 0x00007ffda39d2582 UE4Editor-Engine.dll!FMaterialUniformExpressionFmod::GetNumberValue() [d:\build++ue4\sync\engine\source\runtime\engine\private\materials\materialuniformexpressions.h:1541]
LogOutputDevice: Error: [Callstack] 0x00007ffda39d205e UE4Editor-Engine.dll!FMaterialUniformExpressionAppendVector::GetNumberValue() [d:\build++ue4\sync\engine\source\runtime\engine\private\materials\materialuniformexpressions.h:926]
LogOutputDevice: Error: [Callstack] 0x00007ffda3a4cc56 UE4Editor-Engine.dll!FUniformExpressionSet::FillUniformBuffer() [d:\build++ue4\sync\engine\source\runtime\engine\private\materials\materialuniformexpressions.cpp:538]
LogOutputDevice: Error: [Callstack] 0x00007ffda39c011f UE4Editor-Engine.dll!FMaterialRenderProxy::EvaluateUniformExpressions() [d:\build++ue4\sync\engine\source\runtime\engine\private\materials\materialshared.cpp:2423]
LogOutputDevice: Error: [Callstack] 0x00007ffda3a10abb UE4Editor-

1 Like

Thanks , I added the new crash log (created when opening the editor). It references d:\build++ue4\ folder which is confusing to me… there’s no such folder and that’s a drive I only use to save my packaged game, UE4 is installed on the C: drive.

1 Like

It seems the crash log I pasted in got taken down? Here’s the text version.

link text

1 Like

Additionally, the crash reporter is not appearing when the game crashes and doesn’t seem to generate a crash log file except when I open the engine.

1 Like

No it just got auto moderated, it’s normal if you paste the logs as system thinks it’s spam, it’s main reason why i find you question in first place

1 Like

The issue seems to be in materials, crashs happens when renderer tries to set parameters for shader for material instance. Did you do something out of place with materials? When it is started?

Only way to save map is try to replace materials assets. I would also report bug anyway as in general this should not happen, they probably ask you to send project too for analyzes as its asset related it seems

1 Like

Ensure conditions have been crashing for me as well. This isn’t always the case.
The crash log points exactly to the line the ensure condition fails.