-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #304, increase QML initialization waiting time #305
Conversation
With the increased waiting time, the state machine is now able to work right on the first reset, |
I just realized that there were some logic conflict in my description about the bug, I miss understood it. In PR #304, I added these code in
This was a part of code for implementing stoppable collecting process. QML initialization waiting time not long enough only made the QML but won't block the process, so the fix code above just made it worse.. Therefore..
This is not right, it didn't rely on that, but I make it does, and the bug pops. Anyway, the bug isn't exists anymore, although increasing QML initialization waiting time wasn't the real medicine to fix (commit 786ca30 was the true fix), but did increase the chance to display GUI right. If some how the wait-time value Does this make sense to you ? |
mode: { | ||
if (startup == true) { | ||
setMessage("Collecting..") | ||
return 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the true bug.
Thanks @davidlatwe - I'll play with this hopefully soon to test it. Just wondering, is the longer 1500 delay still needed if it's fixed already? What's the current worst case? |
Thanks @BigRoy :)
Not really needed, but would increase the chance that QML event handler get initialized to catch signal
I think you meant 500 delay ? If so, then the worst case would be the first collecting process will startup with the GUI below, instead of "Collecting.." message and a stop button : No messages and all the buttons were early exposed, not really serious. |
Seems to be working fine on my machine here. Putting this live in production Today, if anything pops up I'll let you know. |
Thanks @BigRoy ! Great news ! |
It seems to work nicely here. I did get this comment from one of the artists Today though:
That would be the right click menu on plug-ins that trigger an action. |
Hmm, No, I haven't. |
Yep, just checked the change again, should be unrelated, I could bet a case of beer 🍺 , haha |
With how often artists are wrong I'd stay away from joining that bet. Nice work again David, thanks. 🍻 |
Merging ! |
Problem
In previous PR #304, the new feature that allow user to stop collecting process at startup, will make GUI stuck at "Collecting.." phase if the collecting process ended in short time (before QML get initialized).
That feature rely on QML to receive the signal
firstRun
to reset those button, so if the signalfirstRun
emitted before QML complete initialization, GUI stocked.Fix
Increase QML initialization waiting time from
500
to1500
, give it enough time to be ready to receive signalfirstRun