Crash after build, how to debug?
I have a program that runs fine in the Editor, but crashes after build and play with after a brief window with an exclamation mark.
After producing a debug build, I can see the stack trace, which indicates it might be an error with serialization/loading a scene. Is there a way to find out using the minidump or other techniques which object is being loaded/causing this fault? I've tried removing many objects from the scene, removing scripts from objects etc, but no luck. I looked into tools like windbg but quickly got lost.
Unity Version: 2019.3.0f3 (issue persists in 2020 beta too)
Stack Trace of Crashed Thread 21512:
0x63D2F1C5 (UnityPlayer) DebugStringToFilePostprocessedStacktrace
0x63D2ECF6 (UnityPlayer) DebugStringToFile
0x63469395 (UnityPlayer) CachedReader::OutOfBoundsError
0x6346AFA2 (UnityPlayer) CachedReader::UpdateReadCache
0x62A35EAF (UnityPlayer) StreamedBinaryRead::Transfer<core::basic_string<char,core::StringStorageDefault<char> > >
0x636CDB92 (UnityPlayer) TransferField_NonArray<StreamedBinaryRead,Converter_String>
0x636DC0A3 (UnityPlayer) Transfer_String<StreamedBinaryRead,0>
0x62ABFE05 (UnityPlayer) ExecuteSerializationCommands<ConfigSettingsRead>
0x636DB719 (UnityPlayer) Transfer_ManagedObject<StreamedBinaryRead,0>
0x62ABFE05 (UnityPlayer) ExecuteSerializationCommands<ConfigSettingsRead>
0x636D1126 (UnityPlayer) TransferScriptingObject<StreamedBinaryRead,0>
0x636D11AE (UnityPlayer) TransferScriptingObject<StreamedBinaryRead>
0x636E15E3 (UnityPlayer) SerializableManagedRefTransfer::TransferEngineAndMonoInstance<StreamedBinaryRead>
0x636E28D8 (UnityPlayer) SerializableManagedRefTransfer::Transfer
0x636ACE47 (UnityPlayer) MonoBehaviour::VirtualRedirectTransfer
0x636F7C35 (UnityPlayer) SerializedFile::ReadObject
0x636EB7BC (UnityPlayer) PersistentManager::ReadAndActivateObjectThreaded
0x636EA0E6 (UnityPlayer) PersistentManager::LoadFileCompletelyThreaded
0x63439384 (UnityPlayer) LoadSceneOperation::Perform
0x63439C94 (UnityPlayer) PreloadManager::ProcessSingleOperation
0x63439F96 (UnityPlayer) PreloadManager::Run
0x635F8FB8 (UnityPlayer) Thread::RunThreadWrapper
0x76F16359 (KERNEL32) BaseThreadInitThunk
0x773A7C14 (ntdll) RtlGetAppContainerNamedObjectPath
0x773A7BE4 (ntdll) RtlGetAppContainerNamedObjectPath
Did you discover the cause of the problem? I'm having a problem similar to yours.
Hello, did you find the cause of the problem in your side ? i'm having the same issue.
Your answer
![](https://koobas.hobune.stream/wayback/20220612233124im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Linux SIGKILL on startup 0 Answers
Debugging Save / Load Glitches? (Serialization) 1 Answer
Unity crashing on startup 0 Answers
Crash on splash screen 0 Answers
All builds created in Unity 5.3.3f1 crash on launch. 0 Answers