- Home /
Question by
JOKER_LD · Aug 13, 2019 at 07:49 AM ·
crashcrash logcommand-linebatchmode
Unity standalone crash when lanughing on batchmode
Unity Version: 2018.1.0f
OS: windows10
I get everything fine when normally start the standalone build by double click the exe file. But I often get crashed when starting the exe using "%UNITY_BUILD_EXE% -batchmode" command, and what makes me mad is that the command sometimes works fine while in most time it crashed. That's really strange. When the game running successfully. It looks like that, I manually call Application.Quit(), then it print "Game Complete" and quit the game. Everything is fine.
(1) Normal case
Game Complete!
(Filename: D:\unity\Runtime/Export/Debug.bindings.h Line: 43)
Setting up 4 worker threads for Enlighten.
Thread -> id: 4580 -> priority: 1
Thread -> id: 4e14 -> priority: 1
Thread -> id: 4334 -> priority: 1
Thread -> id: 46dc -> priority: 1
When the game crashed, it still executes Application.Quit() method and quit the game but the unitycrash window pop up and the return code in command line is -1073740791. The output log are following.
(2) Bad Case
Game Complete!
(Filename: D:\unity\Runtime/Export/Debug.bindings.h Line: 43)
Setting up 4 worker threads for Enlighten.
Thread -> id: 2d24 -> priority: 1
Thread -> id: 4b7c -> priority: 1
Thread -> id: 44a8 -> priority: 1
Thread -> id: 2bb0 -> priority: 1
Received abort signal from the operating system
Stack trace:
0x00007FFC08F62FED (UnityPlayer)
0x00007FFC08F68CFF (UnityPlayer)
0x00007FFC08A9B40D (UnityPlayer)
0x00007FFC08A3624F (UnityPlayer)
0x00007FFC0956D40E (UnityPlayer) UnityMain
0x00007FFC0955C330 (UnityPlayer) UnityMain
0x00007FFC0958C72D (UnityPlayer) UnityMain
0x00007FFC08A089B0 (UnityPlayer)
0x00007FFC08A0F5A8 (UnityPlayer)
0x00007FFC08A0CDE1 (UnityPlayer)
0x00007FFC08F87444 (UnityPlayer) UnityMain
0x00007FFC08A0EF7C (UnityPlayer)
0x00007FFC08F9E6F8 (UnityPlayer) UnityMain
0x00007FFC08F9E4ED (UnityPlayer) UnityMain
0x00007FFC08F9E664 (UnityPlayer) UnityMain
0x00007FFC08A0EF20 (UnityPlayer)
0x00007FFC08F7D7ED (UnityPlayer)
0x00007FFC08F7E49E (UnityPlayer)
0x00007FFC08F7E60B (UnityPlayer) UnityMain
0x00007FF625161207 (out)
0x00007FFC844D7974 (KERNEL32) BaseThreadInitThunk
0x00007FFC84D2A271 (ntdll) RtlUserThreadStart
Comment