-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
progress bar error #841
Comments
Just noticed it's very similar to #830
And the subsequent calls:
What I don't understand is that it does it apparently randomly, without changing any of the code or circumstances when running it. perhaps the progressbar can be set to null here? |
Looks like a threading issue. You need to do all modifications of the progress bar on the AWT thread. Use
Because in "indeterminate" mode the progress bar repaints every 15ms on AWT thread while you modify it on another thread.
You should dispose the window on AWT thread. This avoids the NPE.
I think this is because FlatLaf repaints progress bar in "indeterminate" mode every 15ms, but other Laf every 50ms. |
I've added some logs (including stack trace) to Please try latest |
Thank you, in the midst of it I didn't realise I was updating UI outside of AWT thread... Fixed it and will have to be more careful!
I also appreciate the friendly reminder for when dumb mistakes like mine are made and the promptness of which you've added this... amazing as always! |
I sometimes get the error call below from the progress bar of the splash screen of my app, but it does it very randomly and out of nowhere, and then it might not do it again for another twenty runs, even if I don't change any of the code...
Any clue if this can be a bug somewhere in the FlatProgressBarUI or something else unrelated?
The text was updated successfully, but these errors were encountered: