Open chernikite opened 1 year ago
Can you try the develop branch please? There have been a number of fixes to the close handling that are not yet released.
fyne 2.4.1. Windows 10 with MinGW.
win1 := myapp.NewWindow(...)
win1.SetContent(...)
win1.SetMaster()
win1.Show()
myapp.Run()
win2 := myapp.NewWindow(...)
win2.SetContent(...)
win2.SetFixedSize(true)
win2.Show()
If I call win2.Close(), it halts. If I manually close the win2 window, open it, close it and open it for the 3rd time, it halts.
You cannot re-show a Closed window, it will be destroyed. If you want to re-use then Hide instead of Close.
If calling Close is indeed crashing that is an issue we should resolve.
You cannot re-show a Closed window, it will be destroyed. If you want to re-use then Hide instead of Close.
If calling Close is indeed crashing that is an issue we should resolve.
I did not reuse anything. Sorry I did not make it clear. When I said win2, that code is called as a function, so every time, it is a different instance. Close() in code or manually on a window does not halts it. But several NewWindow(), Show() and Close() in a couple of seconds do. does not occupy my CPU and memory does not increase crazily when it halts.
it halts even after I created a third window in a row, without Close() at all.
it halts even after I created a third window in a row, without Close() at all.
This has not been an issue before (fyne_demo can create many windows)... Can you please post a minimal sample that always reproduces this issue?
it halts even after I created a third window in a row, without Close() at all.
This has not been an issue before (fyne_demo can create many windows)... Can you please post a minimal sample that always reproduces this issue?
Sadly, I cannot reproduce it with a minimal sample...
Checklist
Describe the bug
I open a window from the main window to display the log of the app. When the app starts, I start a thread to simulate writing the log and display the log in the new window. I find that if I write too many logs, when I close the new window At that time, the app will crash. Below is my test code.
the crash log:
How to reproduce
Run my code below and close the log window when the Scroll bar becomes small, it will crash.
Screenshots
No response
Example code
Fyne version
v2.3.5
Go compiler version
go 1.20
Operating system and version
macos ventura 13.4
Additional Information
No response