- Home /
Game works fine in Unity but crashes after build
No compiler errors/warnings. Works fine when testing in Unity and seems to build fine. When running the .exe the main menu loads, but when I click any of the GUI buttons the game crashes (see output_log below). It is a pretty simple game with only three scripts. However I do load a resource folder (Resources.LoadAll(folderName)), so that might have something to do with it? Thanks in advance for any help you can offer!
output_log.txt:
Initialize engine version: 4.1.4f1 (2492460f59a3)
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 9.0c [nvumdshim.dll 9.18.13.1422]
Renderer: NVIDIA GeForce GTX 670MX
Vendor: NVIDIA
VRAM: 3015 MB (via DXGI)
Caps: Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 DF24=0 INTZ=1 RAWZ=0 NULL=1 RESZ=0 SlowINTZ=0
Begin MonoManager ReloadAssembly
Platform assembly: C:\Users\Parrot\Documents\SSNSC\beta_Data\Managed\UnityEngine.dll (this message is harmless)
Loading C:\Users\Parrot\Documents\SSNSC\beta_Data\Managed\UnityEngine.dll into Unity Child Domain
Platform assembly: C:\Users\Parrot\Documents\SSNSC\beta_Data\Managed\Assembly-CSharp.dll (this message is harmless)
Loading C:\Users\Parrot\Documents\SSNSC\beta_Data\Managed\Assembly-CSharp.dll into Unity Child Domain
- Completed reload, in 0.041 seconds
desktop: 1920x1080 60Hz; virtual: 1920x1080 at 0,0
<RI> Initializing input.
<RI> Input initialized.
Unloading 3 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)
Unloading 3 unused Assets to reduce memory usage. Loaded Objects now: 103.
Total: 1.366723 ms (FindLiveObjects: 0.011973 ms CreateObjectMapping: 0.079112 ms MarkObjects: 0.286943 ms DeleteObjects: 0.019671 ms)
Crash!!!
SymInit: Symbol-SearchPath: '.;C:\Users\Parrot\Documents\SSNSC;C:\Users\Parrot\Documents\SSNSC;C:\Windows;C:\Windows\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 530, UserName: 'Parrot'
OS-Version: 6.2.9200 () 0x300-0x1
C:\Users\Parrot\Documents\SSNSC\beta.exe:beta.exe (011E0000), size: 10485760 (result: 0), SymType: '-exported-', PDB: 'C:\Users\Parrot\Documents\SSNSC\beta.exe', fileVersion: 4.1.4.1938
C:\Windows\SYSTEM32\ntdll.dll:ntdll.dll (776C0000), size: 1404928 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\ntdll.dll', fileVersion: 6.2.9200.16578
C:\Windows\SYSTEM32\KERNEL32.DLL:KERNEL32.DLL (77220000), size: 1245184 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\KERNEL32.DLL', fileVersion: 6.2.9200.16627
C:\Windows\SYSTEM32\KERNELBASE.dll:KERNELBASE.dll (75280000), size: 679936 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\KERNELBASE.dll', fileVersion: 6.2.9200.16451
C:\Windows\SYSTEM32\USER32.dll:USER32.dll (77020000), size: 1138688 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\USER32.dll', fileVersion: 6.2.9200.16420
C:\Windows\SYSTEM32\VERSION.dll:VERSION.dll (71CC0000), size: 32768 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\VERSION.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\ole32.dll:ole32.dll (75770000), size: 1150976 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\ole32.dll', fileVersion: 6.2.9200.16451
C:\Windows\SYSTEM32\SHLWAPI.dll:SHLWAPI.dll (74E60000), size: 262144 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\SHLWAPI.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\ADVAPI32.dll:ADVAPI32.dll (76F60000), size: 712704 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\ADVAPI32.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\GDI32.dll:GDI32.dll (77350000), size: 1036288 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\GDI32.dll', fileVersion: 6.2.9200.16654
C:\Windows\SYSTEM32\SHELL32.dll:SHELL32.dll (75DD0000), size: 17588224 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\SHELL32.dll', fileVersion: 6.2.9200.16680
C:\Windows\SYSTEM32\OPENGL32.dll:OPENGL32.dll (5CE00000), size: 843776 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\OPENGL32.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\WINMM.dll:WINMM.dll (71500000), size: 135168 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\WINMM.dll', fileVersion: 6.2.9200.16642
C:\Windows\SYSTEM32\WS2_32.dll:WS2_32.dll (77140000), size: 327680 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\WS2_32.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\OLEAUT32.dll:OLEAUT32.dll (75170000), size: 569344 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\OLEAUT32.dll', fileVersion: 6.2.9200.16657
C:\Windows\SYSTEM32\IMM32.dll:IMM32.dll (74E40000), size: 131072 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\IMM32.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\DNSAPI.dll:DNSAPI.dll (74A40000), size: 479232 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\DNSAPI.dll', fileVersion: 6.2.9200.16420
C:\Windows\SYSTEM32\IPHLPAPI.DLL:IPHLPAPI.DLL (71A00000), size: 131072 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\IPHLPAPI.DLL', fileVersion: 6.2.9200.16420
C:\Windows\SYSTEM32\WINHTTP.dll:WINHTTP.dll (6E1A0000), size: 532480 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\WINHTTP.dll', fileVersion: 6.2.9200.16451
C:\Windows\SYSTEM32\HID.DLL:HID.DLL (5CED0000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\HID.DLL', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\MSACM32.dll:MSACM32.dll (5CDE0000), size: 81920 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\MSACM32.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\msvcrt.dll:msvcrt.dll (76EA0000), size: 724992 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\msvcrt.dll', fileVersion: 7.0.9200.16384
C:\Windows\SYSTEM32\combase.dll:combase.dll (755A0000), size: 1269760 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\combase.dll', fileVersion: 6.2.9200.16420
C:\Windows\SYSTEM32\RPCRT4.dll:RPCRT4.dll (750C0000), size: 704512 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\RPCRT4.dll', fileVersion: 6.2.9200.16622
C:\Windows\SYSTEM32\sechost.dll:sechost.dll (75D70000), size: 212992 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\sechost.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\GLU32.dll:GLU32.dll (5CDB0000), size: 143360 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\GLU32.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\DDRAW.dll:DDRAW.dll (715D0000), size: 888832 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\DDRAW.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\WINMMBASE.dll:WINMMBASE.dll (714D0000), size: 176128 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\WINMMBASE.dll', fileVersion: 6.2.9200.16645
C:\Windows\SYSTEM32\NSI.dll:NSI.dll (77010000), size: 32768 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\NSI.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\MSCTF.dll:MSCTF.dll (75C80000), size: 909312 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\MSCTF.dll', fileVersion: 6.2.9200.16578
C:\Windows\SYSTEM32\WINNSI.DLL:WINNSI.DLL (71A20000), size: 32768 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\WINNSI.DLL', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\SspiCli.dll:SspiCli.dll (74CF0000), size: 114688 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\SspiCli.dll', fileVersion: 6.2.9200.16420
C:\Windows\SYSTEM32\DCIMAN32.dll:DCIMAN32.dll (716C0000), size: 28672 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\DCIMAN32.dll', fileVersion: 6.2.9200.16453
C:\Windows\SYSTEM32\cfgmgr32.dll:cfgmgr32.dll (75AB0000), size: 286720 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\cfgmgr32.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\DEVOBJ.dll:DEVOBJ.dll (750A0000), size: 122880 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\DEVOBJ.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\CRYPTBASE.dll:CRYPTBASE.dll (74CE0000), size: 36864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\CRYPTBASE.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\bcryptPrimitives.dll:bcryptPrimitives.dll (74C80000), size: 331776 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\bcryptPrimitives.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\nvinit.dll:nvinit.dll (74B10000), size: 221184 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\nvinit.dll', fileVersion: 9.18.13.1422
C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\detoured.dll:detoured.dll (0F000000), size: 24576 (result: 0), SymType: '-exported-', PDB: 'C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\detoured.dll'
C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvd3d9wrap.dll:nvd3d9wrap.dll (70310000), size: 311296 (result: 0), SymType: '-exported-', PDB: 'C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvd3d9wrap.dll', fileVersion: 8.17.13.1422
C:\Windows\SYSTEM32\SETUPAPI.dll:SETUPAPI.dll (77450000), size: 1765376 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\SETUPAPI.dll', fileVersion: 6.2.9200.16496
C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvdxgiwrap.dll:nvdxgiwrap.dll (702D0000), size: 208896 (result: 0), SymType: '-exported-', PDB: 'C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvdxgiwrap.dll', fileVersion: 8.17.13.1422
C:\Windows\system32\uxtheme.dll:uxtheme.dll (71540000), size: 557056 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\uxtheme.dll', fileVersion: 6.2.9200.16537
C:\Windows\SYSTEM32\shcore.dll:shcore.dll (709F0000), size: 479232 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\shcore.dll', fileVersion: 6.2.9200.16433
C:\Users\Parrot\Documents\SSNSC\beta_Data\Mono\mono.dll:mono.dll (10000000), size: 2273280 (result: 0), SymType: '-exported-', PDB: 'C:\Users\Parrot\Documents\SSNSC\beta_Data\Mono\mono.dll'
C:\Windows\SYSTEM32\PSAPI.DLL:PSAPI.DLL (75C70000), size: 24576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\PSAPI.DLL', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\MSWSOCK.dll:MSWSOCK.dll (74AC0000), size: 303104 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\MSWSOCK.dll', fileVersion: 6.2.9200.16433
C:\Windows\SYSTEM32\dwmapi.dll:dwmapi.dll (718E0000), size: 102400 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\dwmapi.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\d3d9.dll:d3d9.dll (71310000), size: 1789952 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\d3d9.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\nvumdshim.dll:nvumdshim.dll (5FC50000), size: 991232 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\nvumdshim.dll', fileVersion: 9.18.13.1422
C:\Windows\system32\igdumd32.dll:igdumd32.dll (5F1B0000), size: 11120640 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\igdumd32.dll', fileVersion: 9.17.10.2857
C:\Windows\system32\nvd3dum.dll:nvd3dum.dll (59470000), size: 15048704 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\nvd3dum.dll', fileVersion: 9.18.13.1422
C:\Windows\SYSTEM32\WINTRUST.dll:WINTRUST.dll (75550000), size: 270336 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\WINTRUST.dll', fileVersion: 6.2.9200.16666
C:\Windows\SYSTEM32\CRYPT32.dll:CRYPT32.dll (75340000), size: 1576960 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\CRYPT32.dll', fileVersion: 6.2.9200.16666
C:\Windows\SYSTEM32\MSASN1.dll:MSASN1.dll (75DB0000), size: 73728 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\MSASN1.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\powrprof.dll:powrprof.dll (70360000), size: 258048 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\powrprof.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\MMDevAPI.DLL:MMDevAPI.DLL (70660000), size: 315392 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\MMDevAPI.DLL', fileVersion: 6.2.9200.16420
C:\Windows\SYSTEM32\wdmaud.drv:wdmaud.drv (5CCE0000), size: 196608 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\wdmaud.drv', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\ksuser.dll:ksuser.dll (5FFB0000), size: 20480 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\ksuser.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\AVRT.dll:AVRT.dll (5FFA0000), size: 32768 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\AVRT.dll', fileVersion: 6.2.9200.16420
C:\Windows\SYSTEM32\AUDIOSES.DLL:AUDIOSES.DLL (70600000), size: 344064 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\AUDIOSES.DLL', fileVersion: 6.2.9200.16578
C:\Windows\SYSTEM32\msacm32.drv:msacm32.drv (5CCD0000), size: 36864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\msacm32.drv', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\midimap.dll:midimap.dll (5CCC0000), size: 32768 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\midimap.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\dsound.dll:dsound.dll (5CC30000), size: 540672 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\dsound.dll', fileVersion: 6.2.9200.16384
C:\Windows\SYSTEM32\clbcatq.dll:clbcatq.dll (754D0000), size: 475136 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\clbcatq.dll', fileVersion: 2001.12.10130.16384
C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16579_none_8937eec6860750f5\comctl32.dll:comctl32.dll (70700000), size: 2064384 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16579_none_8937eec6860750f5\comctl32.dll', fileVersion: 6.10.9200.16578
C:\Windows\SYSTEM32\xinput1_3.dll:xinput1_3.dll (00400000), size: 90112 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\xinput1_3.dll', fileVersion: 9.18.944.0
C:\Windows\SYSTEM32\dbghelp.dll:dbghelp.dll (60DD0000), size: 1216512 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SYSTEM32\dbghelp.dll', fileVersion: 6.2.9200.16384
========== OUTPUTING STACK TRACE ==================
(0x014C6E11) (beta): (filename not available): RegisterModule_Navigation + 0x1a191
(0x04BFF8CB) (Mono JIT code): (filename not available): (wrapper managed-to-native) UnityEngine.Resources:LoadAll (string,System.Type) + 0x2b (04BFF8A0 04BFF8EF) [01174E70 - Unity Root Domain] + 0x0
(0x04BFF88E) (Mono JIT code): (filename not available): UnityEngine.Resources:LoadAll (string) + 0x16 (04BFF878 04BFF893) [01174E70 - Unity Root Domain] + 0x0
(0x04BFF718) (Mono JIT code): (filename not available): s_VideoPlayer:Start () + 0x1d8 (04BFF540 04BFF7E2) [01174E70 - Unity Root Domain] + 0x0
(0x04BEE629) (Mono JIT code): (filename not available): (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0x41 (04BEE5E8 04BEE67D) [01174E70 - Unity Root Domain] + 0x0
(0x100EFF9C) (mono): (filename not available): mono_set_defaults + 0x22b8
(0x1005EBBE) (mono): (filename not available): mono_runtime_invoke + 0x51
(0x013ECF69) (beta): (filename not available): GetMonoBehaviourInConstructor + 0xcc9
(0x013ED258) (beta): (filename not available): GetMonoBehaviourInConstructor + 0xfb8
(0x013ED64F) (beta): (filename not available): GetMonoBehaviourInConstructor + 0x13af
(0x013419EE) (beta): (filename not available): Behaviour::InitializeClass + 0xeae
(0x013C1D17) (beta): (filename not available): Thread::SetName + 0x12527
(0x0145A94D) (beta): (filename not available): PlayerMainWndProc + 0x5ad
(0x0145C07B) (beta): (filename not available): PlayerWinMain + 0x96b
(0x01588558) (beta): (filename not available): ProxyTransfer::IsVersionSmallerOrEqual + 0x5fc08
(0x015B9C50) (beta): (filename not available): ProxyTransfer::IsVersionSmallerOrEqual + 0x91300
(0x7724850D) (KERNEL32): (filename not available): BaseThreadInitThunk + 0xe
(0x7771BF39) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x85
(0x7771BF0C) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x58
========== END OF STACKTRACE ===========
**** Crash! ****
I'm actually having this same issue with my game right now. $$anonymous$$y plan is to replace the Resources.LoadAll with some indididual Resources.Load calls and see if I can narrow down the specific asset that is causing problems.
VesuvianPrime,
That sounds like a good idea. Please let me know if you are able to isolate the problem. I would try your method myself but unfortunately my project is loading far too many assets (hundreds of textures) to test each one individually. However, if you find that a specific asset is causing the issue maybe we can learn what the underlying problem is.
Thanks for the response!
First thing I'd test would be commenting out the resource loading to make sure that's actually whats causing the problem.
If it is, then all I can really recommend would be to only load individual assets that you need.
Why do you need to load resources in the first place ins$$anonymous$$d of setting up most things in a scene like normal?
Parrot, my loading is setup so I have a dictionary of:
<path, Type>
and I step through each key and call Resources.LoadAll on it.
In this scenario I'm able to comment out specific directories and ele$$anonymous$$ate them from my testing. In my case, I discovered that my:
<"Prefabs", GameObject>
directory was causing my crashes.
From here I need to discover the exact prefab/s causing the crash.
I commented out my resource loading and the build ran fine. So the problem is definitely something related to loading resources. However, I tried loading just one texture and it still didn't work! But it worked fine when testing in Unity. Any ideas as to what would cause this? Would it have anything to do with file permissions?
Your answer
Follow this Question
Related Questions
Appodeal Anr onAdFailedToLoad 0 Answers
Unity editor editor keeps on crashing on startup 0 Answers
Crashing on iOS il2cpp RaiseOutofMemoryException 0 Answers
Can some one explain what this mean 0 Answers
why does Unity keep crashing 0 Answers