0
Cannot Reproduce

Unity freezes after generating unit options in the background

Necka 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 4

I have this weird issue:

I need to add a unit option, I got the the option wizard, add it and click on generate. As I know it'll take some time, I just alt tab to another page like google chrome, browse some stuff and when I see Unity is finished, I try to go back but it doesn't work. Got the "ding" sound from Windows like it's bugged out. 

Unity doesn't crash or anything, I can see my editor, but nothing is responsive, clicking anywhere in the editor just give the "ding" sound from Windows. I have to kill Unity in the task manager and restart it. Then the Unit Options aren't built so I need to do it again.

I have a dual monitor setup in case that has any impact.

I can avoid the bug by waiting the "Analysing database" or whatever it says and wait for the phase "Converting to unit options" to start (loading bar moving). If I alt tab at this stage then I can go back to Unity editor with no issue

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Pending Review

Hm, odd! Is the menu responsive at this point? If so, you could try Tools > Ludiq > Developer > Clear Progress Bar.

No, there is no progress bar, it's like it's finished but the whole Unity editor isn't responsive at all to any click anywhere 

Working on Fix

I see. Well, I can't say I know what's happening; Bolt is using the standard Unity progress bar API here. Maybe there's an issue with the window losing focus on Windows.

What I can tell you is I'm reworking this entire process, along with the progress bar display, in v.1.4.1, so whatever is causing this issue is very unlikely to keep occurring then. I'll mark this as Working on Fix until then, and we can have another look once 1.4.1 is out!