Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Why the progress bar?

Discussion in 'Editor & General Support' started by AustinSyu, May 5, 2021.

  1. AustinSyu

    AustinSyu

    Joined:
    Dec 5, 2018
    Posts:
    12
    Hello
    I know the progress bar is a new feature since 2020 and it's useful for someone in sometimes, but I just want to get rid of this.
    Or if I can't , please tell me what I'm supposed to do when it jumps out almost every time I've changed my script and occupies the center of screen for minutes?
    キャプチャ.JPG
     
    Ruslank100 likes this.
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,762
    I've been watching this unmitigated UI disaster unfold in Windows for the past X months now... it really is a complete poop-show of an idea. I assume Unity was trying to make the "locks up inexplicably while compiling" less of an issue, but it seems they have only made it aggressively worse. I see almost one or two posts PER DAY over in the editor group complaining about this.

    I'm on Mac so I don't see it, but I may have to cut back to Windows soon for work and I'm really dreading it, since it seems to basically infect only Windows installations.

    Does anyone from Unity have feedback on how to address this miserable UI failure case? I've heard of plenty of folks in the Editor group just give up on Unity because of it. I mean how long should one expect to wait?! Sometimes it's literally minutes. Is it antivirus? Is it just horribly-written compilers? What's going on? By this point everybody has gigahertz-level computers. WTF is going on?
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,505
    The dialog pops up whenever the main Unity thread is stuck on something. If the dialog wasn't there, Unity would still be frozen and not responsive for the same amount of time. It's not the dialog's fault.

    You can, however, increase the timeout before it appears in preferences if you think it pops up too often:

    upload_2021-5-5_12-2-37.png

    Furthermore, if you think Unity is freezing for unreasonable amount of seconds when performing action X, please report it as a bug and we will investigate.
     
  4. AustinSyu

    AustinSyu

    Joined:
    Dec 5, 2018
    Posts:
    12
    To make things clear, Unity is not freezing when the bar pops up. Everything is fine as normal except there is a meaningless progress bar in the center of screen.
    I have changed the value of BusyProgressDelay to the max(1000), but nothing changed.

    I thought maybe it's an issue of my own PC , but if Kurt's right, there's a lot people suffering from this(and they are quiting Unity). Why just you listen to them and find out what happening to their Unity Editor?
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,505
    Are you saying you're still able to interact with the editor when the progress bar is up?

    That's why we're asking for bug reports if you think this is a bug in Unity. So far, all such reported cases happened due to issues unrelated to the progress bar.
     
  6. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,914
    This progress bar doesn't fulfill the reason to have a progress bar. Which is to calm down the user because they know something is happening in the software, it isn't frozen to death just yet.
    This "progress bar" (well hold on bar) frustrates users and have exactly zero advantage. People just as much frustrated with it as would have been without it when the editor UI is unresponsive.
     
    Ruslank100 likes this.
  7. AustinSyu

    AustinSyu

    Joined:
    Dec 5, 2018
    Posts:
    12
    Yes, I can completely interact with the editor when bar is up. If I drag the bar to somewhere else, I can work as usual for a while till a new bar pops up.
    I'll try to do a bug report..but as you see in my screenshot, even a new project with just 1 script has this issue,so...I don't think a bug report can make much difference..
     
  8. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,914
    On the contrary. Not everyone have this issue, which means you have something what interacts with unity and this is the result. It is always good to get as much information as possible to be able to fix an issue what is not reliably reproduceable on every computer. So if you can, please submit the bug report and reference either this or the other "hold on" thread.
     
  9. AustinSyu

    AustinSyu

    Joined:
    Dec 5, 2018
    Posts:
    12
    OK, thank you
     
  10. altepTest

    altepTest

    Joined:
    Jul 5, 2012
    Posts:
    1,052
    This appears because the internal handling of unity events (inside the unity app itself) is busted.

    Not because its busy doing something.

    Unity remains cool and laid back in the taskmanager at 5% 10% max for minutes till some automatic timer kicks in and process the events in queue and as a result the timer disappears and you get back the control of the app

    This internal unity timer is set now for around 10 minutes

    I also suspect that this verify events still need to be completed timer runs in a loop every 10 minutes from the moment you start unity

    If you are lucky, when you get this bug it may be only a few minutes till the timer completes so sometime you get these loading bar messages for a few minutes max. If you are unlucky you get the bug when the timer just reset itself so you need to wait up to 10 minutes.

    I mean is not rocket science or brain surgery, if someone like me figured this out not sure why the unity team can't fix it.

    I suspect it may require changing the unity editor at its core and that may be an issue so they probably ignore this if the user affected base is under a certain percentage.

    For me sometimes unity works flawless for weeks. But then I get these loading bars delays for days on end. For example in the past week I had troubles closing unity.I had tot wait for 10+ minutes for that loading bar to unlock.

    As documented here

    https://forum.unity.com/threads/the...er-interface-events-screenshot-added.1102183/
     
    Ruslank100 likes this.
  11. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,004
    Was the delay setting removed in 2023? Why? I keep seeing the progress bar for a frame and then disappear for a frame when it's compiling shaders. It's not useful to me this way.
     
  12. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,505
    Seems to still be there: upload_2023-5-19_13-3-13.png
     
  13. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,134
    I suspect the problem most people have with the dialog box is that it's a separate window on the taskbar which means that anything able to interact with windows (eg alt-tab) will now interact with it first instead of the editor window.
     
    Ruslank100 likes this.
  14. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,004
    Is the setting tied to some package or something? Is there some reason why the setting might not appear? I looked into every current Unity editor version and the setting is not there for me.

    Either something weird is happening or I'm going mad, both seem equally possible.

    2020.3.48f1
    upload_2023-5-20_15-7-3.png

    2021.3.25f1
    upload_2023-5-20_15-5-20.png

    2022.2.20f1
    upload_2023-5-20_15-19-2.png

    2023.1.0b17
    upload_2023-5-20_15-17-1.png

    2023.2.0a15
    upload_2023-5-20_15-27-51.png
     
    Last edited: May 20, 2023
  15. IllTemperedTunas

    IllTemperedTunas

    Joined:
    Aug 31, 2012
    Posts:
    608
    Just trying to close the editor to start fresh on work today, 7 minutes so far:
    upload_2023-5-20_6-17-29.png
    Was hoping 2.20 would be a bit more stable
     
  16. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    1,046
    This is the kind of stuff that even Microsoft would consider apologising for...
     
  17. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,505
    Looks like you're on a Mac? I believe that setting is Windows only, as the way progress bar is implemented on Windows is a watchdog thread watching the main thread and when it doesn't respond for a period of time, it pops up that progress bar dialog. Whereas on Linux/Mac they only appear as a result of direct calls to EditorUtility.DisplayProgressBar
     
  18. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,004
    Yes, I'm on a Mac. I could have sworn the setting was there on my previous mac, but I must be remembering wrong.

    BUT. The issue now becomes: Why is 2023 popping up progress bars for a couple of frames on a Mac when it's compiling shaders? It's pretty disorienting when I'm in play mode and upon seeing a new mesh with new shaders, I have a flickering progress bar popping up. This wasn't the behaviour in previous versions and it's very distracting.
     
  19. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,505
    No idea. Mind making a thread on the beta forum dedicated to that issue? Then I can invite relevant folks to look at it/respond to you.
     
  20. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,004
    If I have time, I might do it on the weekend, cheers.
     
  21. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    1,046
    I commented in one of the beta/alpha threads about this two weeks ago, and it was disputed that this was even possible. It does happen. Every single time I enter Play mode in 2022 and 2023 versions. All of them.

    You don't need a bug report. Somebody needs to look at why something like this would be happening in play mode.

    Is there a switch to get all shader compilation down upon entering Play mode, for now, whilst you figure out how to stop this nonsense?
     
  22. prakashkumar07

    prakashkumar07

    Joined:
    Sep 16, 2023
    Posts:
    1
    It's solved for me. I had similar problem of unity always showing this progress bar dialog on each action like clicking a sprite, clicking play button. I did Window >> Layouts >> Default. Earlier the layout was 2 by 3. Reason i think is because the "Game" window is visible along with the editor window. Hope this solves for someone.
    Like and Reply if it worked out.
     
  23. mitaywalle

    mitaywalle

    Joined:
    Jul 1, 2013
    Posts:
    245
    Bump. It's also problem to record video from GameView
     
  24. mitaywalle

    mitaywalle

    Joined:
    Jul 1, 2013
    Posts:
    245
    Ruslank100 likes this.
  25. APSchmidtOfOld

    APSchmidtOfOld

    Joined:
    Aug 8, 2016
    Posts:
    4,473
    Il think I've never seen that one yet. Personally, I'm plagued with the infamous "Reload scripts assemblies" progress bar hundreds times per day, each time after I modify a script (which is something I understand) and each time I enter play mode (which is something I do not understand). :mad: And that one freezes Unity.
     
    Last edited: Sep 20, 2023
    Ruslank100 likes this.