- Home /
Unity Editor Hanging with 0% CPU Consumption
I've been trying to find others with a similar issue, but nothing else has come up - so here I go.
I'm getting this weird issue where Unity is hanging for about 3-5 seconds, randomly, more so when changing focus on other windows, or if entering / exiting play mode. The issue persists and hangs more regularly when in play mode, freezing every 15 or so seconds, for 3-5 seconds again.
Looking at task manager, Unity's CPU consumption drops down to 0% whenever these hangs happen, and go to 'not responding' while it happens.
I've been updating to the latest 2018.2.x patches as soon as they've been released, so it's hard to pinpoint when exactly this started to happen, but it was around 2018.2.5.
How it happens: After booting up my computer, I start Unity After about 5 hours, the hangs start to happen - they get progressively worse rapidly The problem persists across projects The only way i've found to fix it, is to restart my computer I only have issues with Unity, everything else on my system functions as expected
Things I've tried: Clearing my GI cache Uninstalling and reinstalling Unity Clearing all the appdata cached files
Current unity version: 2018.2.6f1
Any ideas?
Thanks!
Ideas to help debug the problem, but I don't yet know with any certainty what it is.
Hanging with 0% CPU consumption may imply RA$$anonymous$$ overload. How much available RA$$anonymous$$ is shown? What version of Windows? Windows 7 Task manager only shows RA$$anonymous$$ and CPU consumption, so you'd need to hit the "Performance monitor" button (lower left area) so you can monitor disk performance metrics. In Windows 8.1 and Windows 10, these are on the performance tab of the task manager, where you can see how busy the disks are.
What I'm looking for is a measure of disk performance usage (if the disk is very busy, this is called 'thrashing', and may be that RA$$anonymous$$ is overloaded and the operating system is trying to use virtual memory to keep things running). If RA$$anonymous$$ is exhausted, it is merely that you don't have sufficient RA$$anonymous$$ for the version of Unity you've loaded.
If that's not it, we'll have to look elsewhere.
There is one other means this can happen. In Windows, all executable files are mapped as virtual memory. This means there is a V$$anonymous$$ subsystem active for all executable file reads during the use of an application, especially upon startup. If there's a flaw on the drive, this can cause the OS to hang, retrying to read a corrupt block on the drive (where the software resides), and that will lock the application for a while during this event, until it finally clears (gets the data), and then suddenly things start working again. If that's the problem, I'll need to know if this is traditional hard drive or SSD, but you may need a chkdsk /r (Google explains) to recover bad blocks on the drive.
Hi JVene,
Thanks for your reply - the next time it happens I will send over the figures you have asked for.
Spec wise, i'm running Windows 10, 32GB RA$$anonymous$$ - the Unity editor and project are both running off separate SSD's
Can't be RA$$anonymous$$, then.
Desktop or laptop?
If this is drive related, on SSD you can't run chkdsk /r (/f is ok, but not /r).
Do you have the means of installing a new installation of Windows on another drive or partition? $$anonymous$$y thinking is to test if it's Windows.
Windows 10 is renown for having update issues over the last year or two. It can be that part of the OS ties itself in knots, and I have two examples where that impacted only one or two applications, even if the applications were re-installed. $$anonymous$$y theory, to test, is to see if that's your case, by booting into a clean OS, install Unity and see if that "fixes" it.
Among the many things that can happen, .NET DLL hell (multiple, conflicting versions get stuck and aren't really updated, or lots of various such confusion).
If you try this, try the Unity install after $$anonymous$$imal or no updates to Windows 10 first. Then, if it does 'fix' it, update and see if that breaks it.
Along these same lines, but in a different direction, are graphics driver issues. Which GPU and drivers do you have? Sometimes these can cause this kind of issue, and occasionally we've had to roll back to older drivers for a while, pending a newer update. Lest you assume this isn't it because everything else works, I'd point out that Unity does a few things with the GPU uncommon compared to lots of other applications (not radical, nor heavy, just....unusual).
Do you have multiple displays? Are they from the same or different cards?
Stepping through Unity's process, every time the hang happens, the following exception is thrown: Exception thrown at 0x0000000058879B95 in Unity.exe: 0xC0000005: Access violation reading location 0x000000000000005C.
Answer by CRYWOLF86 · May 11, 2021 at 06:38 PM
I'm having the exact same problem on 2019.4.22f1. It makes working on my project completely unfeasible. I'm using Steam VR with Unity XR plugin. If someone comes across a solution, please share. Unreal is starting to look good.
Your answer

Follow this Question
Related Questions
Editor GUI error 0 Answers
Vuforia causes lag in editor? 0 Answers
Memory Crash / Hang on build Unity 4.5.3f3 1 Answer
corotuine looping hang the editor. 1 Answer
Editor Fails to Re-Launch After Manually Killing The Task Due to Freezing 0 Answers