Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Lots of busy... Hold on.... etc?

Discussion in '2020.1 Beta' started by hippocoder, Feb 22, 2020.

  1. wimachtendink

    wimachtendink

    Joined:
    Jan 21, 2018
    Posts:
    8
    upload_2021-3-2_15-27-50.png
    just now I clicked "file"
     
    Play2D, Marc-Saubion and amit-chai like this.
  2. Probably time to bring out the profiler and profile what is happening. And if the problem is in unity itself and it is not a rouge asset or editor window modification, file a bug report with the profiler results.
     
    MartinTilo likes this.
  3. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    The problem with the busy popup is that it doesn't show any useful information about why Unity is busy. Just showing the entry point, like Application.ExecuteMenuItem, it useless.
     
  4. valarnur

    valarnur

    Joined:
    Apr 7, 2019
    Posts:
    440
    @Aras @MartinTilo
    Empty HDRP 11 project in 21.1b6 (21.1b8 was even longer script with enter play mode and script compilation)
    after quiting play mode, editor viewport does not respond



    s1.JPG

    Why is asset database reloading but there's almost empty project? Why are .Repaints happening?
     
    Last edited: Mar 3, 2021
  5. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    @UnityMaru What about when you update a project from a version below, and then it starts doing this without any actual changes in the project?

    This is how it has happened for me, suddenly with the new 2020 versions i am getting waits that did not exist before, and, they are happening with increasing regularity. For some reason, something *inside unity* has changed, not inside my project for which the only code changes have been within one script.

    Atm the entire process of using unity at all has become horribly painful, waiting whilst unity wastes time with the simplest request - to open a menu, or to select the inspector... pretty much anything, and if you want actual proof that it is nothing to do with the code in these projects, what about the fact my project doesnt include any shaders written by me, or, any objects which possess their own shaders, and yet one of the stupid long waits comes from when you select the shader dropdown for a material.

    I would be happy to send my entire project if it would help to diagnose this problem, as at the moment i am spending 75% of my time in unity *waiting for unnecesarily slow actions to complete*.

    I just clicked save, for example, as i was about to do a build, and the save took around 7 mins, in spite of there not actually being any changes made... If i collated the time and access speeds my os reported during this period it could have easily copied and duplicated my project several times over, and, it even manages to make the os report impossible disk access times as well, it reported around 2gb per second access speed on a fairly standard hard drive which clearly cannot perform at that speed...


    There is something fundamentally wrong inside the program, and, i have a sneeking suspicion that it is deeply embedded into the systems being used to show these new progress bars. When it is being slow the progress bar says things like "repaint" or something, always suggesting that the slowdown is inside the actual gui component behaviours reading the information, and, that it isnt actually doing anything useful.

    On occasion the delay says things like "importing" and so on, but those tend to pass quickly, and then it spends 97% of the time at a point like Repaint, or, refresh... things which should be and always used to be very quick.
     
    zeynolladamir123 likes this.
  6. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    Just to prove the point im gonna see if i can replicate the issue using only the default assets within a new project.
     
  7. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,451
    Can you two please report a bug?
     
  8. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    upload_2021-3-3_19-53-37.png
    As an example, during a click of the dropdown for the shader selection on a material. Its still going... still waiting. And... there are only the builtin shaders present.

    *EDIT* Now timer is at 3:24...
     
  9. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    Ok, i can post a bug, but... what specifics do i give when it is such a broad problem?
     
  10. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    Im starting to wonder if you guys should stop pushing unity forward, and, instead *FIX IT* for its current version.

    Every version has a bunch of new features to add to the uncertain mess of the current editor *WITHOUT HAVING FIXED MOST OF THE PREVIOUS VERSION'S KNOWN ISSUES.*

    Is that how it should be done? Instead of powering on forwards, with old bugs still floating around which have been known but not dealt with? Judging by the state of this thread and the fact that it is not the only area within which this sort of response is happening, i think you guys just need to stop advancing, and settle your footing at the current version...

    And stop wasting hours and hours and hours of peoples time. Today, 3 hours after i tried to start working, i am leaving it alone because these issues are so infuriating to deal with, and i cant handle the stress. And to only have the staff repeatedly try and blame it on the code of the users... is disgusting. You make a program, it gets updates, then suddenly users have trouble with things whilst their own code has not fundamentally changed... then that is not the fault of the user, it is the fault of the editor.

    Im sure *every* unity user would be more than happy to forego a year or two in tech advancement if it meant we could have an editor *THAT ACTUALLY WORKS*.

    If you stopped to work on stability, unity would be the market leader for self contained development software, instead, unity seems set on destroying the reputation they do have.


    *EDIT* Apologies for the tone of my message above, but the point still stands.
     
    Last edited: Mar 3, 2021
  11. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    Further update, and further proof that the issue is not the code of the user, is that i just performed a rebuild of the project, and it has solved the problem - without a single line of code or package changed.

    The problem appears to lay in the ... messy way that the project folder is left, once an import into a new version happens and...

    Well, the entire thing could be dealt with by making the project, when re-importing, *actually* delete all the stuff you dont need. Currently, i am 100% sure that the re-import feature just overwrites everything that is there and doesnt remove old temp files or scripting backups etc that exist within the folder. When the data is left behind from previous versions, it would make things very unpredictable... and that appears to be the major problem here.

    Again, apologies for the tone but having spent four hours staring blankly at my monitor and unable to progress with a project that has been my main focus for the last 2.5 years, and having it seem like it may be approaching a point where i have to give it up is... not pleasant.

    Please take my words above as advice, free to be discarded or considered as you see fit... and i will send the full project which is still experiencing the slowdowns to the bug reports... The problem could easily be detectable, and, if desired, automatically dealt with, with just a modicum of forethought - tidying up those massive directories frequently, for example.

    (My opinion is still that unity rocks! but... sometimes it hurts too :p )


    *EDIT* --- What i did exactly;
    Updated from unity 2020.2.3f1 to 2020.2.6f1, but, didnt open the project in 2020.2.6.f1. Then,
    I copied "Assets", "packages", "UserSettings", and "ProjectSettings" to a new folder, and *then* opened the new project folder in the new version of the editor.

    First play was 15-20 seconds, quite acceptable considering it was only the first time, then 3 or so seconds, and, the aforementioned menu item - material shader selection - opened without any noticeable delay.

    So far, no noticeable delays at all.
     
    Last edited: Mar 3, 2021
  12. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    Im gonna await response from the Unity people before i post the bug, as the problem could be solved by either the update or the rebuild, and, if desired i can perform further tests, as the faulty slow project is still untouched.
     
  13. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,451
    That's exactly what we've been doing for the last few months. We've stopped feature development except for crucial key areas where there are gaping holes in the current offering or that are otherwise critical to our users to keep going on. If you look at that blog post and the release notes since then, you'd probably notice that.

    Keep in mind that there are multiple teams working on multiple parts of the engine and editor. If an area has too many bugs feature development is halted, with a particularly low threshold for regressions. Now we are on a release schedule so we'll keep shipping versions but the contents of these in the last months have been predominantly bugfixes, which where feasible also get backported.

    Now, we can only fix what we know about. I can't possibly know all of our existing bugs (my focus is on the ones in the profiling tooling) so if you want to make sure your issues are addressed please file bug report. Let us know where the issues are in case we somehow managed to miss them. That is way more productive than forum posts because it comes with your hardware stats, possibly call stacks from crashes, editor logs and projects with all the thousands of settings and assets that could affect things. It's usually not possible or reasonable to put that info into a forum post or for us to extract it, and if things get lumped together like in this thread, it's nigh impossible to track it or make sense of it.

    Please, file bug reports. Help us get the full picture of what's broken and get updated when it's fixed.


    And this kinda stuff is where we need snapshots of a project in a broken state. Knowing how it got there would be the dream but having it in that state to begin with is at least something to work with. You can't imagine the bazillion ways things can go wrong...
     
    BenniKo and valarnur like this.
  14. nyscersul

    nyscersul

    Joined:
    Oct 17, 2018
    Posts:
    136
    Ok, thats good to hear. Ill get the project sent soon, its... rather large.
    (Altho, 95% is the unity added stuff in library etc)
     
    MartinTilo likes this.
  15. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,451
    Thank you :)
    It sounds like the library stuff might be relevant in this case? Not 100% sure I understood the "rebuild" aspect...
     
  16. MerlinsMaster

    MerlinsMaster

    Joined:
    Jan 15, 2015
    Posts:
    33
    I agree. Even when working in a fresh project, doing really simple stuff, it's super laggy. Way more so than previous versions.
     
    wm-VR likes this.
  17. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Again, as mentioned previously -- please please please file a bug with said project. "Fresh project" can mean a ton of different things (depending on e.g. the template you chose). This can lead to different packages being included, and e.g. if just one of them is the underlying cause of the slowdowns, that would be great to know. Like, (completely random theory as an example), maybe the slowdowns only happen when Collaborate package is in the project, and you are logged in via the top toolbar? And so on.
     
  18. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,334
    When Unity is slow, always assume it's Collaborate. It's an abomination.

    @Aras, @MartinTilo, we have some slowdowns happening very rarely. So there's operations that usually are pretty fast that very occasionally are super-slow and pop up a load bar.

    In those cases, figuring out what's going on is hard. We'd kinda have to always have the editor profiler open, and then hope that we're fast enough to stop the profiler once that happens. Worse, we'd have to have deep profiling enabled and that'd introduce a lot of lags that normally would usually be there.

    Is there any way the popup window could dig deeper in the call stack? Or is there some way we could have the profiler better able to help us identify what's going on when Unity's slow without having it be full throttle all the time?

    I realize that it's hard, as you can't know that an operation is slow until it's already been slow once. But some kind of "hey, this function has been slow earlier, so since we're calling it again, increase how hard we profile it this time around since it's a likely candidate for trouble?"
     
    tankorsmash and Lurking-Ninja like this.
  19. It is also possible to simply wire the auto-profiling-start when the first hold-on popup evaluation happens (turn on profiling when Unity is deciding whether or not show the hold-on popup and turn off when it hides and show the profiler window). In the alpha and beta builds only and should be configurable. At least we, who care about this, could get you a ton of data to work on.
     
  20. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,451
    SugoiDev, Baste and Lurking-Ninja like this.
  21. MartinTilo likes this.
  22. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    One another possible way: don't use Unity profiler, but use a native code profiler, e.g. https://github.com/google/UIforETW -- you could just have it open & running almost all the time, and do a capture once the slowdown happens. Quoting from the blog post about it:
    Yeah, we're starting to look into what "more" we could do there. Maybe showing main thread stack traces somehow, etc.
     
    Lurking-Ninja, Baste and MartinTilo like this.
  23. amit-chai

    amit-chai

    Joined:
    Jul 2, 2012
    Posts:
    80
    This happens to me all the time. Just waited 20 min for it to release itself. using 2020.2.7f
     
  24. amit-chai

    amit-chai

    Joined:
    Jul 2, 2012
    Posts:
    80
    upload_2021-3-7_1-13-37.png
     
    P_Jong likes this.
  25. See the tools above to find out what's happening and if you find something coming from Unity itself, file a bug report using the actual data you gain using those tools. So Unity can fix the problem. Also if it turns out it's some other code, you can find out what to fix or if it is some third-party, you can tell them or you can decide to stop using that piece of code.
     
    MartinTilo and amit-chai like this.
  26. amit-chai

    amit-chai

    Joined:
    Jul 2, 2012
    Posts:
    80
    Thanks! will check it out!
     
    MartinTilo likes this.
  27. amit-chai

    amit-chai

    Joined:
    Jul 2, 2012
    Posts:
    80
    I've ended up starting a new version and transfer all content. seems to works without issues for now. much much faster. Still hope for a reasonable solution, since this project was made with 2020.2.x from the start.
     
    P_Jong likes this.
  28. Tsahyla

    Tsahyla

    Joined:
    Oct 20, 2012
    Posts:
    23
    Unity 2020.2.7f1 (default render pipeline, Windows 10) - Ok, this is absolutely and painfully awful! And the longer I am using Unity the worse it gets. I thought something was going on so I created a new, empty scene and put in a single 1024 terrain. Took 8 minutes from clicking on the terrain until the terrain showed in the inspector, all the while "Hold On ... " progress bar was whipping back and forth. Just for grins when the Terrain Inspector finally showed I hit File/Save -- took 3 minutes for the "Hold On ... " progress bar to stop. Everything I try

    This actually makes 2020.2.7f1 completely unusable. Yes, I know its beta but good grief, 2020.2.6 didn't do this. There seriously must be no legit quality checks or even cursory looks at these releases before they push out a very flawed version. I am a long time Unity user (since the 3.something Mac only version) and I'm seriously concerned about the production philosophy and my decision to go with Unity. It's maddening trying to get things done with flawed version after flawed version. The users while they can be helpful resource, should not be responsible for fixing all this. This entire product (all released versions) really needs a major Quality Improvement initiative overhaul seems like.

    I really didn't intend for this to come across a rant : but goodness this is frustrating.
     
  29. VirtualPierogi

    VirtualPierogi

    Joined:
    Sep 3, 2012
    Posts:
    54
    upload_2021-3-9_22-35-52.png
    Im getting lots of these when trying to close the project, its not especially big.
    im just forceclosing the project with taskmanager for now but this is kinda unnecessary.
    Unity 2020.2.5f
     
  30. dinuka_jay

    dinuka_jay

    Joined:
    Oct 27, 2018
    Posts:
    9
    I can confirm that most of these messages come up because of the Collab feature. Disabling that reduces these occurrences BUT that's not a solution at all. If you are using Collab feature, you'll run in to this quite frequently and therefore needs a fix asap or uproot and move to Git instead (which is not practical for most ongoing projects)
     
  31. Every one of the version control assets is slow like hell. Collab, GitHub for Unity, Plastic for Unity, doesn't matter. Simply 'watching' the entire Asset directory tree including full depth and all files is too expensive.
    I work more faster since I moved to Azure Repos (part of Devops, completely free for persons and small businesses, unlimited gigabytes, including LFS and everything) and I can handle my commits and pushes and pulls from Rider (but you equally easily can use SourceTree or other Git-friendly tools too). Unity Editor isn't involved. You just need to build a good enough .gitignore file (the .collabignore is a good starting point). This way I can include even higher folders in the VCS. It is worth the work to switch.
     
  32. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,334
    They're slow if they're watching the asset tree directory.

    Git by default only does work when you tell it to. If you're talking about git integrations in the editor, well, yeah, don't use those? It's always seemed strange to me that somebody'd want to open an editor window rather than alt+tabbing to a terminal or git UI app.

    The big problem with collab seems to be that it does things that are slow even when you're not using collab, and it's installed by default. They might've fixed that, idk.
     
  33. Marc-Saubion

    Marc-Saubion

    Joined:
    Jul 6, 2011
    Posts:
    655
    Are we sure about that?

    On my project, collab is off and uninstalled and yet, I have that problem. That said, it' does look a lot like "check for changes" with a new name.
     
  34. wm-VR

    wm-VR

    Joined:
    Aug 17, 2014
    Posts:
    123
    We get messages like mentioned in previous posts on a regular basis since we did an update.

    We updated from 2020.1.17 to the latest 2020.2.7 version. We did no updates in between.

    We did not have these problems with Unity 2020.1.17. I can confirm that.
    The problems started immediately after the Unity update and before we updated some package manager files like UWRP later.

    "Application.Quit" usually takes up to 12 minutes and sometimes it's enough to check or uncheck a random checkbox on one of our scripts inside the inspector to invoke these messages followed by minutes of waiting time.

    We also don't use the collab-features. This feature is deactivated.

    Could this be a memory issue?
    I have a subtle feeling that my computer is getting slower and I had to force to quite Unity at one point and restart my computer.

    upload_2021-3-12_12-12-38.png

    upload_2021-3-12_13-3-36.png

    after saving the scene

    upload_2021-3-12_17-19-9.png
     
    Last edited: Mar 12, 2021
    AlterMannn likes this.
  35. Temka_193

    Temka_193

    Joined:
    Oct 24, 2015
    Posts:
    47
    I acknowledge Unity freeze problems. 2020.2.4
    Every time you open the list of shaders in a material, Unity freeze indefinitely.
    I suspect that shaders are being compiled at this point. Perhaps this is due to the old ShaderGraph format of shaders, which are in Packages and we cannot resave them to the new format in any way.
    upload_2021-3-12_20-42-23.png
     
    dongch007 likes this.
  36. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,014
    Drago28, Aras and MartinTilo like this.
  37. wm-VR

    wm-VR

    Joined:
    Aug 17, 2014
    Posts:
    123
    upload_2021-3-13_12-44-27.png

    I just clicked on "file".

    Is there no programmer at Unity who can fix this?

    I hope that after lunch the progress bar has disappeared and I can continue working
     
  38. sandstedt

    sandstedt

    Joined:
    May 24, 2015
    Posts:
    67
    Having the same problem myself. On a fresh new URP project, there's no problems, but in my project, there's around 3min waiting time every time I try to change a shader in the inspector of a material, or closing Unity.

    Tried doing some editor deep profiling, but the profiler stopped recording as soon as the "Hold on" modals shows up.

    In my task manager I notice the drive going up to around 320 MB/s read speed, to go down to 0 as soon as the modal disappears. Else no spikes or high usage of either CPU, memory or GPU.

    Will try to import all my assets and plug-ins one by one until it brakes :D Will get back in a couple of hours.

    (running Unity 2020.2.6f1 on a Asus ROG 14, AMD Ryzen 9, 32 GB memory, SSD, NVIDIA RTX 2060 max-q (but in my tests using AMD Radeon build cause I'm on the battery)
     
    P_Jong likes this.
  39. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    This sounds like exactly the same issue as Aleksandr posted about two messages above,
    https://issuetracker.unity3d.com/issues/shader-error-db-grows-on-each-build that should be fixed soon. Deleting Library/ShaderCache.db in the meantime would be a workaround.
     
    rhistel likes this.
  40. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    We'd love to, if we knew how to reproduce the issue! Please please please file a bug with a project that makes this happen, and instructions in how to make it happen.
     
    wm-VR likes this.
  41. sandstedt

    sandstedt

    Joined:
    May 24, 2015
    Posts:
    67
    Sorry, totally missed that post.

    Checking my project, the Library folder was 20gb, (830mb after deleting and reimporting), and now the Shader Selector works again, and only 1sek wait time when closing

    Will see if I can upgrade to 2021.1.0b12, else I continue to regularly delete the Library folder.

    Thanks for fixing this!

    (btw, usually I try to creating a bug report, but most of the time the bug reporter crashes, or fails to upload all files, so I just give up)
     
  42. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,451
    The fix is getting backported to 2020.3 too
     
  43. wm-VR

    wm-VR

    Joined:
    Aug 17, 2014
    Posts:
    123

    I don't see this behavior on my (much slower) laptop with the same Unity version installed and the exact same project files but on the contrary I did not have this message boxes with Unity 2020.02.7f1 on the pc at all. Is this strange?

    You guys are welcome to take a look via TeamView on my computer if it helps you.

    "Hold-on" is greeting me again while I was about to add a color filter right now.
    upload_2021-3-14_0-56-50.png
     
    Last edited: Mar 14, 2021
  44. corbinyo

    corbinyo

    Joined:
    Aug 23, 2017
    Posts:
    26
    Select All Keyframes & change Keyframe tangent
    upload_2021-3-14_9-0-33.png
     
  45. Gordyus

    Gordyus

    Joined:
    Mar 3, 2016
    Posts:
    9
    Hello,
    I've got something new with version 2020.3.0f1.
    The same "Hold on..." box appears for some minutes when pressing play mode button, then I've got a chrome.exe error and editor crash and close.
    upload_2021-3-16_10-27-2.png
    This behavior appears 3 times today, even after a reboot.
    Note that my chrome works fine and stay open.
    Unfortunately, I don't I have the bug report window so I can't send you a bug report :/
     
  46. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,451
    You can go to Help->Report a Bug after reopening the project. That should attach any crash logs from the previous run as well.
     
  47. Personuo

    Personuo

    Joined:
    Mar 19, 2014
    Posts:
    129
    Sammmme with me! 2020.3 still has this problem
     
  48. Personuo

    Personuo

    Joined:
    Mar 19, 2014
    Posts:
    129
    This problem is making my project inching forward,Encounter every 10 minutes or so
     

    Attached Files:

    P_Jong likes this.
  49. jpowell-j2

    jpowell-j2

    Joined:
    Aug 6, 2018
    Posts:
    1
    Unity 2020.2.4
    This is not okay ....

    this_is_not_ok.png

    I waited around 11 minutes this time. Each action on the editor arbitrary get the "Hold on" window.
    At the end, you wait more than making games, this is very frustrating.
     
    unity_uCAh1YGgjxXPOw and ch715t0 like this.
  50. wm-VR

    wm-VR

    Joined:
    Aug 17, 2014
    Posts:
    123
    I tried to open the shaderlist inside a newly created material. At the end (after 35 min waiting-time) Unity closed without warning or the chance to file a bug report and my progress got lost as well.

    It happened twice today on the same spot (trying to select a shader). Unity 2020.3.0f1

    Since then it worked fine. How could I reproduce such a behavior?

    I made all windows updates, deactivated my anti-virus, closed every single task I don't need, updated all drivers and checked my hardware but this boxes just won't disappear. To work under this conditions has become very frustrating I must say. I didn't have these problems in Unity 2020.1.17 with the same project.

    upload_2021-3-16_18-13-4.png
     
    Last edited: Mar 16, 2021
    unity_uCAh1YGgjxXPOw and P_Jong like this.