Open roffe opened 5 months ago
Can you replicate this without your custom widget code?
i've managed to make some more discoveries., i added a bunch of debug output and it's never inside the widget code it freezes.
however! it seems related to mouse somehow... if i start the test program and don't put the mouse pointer inside the window it will run forever. but as soon as i select the window and move the mouse inside it then it freezes within a few seconds
also the go thread to swap content keeps running the whole time so the go runtime is not dead when this happends
also the go thread to swap content keeps running the whole time so the go runtime is not dead when this happends
That makes sense - it would be a guess that the event handling thread is deadlocked. I'm not sure where the debug was added, but the best step forward is to check which goroutines are hung and on what lock (either it's a deadlock or some other kind of wait I think...)
Send a SIGQUIT to the app and you should get a nice clean stack trace
Checklist
Describe the bug
I've for quiet some time been trying to chase down a application freeze when users are switching between preferences in my app it sometimes randomly just freezes.
I've managed to create a program that replicates the behaviour that makes the main window freeze and become unresponsive.
How to reproduce
Run attached program code. window should freeze within 3-4 seconds
Screenshots
Example code
Fyne version
fyne.io/fyne/v2 v2.4.6-0.20240418153625-66b892df8f5e
Go compiler version
go version go1.22.0 windows/amd64
Operating system and version
Windows 11
Additional Information
No response