widgets freeze after being in background and then a crash upon clicking widget.Check or right-clicking widget.Entry #2536
Labels
bug
Something isn't working
Milestone
Describe the bug:
In a number of its features, my application creates a window on top of another window, with the new window containing a VBox that itself contains a form. This form typically houses a number of widgets, including widget.Entry fields, widget.Check widgets, these widgets are sometimes housed within grid containers.
When a window from another application is placed over the Fyne window (the newly created one, not my main window), and a fairly short period of time elapses (a few minutes), and the window is brought "back into focus", the window's widget.Entry fields are unresponsive; there is no cursor and you cannot write in the field. As such, the fields in the window appear to be "frozen".
The window can be "woken up" or "unfrozen" via two means:
Further to this "freezing" effect, when "frozen", clicking on a widget.Check results in a crash. A typical panic dump has been reproduced below:
The crash occurs in the Tapped handler function, at this line:
I have verified that "fyne.CurrentApp().Driver().CanvasForObject(c.super())" returns nil.
In addition, right-clicking in a "frozen" field results in a crash such as the following:
Please note that this "frozen" issue and crashing issues only seem to occur when the window in question has a window from another app placed over it, i.e. the window is taken out of focus. If you simply sit there with the window on the screen, none of the above happens :)
To Reproduce:
Steps to reproduce symptoms provided in the description above.
The two crashes occur when a field is right-clicked and when a checkbox is clicked.
Example code:
I've been unable to produce a minimal working example to demonstrate the issue.
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: