Closed
Description
Describe the bug:
Fyne window becomes unresponsive, can not regain focus.
Happens consistently, most likely because the app is running in the background for a while.
Console shows:
2022/02/16 08:50:29 Fyne error: GLFW poll event error: runtime error: invalid memory address or nil pointer dereference
2022/02/16 08:50:29 At: /Users/karel/.go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/loop.go:257
Seems to be really similar to #2536
To Reproduce:
Open the app.
Wait a few hours running the app in the background (trying to figure out some more strict conditions to reproduce the problem)
Or:
Disconnect laptop from external screen and put laptop to sleep. When reconnecting to external screen and waking up, the window is unresponsive and the error is logged.
Does not seem to happen every time though. Or may depend on the exact order of operations.
Example code:
Currently known to happen with my own code (shows window with ShowAndRun) and with go run fyne.io/fyne/v2/cmd/fyne_demo
Device (please complete the following information):
- OS: Mac os on M1
- Version: 12.2.1
- Go version: 1.17.6
- Fyne version: 2.1.2
Activity