- Home /
Unity crashes on code compilation
Hey, Unity keeps crashing whenever it attempts to compile my code. I get a wide range of different errors. Doesn't appear to be any errors in my code (upon restarting Unity after crash it runs fine....for a couple minutes) Checking the error logs I get missing stack traces or any of the following:
(Typical hour of attempting to use Unity)
14:48 - Clicking play in the editor RtlLookupFunctionEntry returned NULL function. Aborting stack walk.
15:01 - Clicking play in the editor KERNELBASE.dll caused an Unknown exception type (0xe0000001) in module KERNELBASE.dll at 99e64f69.
15:15 - Navigating to Unity Unity.exe caused an Access Violation (0xc0000005) in module Unity.exe at 01e24b65.
15:27 Clicking play - ? No idea
15:52 KERNELBASE.dll caused an Unknown exception type (0xe0000001) in module KERNELBASE.dll at 99e64f69.
Unity Version 2021.1.16f Visual Studio 2019
I've repaired my registry files + .dlls, uninstalled, reinstalled Unity, updated all packages etc etc I have no idea what else to try. I can't file a bug report as that also crashes and creates a 6GB .txt file on my hard drive...
Any help would be massively appreciated.
Answer by Bubblehead333 · Jan 13 at 08:57 PM
Update: Rollback my version of Unity to 2020.3.25f1...still crashing. Thought maybe the bug report would work as I'm now running an LTS version, didn't. Seemed to want to create 3 files, two equalling 6GB, ran out of disk space on the third try then crashed again. Anyone have any ideas? Running out of options.