- Home /
Unity editor crash Problem "Access Violation (0xc0000005)"
My project which had been working without problems until now has started to suffer from problems about two weeks ago. When playing game mode on the Unity editor, it came to crash (once in several times). I thought that memory overflow was the cause, I reduced the data capacity of the asset being used, but the problem was not solved.
The output "error.log" is this.
Unity Editor [version: Unity 2017.1.1p4_4b0ddcd3f6ad]
Unity.exe caused an Access Violation (0xc0000005) in module Unity.exe at 0033:41405240.
Error occurred at 2017-12-11_185804. C:\Program Files\Unity\Editor\Unity.exe, run by gudouan. 61% memory in use. 3980 MB physical memory [1534 MB free]. 8076 MB paging file [4004 MB free]. 134217728 MB user address space [134215317 MB free]. Read from location 00000000 caused an access violation.
Context: RDI: 0x00000000 RSI: 0x00000060 RAX: 0x005fd868 RBX: 0x00000001 RCX: 0x0b2597f0 RDX: 0x388ad001 RIP: 0x41405240 RBP: 0x005fd7d0 SegCs: 0x00000033 EFlags: 0x00010287 RSP: 0x005fd740 SegSs: 0x0000002b R8: 0x005fd7d0 R9: 0x005fd860 R10: 0x381b45f0 R11: 0x005fd878 R12: 0x005fd860 R13: 0x44a70368 R14: 0x447cd8c0 R15: 0x00000000
Bytes at CS:EIP: 8b 07 48 8b 5d 10 4d 39 74 c5 00 75 29 48 8b 4f
Stack: 0x005fd740: 00000000 00000000 00000000 ffffffff ................ 0x005fd750: 00000002 00000000 41414d0a 00000001 .........MAA.... 0x005fd760: 005fdfe0 00000000 181367f8 00000000 .._......g......
~~Abbreviate~~~~~~
Module 1 C:\Program Files\Unity\Editor\OpenRL_pthread.dll Image Base: 0x80000000 Image Size: 0x0000f000 File Size: 42496 File Time: 2017-09-23_233654 Version: Company: Open Source Software community LGPL Product: POSIX Threads for Windows LPGL FileDesc: MS C 32 bit FileVer: 2.9.0.0 ProdVer: 2.9.0.0
Module 2 C:\WINDOWS\SYSTEM32\xinput1_3.dll Image Base: 0x00400000 Image Size: 0x0001e000 File Size: 107368 File Time: 2007-04-04_185422 Version: Company: Microsoft Corporation Product: MicrosoftR DirectX for WindowsR FileDesc: Microsoft Common Controller API FileVer: 9.18.944.0 ProdVer: 9.18.944.0
Module 3 C:\Program Files\Unity\Editor\OpenRL.dll Image Base: 0x80000000 Image Size: 0x00c30000 File Size: 12654592 File Time: 2017-09-23_233654 Version: Company: Imagination Technologies, Inc. Product: OpenRL? FileDesc: OpenRL? Library FileVer: 1.5.100.0 ProdVer: 1.5.100.0
Module 4 C:\WINDOWS\system32\cbfsNetRdr6.dll Image Base: 0x80000000 Image Size: 0x00023000 File Size: 134560 File Time: 2016-09-21_085250 Version: Company: /n software, Inc. Product: Callback File System FileDesc: Network Redirector FileVer: 6.1.184.328 ProdVer: 6.1.184.1
Module 5 C:\WINDOWS\system32\cbfsMntNtf6.dll Image Base: 0x80000000 Image Size: 0x00031000 File Size: 196000 File Time: 2016-09-21_085212 Version: Company: /n software, Inc. Product: Callback File System FileDesc: Mount Notifier FileVer: 6.1.184.329 ProdVer: 6.1.184.14
Module 6 C:\Program Files\Microsoft Office 15\root\VFS\ProgramFilesX64\Microsoft Office\Office15\1041\GrooveIntlResource.dll Image Base: 0x80000000 Image Size: 0x00868000 File Size: 8824008 File Time: 2017-02-09_103638 Version: Company: Microsoft Corporation Product: Microsoft Office 2013 FileDesc: Microsoft OneDrive for Business Intl リソース モジュール FileVer: 15.0.4909.1000 ProdVer: 15.0.4909.1000
Module 7 C:\WINDOWS\SYSTEM32\MSVCP100.dll Image Base: 0x6bed0000 Image Size: 0x00098000 File Size: 608080 File Time: 2011-06-11_011538 Version: Company: Microsoft Corporation Product: MicrosoftR Visual StudioR 2010 FileDesc: MicrosoftR C Runtime Library FileVer: 10.0.40219.325 ProdVer: 10.0.40219.325
Module 8 C:\WINDOWS\SYSTEM32\MSVCR100.dll Image Base: 0x6bf70000 Image Size: 0x000d2000 File Size: 829264 File Time: 2011-06-11_011538 Version: Company: Microsoft Corporation Product: MicrosoftR Visual StudioR 2010 FileDesc: MicrosoftR C Runtime Library FileVer: 10.0.40219.325 ProdVer: 10.0.40219.325
Module 9 C:\Program Files\Microsoft Office 15\root\VFS\ProgramFilesX64\Microsoft Office\Office15\ATL100.DLL Image Base: 0x6c610000 Image Size: 0x0002b000 File Size: 158536 File Time: 2016-07-25_143908 Version: Company: Microsoft Corporation Product: MicrosoftR Visual StudioR 10 FileDesc: ATL Module for Windows FileVer: 10.0.40219.325 ProdVer: 10.0.40219.325
Module 10 C:\WINDOWS\system32\tmumh\20019\TmMon\2.5.0.2070\tmmon64.dll Image Base: 0x6e6a0000 Image Size: 0x0011d000 File Size: 1161168 File Time: 2017-10-04_152504 Version: Company: Trend Micro Inc. Product: Trend Micro User Mode Hooking FileDesc: Trend Micro UMH Monitor Engine FileVer: 2.5.0.2070 ProdVer: 2.5.0.2070
== [end of error.log] ==
I do not understand the meaning of the contents written in the error log.
What is the cause of this error? Please tell me the solution!
Tried running unity as ad$$anonymous$$? Reinstalling unity?
I am running Unity with an account with ad$$anonymous$$istrator privileges. If I reinstall Unity, will this problem be solved?
I don't know but you've already waited at least half a day for an answer, might as well try, it only takes like half an hour. Also i would install it on a different drive. Sometimes programs installed on the system drive have problems (for me at least on win 7).
Answer by Bunny83 · Dec 14, 2017 at 04:33 PM
No, reinstalling will most likely not solve this issue. The actual error is a general protection fault because the native code tries to read from an invalid memory address (specifically 0x0). I can confirm that the offending code at the current program counter is part of the Unity.exe. However it's just a method which might be called from somewhere. It's one of the parameters which are actually 0 (the RDI / edi register).
No we can't help you here. This might be caused by some native code plugin you're using or by a bug in Unity that doesn't properly catch bad user input from your side. However we, as community, have no chance to figure out where the error comes from. Even when we had access to your whole project it's unlikely to figure out what went wrong here unless you did something obviously wrong. Though as i said Unity usually catches almost all user errors on the managed side and it shouldn't result in a GPF.
If you can't narrow down when this actually happens it's unlikely to find the cause. Do you actually use any third party assemblies or native code plugins? Which features of Unity do you use in your project?
I currently develop games for Windows and PS4. I use Unity's license by switching to each (I use Personal license when building for Windows and switch to Pro license when building for PS4). For Windows projects, native code plugins etc are not used. In the project for PS 4, we use the plug-in provided for development. However, this error is caused by a Windows project.
Answer by Glurth · Dec 14, 2017 at 06:28 PM
I see a few Microsoft and third-party DLL's in use, according to the log you posted. My shot-in-the-dark guess is that your system updated windows, or office, or a third party DLL like that trend-micro one.. which replaced the DLLs that were working fine, with DLL's that generate this problem. A "system restore", to a point before the system started generating these problems, (or otherwise rolling back to the old DLLs) could confirm if this is the issue or not. I'm not sure how to do so, but if you can confirm those DLL's have not changed, you can obviously eliminate this possibility.
that trend micro one looks particularly new: "File Time: 2017-10-04"
Is it an advice that if you do "Windows System Restore" it may be able to return to the state before the error occurred? Does that mean that Unity's project data itself is not problematic?
Answer by HBaron · Mar 13, 2018 at 11:54 AM
I'm having exactly the same problem. The modules shown in my error log are different, though. In the first crashes, files related to apps like Apple Bonjour or even National Instruments Software were listed in the modules. I tried removing the files from their folders and rebooting my PC, and that didn't solve the problem. At this point, I end up having 4 modules: two of them located in the Unity folder, and the other two are the C:\WINDOWS\SYSTEM32\MSVCP100.dll and C:\WINDOWS\SYSTEM32\MSVCR100.dll, related to the Microsoft Visual Studio C Runtime Library. I will try to move these files to another place temorarily to look if this works.
Your answer
Follow this Question
Related Questions
Standalone CTD (Access Violation) - Making sense of "error.log" files? 0 Answers
Access Violation (0xc0000005) 0 Answers
Tansform.position assign attempt for 'Enemy(Clone)' is not valid. Input position is {NaN, NaN, NaN} 0 Answers
gc: too many threads, crash using Unity 4.2 8 Answers
Game Crashes On Startup? 3 Answers