-
Notifications
You must be signed in to change notification settings - Fork 246
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
AnimatedLabel Thread hangs after WaitingDialog closed #595
Comments
Interesting, looks like the WeakReference that's supposed to shut down the thread doesn't trigger until you force GC after the window is closed. We should probably improve on that. |
Probably, the thread just ought to check validity of the objects it tries
to deal with...
and stop itself, if its prerequisites aren't met.
One should NEVER let program logic depend on actual GC runs.
…On Tue, Feb 13, 2024 at 2:41 PM mabe02 ***@***.***> wrote:
Interesting, looks like the WeakReference that's supposed to shut down the
thread doesn't trigger until you force GC after the window is closed. We
should probably improve on that.
—
Reply to this email directly, view it on GitHub
<#595 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIDBMW7F5W6RVDFQS4J4XLYTNUSNAVCNFSM6AAAAABDDY3SQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBRGU2DOMZYGY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I think this will fix it: |
Kapral67
referenced
this issue
in Kapral67/FamilyDirectory
Feb 29, 2024
Workaround for me:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is possible for the
AnimatedLabel::createSpinningLine
component's thread to hang after theWaitingDialog
that owns it is closed.A quick fix could be to explicitly call
AnimatedLabel::stopAnimation
inWaitingDIalog::close
(the spinning line would need to become an instance variable of theWaitingDialog
class).Although, I think a better solution would be some fix within the
AnimatedLabel
class itself.Proof of Concept:
The text was updated successfully, but these errors were encountered: