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
Creating a windows inside onClose handler causes Fyne to panic. #1106
Comments
Can you please share the code that you are using to cause this panic? |
Fairly simple: |
Thanks. I guess that this is the only window visible at the time? I can fix the crash, but I will have to think about how this could be supported. It's a bit troublesome and #467 is probably tracking the right way to do this. In the meantime you can add |
This patch fixes the panic, though it does not change the overall behaviour - for that we need #467 . |
The patch is landed on develop for testing, will be in 1.3.1 at some point. |
The issue still persists on |
Can you please post the revised panic stack trace? I can no longer replicate it here... |
|
That is still using the v1.3.0 release |
oh, sorry, will redo |
|
Ah yes, it turns out I missed a fine in my commit sorry - there is a more complete solution in PR #1133 |
Indeed I have encountered that while trying to workaround a missing
WillClose()
handler (needed to prevent closing the window, so I tried to reopen it again). So when I try to create a window within the handler I get:Reproduced on OSX 10.15.5 with Go 1.14.1.
The text was updated successfully, but these errors were encountered: