Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Beennn · Sep 06, 2018 at 08:53 PM · editorhang

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!

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JVene · Sep 06, 2018 at 09:44 PM 0
Share

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.

avatar image Beennn JVene · Sep 06, 2018 at 10:01 PM 0
Share

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

avatar image Beennn JVene · Sep 07, 2018 at 02:11 AM 0
Share

During the 0% hang, the available memory is 18GB

avatar image JVene Beennn · Sep 07, 2018 at 04:25 AM 0
Share

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?

Show more comments
avatar image Beennn · Nov 29, 2018 at 12:42 PM 0
Share

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.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

121 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Memory Crash / Hang on build Unity 4.5.3f3 1 Answer

Vuforia causes lag in editor? 0 Answers

corotuine looping hang the editor. 1 Answer

Editor Fails to Re-Launch After Manually Killing The Task Due to Freezing 0 Answers

How can I stop Fabric 2.1.6 from hanging for 4-5 minutes when stopping Unity 4.2 Editor? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges