-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
CenterOnScreen causes crash on MacOS when called more than once #1539
Comments
Please let us know when you have reproduction steps. We've not heard of this before but there may be an issue there. |
The following example will trigger the crash: package main
import (
"time"
"fyne.io/fyne"
"fyne.io/fyne/app"
)
func main() {
a := app.NewWithID("com.example.crash")
w := a.NewWindow("Crash test")
w.Resize(fyne.Size{Width: 320, Height: 200})
w.CenterOnScreen()
w.Show()
go func() {
time.Sleep(3*time.Second)
w.Resize(fyne.Size{Width: 640, Height: 300})
w.CenterOnScreen()
}()
a.Run()
} Click to see output
|
andydotxyz
added a commit
that referenced
this issue
Nov 16, 2020
On |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug:
When CenterOnScreen() is called it typically works, however it will reliably crash if called in a separate place of the code.
I haven't identified the reason why this crashes yet, and other places in the code work fine, but I am opening this issue for tracking and in case someone else has information.
To Reproduce:
Steps to reproduce the behaviour: Unknown
Example code:
Device (please complete the following information):
Output
Output
The text was updated successfully, but these errors were encountered: