Skip to content
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

Fyne app crashes on unfocus #5205

Open
2 tasks done
lostdusty opened this issue Oct 17, 2024 · 1 comment
Open
2 tasks done

Fyne app crashes on unfocus #5205

lostdusty opened this issue Oct 17, 2024 · 1 comment
Labels
unverified A bug that has been reported but not verified

Comments

@lostdusty
Copy link
Contributor

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

I was doing a MVP and noted that if i unfocused the window, or minimized the window, the app would simply crash.

Crash log:

Exception 0xc0000005 0x0 0x8 0x212547332f3
PC=0x212547332f3
signal arrived during external code execution

runtime.cgocall(0x7ff67fab4660, 0xc000f97d78)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/cgocall.go:167 +0x3e fp=0xc000f97d50 sp=0xc000f97ce8 pc=0x7ff67f4294fe
github.com/go-gl/glfw/v3.3/glfw._Cfunc_glfwSwapBuffers(0x212455a7480)
        _cgo_gotypes.go:2431 +0x4d fp=0xc000f97d78 sp=0xc000f97d50 pc=0x7ff67fa4e8ed
github.com/go-gl/glfw/v3.3/glfw.(*Window).SwapBuffers.func1(0xc0005bc020?)
        C:/Users/Rebecca/go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/context.go:41 +0x3e fp=0xc000f97db8 sp=0xc000f97d78 pc=0x7ff67fa4edde
github.com/go-gl/glfw/v3.3/glfw.(*Window).SwapBuffers(0xc0002e9200?)
        C:/Users/Rebecca/go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/context.go:41 +0x13 fp=0xc000f97de0 sp=0xc000f97db8 pc=0x7ff67fa4ed53
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).repaintWindow.func1()
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/loop.go:226 +0xf7 fp=0xc000f97e30 sp=0xc000f97de0 pc=0x7ff67fa67937
fyne.io/fyne/v2/internal/driver/glfw.(*window).RunWithContext(0xc00010afc0, 0xc000f97e58)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/window.go:929 +0x43 fp=0xc000f97e48 sp=0xc000f97e30 pc=0x7ff67fa70503
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).repaintWindow(0x0?, 0xc000272700?)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/loop.go:209 +0x35 fp=0xc000f97e80 sp=0xc000f97e48 pc=0x7ff67fa67815
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).drawSingleFrame(0xc0002f28f0)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/loop.go:95 +0x13f fp=0xc000f97ef8 sp=0xc000f97e80 pc=0x7ff67fa66ebf
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).startDrawThread.func1()
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/loop.go:263 +0x1f4 fp=0xc000f97fe0 sp=0xc000f97ef8 pc=0x7ff67fa67c34
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000f97fe8 sp=0xc000f97fe0 pc=0x7ff67f437ca1
created by fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).startDrawThread in goroutine 1
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/loop.go:241 +0xbb

goroutine 1 gp=0xc000064000 m=nil [select, locked to thread]:
runtime.gopark(0xc00004ddd8?, 0x3?, 0xbf?, 0x78?, 0xc00004dd5a?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc00004dbe8 sp=0xc00004dbc8 pc=0x7ff67f42f8ce
runtime.selectgo(0xc00004ddd8, 0xc00004dd54, 0x10?, 0x0, 0xc00004dd88?, 0x1)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/select.go:335 +0x7a5 fp=0xc00004dd10 sp=0xc00004dbe8 pc=0x7ff67f40e9c5
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).runGL(0x7ff67f435cb7?)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/loop.go:122 +0x15a fp=0xc00004de60 sp=0xc00004dd10 pc=0x7ff67fa6717a
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).Run(0xc0002f28f0)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/driver.go:164 +0x73 fp=0xc00004deb0 sp=0xc00004de60 pc=0x7ff67fa65333
fyne.io/fyne/v2/app.(*fyneApp).Run(0xc0001219a0)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/app/app.go:68 +0x65 fp=0xc00004ded0 sp=0xc00004deb0 pc=0x7ff67fa982a5
fyne.io/fyne/v2/internal/driver/glfw.(*window).ShowAndRun(0xc00010afc0?)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/window.go:235 +0x22 fp=0xc00004dee8 sp=0xc00004ded0 pc=0x7ff67fa6af02
main.main()
        D:/Docs/Comissões/locatio/main.go:96 +0x34a fp=0xc00004df50 sp=0xc00004dee8 pc=0x7ff67faa012a
runtime.main()
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:272 +0x27d fp=0xc00004dfe0 sp=0xc00004df50 pc=0x7ff67f3fd99d
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc00004dfe8 sp=0xc00004dfe0 pc=0x7ff67f437ca1

goroutine 2 gp=0xc000064700 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc000067fa8 sp=0xc000067f88 pc=0x7ff67f42f8ce
runtime.goparkunlock(...)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:430
runtime.forcegchelper()
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:337 +0xb8 fp=0xc000067fe0 sp=0xc000067fa8 pc=0x7ff67f3fdcb8
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000067fe8 sp=0xc000067fe0 pc=0x7ff67f437ca1
created by runtime.init.7 in goroutine 1
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:325 +0x1a

goroutine 3 gp=0xc000064a80 m=nil [GC sweep wait]:
runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc000069f80 sp=0xc000069f60 pc=0x7ff67f42f8ce
runtime.goparkunlock(...)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:430
runtime.bgsweep(0xc000040080)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgcsweep.go:317 +0xdf fp=0xc000069fc8 sp=0xc000069f80 pc=0x7ff67f3e6bbf
runtime.gcenable.gowrap1()
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:203 +0x25 fp=0xc000069fe0 sp=0xc000069fc8 pc=0x7ff67f3db245
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000069fe8 sp=0xc000069fe0 pc=0x7ff67f437ca1
created by runtime.gcenable in goroutine 1
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:203 +0x66

goroutine 4 gp=0xc000064c40 m=nil [GC scavenge wait]:
runtime.gopark(0x10000?, 0x7ff6804b81d8?, 0x0?, 0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc000079f78 sp=0xc000079f58 pc=0x7ff67f42f8ce
runtime.goparkunlock(...)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:430
runtime.(*scavengerState).park(0x7ff680960340)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgcscavenge.go:425 +0x49 fp=0xc000079fa8 sp=0xc000079f78 pc=0x7ff67f3e45a9
runtime.bgscavenge(0xc000040080)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgcscavenge.go:658 +0x59 fp=0xc000079fc8 sp=0xc000079fa8 pc=0x7ff67f3e4b39
runtime.gcenable.gowrap2()
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:204 +0x25 fp=0xc000079fe0 sp=0xc000079fc8 pc=0x7ff67f3db1e5
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000079fe8 sp=0xc000079fe0 pc=0x7ff67f437ca1
created by runtime.gcenable in goroutine 1
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:204 +0xa5

goroutine 18 gp=0xc00010a1c0 m=nil [finalizer wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc000075e20 sp=0xc000075e00 pc=0x7ff67f42f8ce
runtime.runfinq()
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mfinal.go:193 +0x107 fp=0xc000075fe0 sp=0xc000075e20 pc=0x7ff67f3da307
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000075fe8 sp=0xc000075fe0 pc=0x7ff67f437ca1
created by runtime.createfing in goroutine 1
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mfinal.go:163 +0x3d

goroutine 19 gp=0xc00010a380 m=nil [chan receive]:
runtime.gopark(0xc00006bf60?, 0x7ff67f590005?, 0x0?, 0xd5?, 0x7ff6804d27a0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc00006bf18 sp=0xc00006bef8 pc=0x7ff67f42f8ce
runtime.chanrecv(0xc0001020e0, 0x0, 0x1)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/chan.go:639 +0x41e fp=0xc00006bf90 sp=0xc00006bf18 pc=0x7ff67f3cae3e
runtime.chanrecv1(0x7ff67f3fdb00?, 0xc00006bf76?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/chan.go:489 +0x12 fp=0xc00006bfb8 sp=0xc00006bf90 pc=0x7ff67f3ca9f2
runtime.unique_runtime_registerUniqueMapCleanup.func1(...)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1732
runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1735 +0x2f fp=0xc00006bfe0 sp=0xc00006bfb8 pc=0x7ff67f3de2ef
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc00006bfe8 sp=0xc00006bfe0 pc=0x7ff67f437ca1
created by unique.runtime_registerUniqueMapCleanup in goroutine 1
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1730 +0x96

goroutine 20 gp=0xc00010a540 m=nil [select]:
runtime.gopark(0xc000077f78?, 0x2?, 0x68?, 0x0?, 0xc000077efc?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc000077d80 sp=0xc000077d60 pc=0x7ff67f42f8ce
runtime.selectgo(0xc000077f78, 0xc000077ef8, 0x0?, 0x0, 0x0?, 0x1)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/select.go:335 +0x7a5 fp=0xc000077ea8 sp=0xc000077d80 pc=0x7ff67f40e9c5
fyne.io/fyne/v2/internal/async.(*UnboundedChan[...]).processing(0x7ff6804cc4e0)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/async/chan_go1.21.go:74 +0xe5 fp=0xc000077fc0 sp=0xc000077ea8 pc=0x7ff67f6d1345
fyne.io/fyne/v2/internal/async.NewUnboundedChan[...].gowrap1()
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/async/chan_go1.21.go:51 +0x25 fp=0xc000077fe0 sp=0xc000077fc0 pc=0x7ff67f6d1c25
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000077fe8 sp=0xc000077fe0 pc=0x7ff67f437ca1
created by fyne.io/fyne/v2/internal/async.NewUnboundedChan[...] in goroutine 1
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/async/chan_go1.21.go:51 +0x10d

goroutine 21 gp=0xc00010a700 m=3 mp=0xc000071008 [syscall, locked to thread]:
runtime.cgocall(0x7ff67f439460, 0xc000071330)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/cgocall.go:167 +0x3e fp=0xc0002fdb10 sp=0xc0002fdaa8 pc=0x7ff67f4294fe
syscall.SyscallN(0x7ff67f435cb7?, {0xc0002fdb50?, 0x7ff67f3ca2a9?, 0xc0002fdb68?})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/syscall_windows.go:519 +0x46 fp=0xc0002fdb30 sp=0xc0002fdb10 pc=0x7ff67f4339a6
syscall.Syscall6(0x0?, 0x0?, 0xc000102610?, 0xc0000b4000?, 0x7ff67f3ca160?, 0xc0001025b0?, 0xc0002fdc20?, 0x7ff67f3c9bb7?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/syscall_windows.go:465 +0x5c fp=0xc0002fdbc0 sp=0xc0002fdb30 pc=0x7ff67f43361c
golang.org/x/sys/windows.GetQueuedCompletionStatus(0x270, 0xc00011a4e0?, 0x25?, 0xfff?, 0xffffffff)
        C:/Users/Rebecca/go/pkg/mod/golang.org/x/[email protected]/windows/zsyscall_windows.go:2454 +0x86 fp=0xc0002fdc30 sp=0xc0002fdbc0 pc=0x7ff67f6d8c26
github.com/fsnotify/fsnotify.(*Watcher).readEvents(0xc0002ef900)
        C:/Users/Rebecca/go/pkg/mod/github.com/fsnotify/[email protected]/backend_windows.go:650 +0x75 fp=0xc0002fdfc8 sp=0xc0002fdc30 pc=0x7ff67fa966b5
github.com/fsnotify/fsnotify.NewBufferedWatcher.gowrap1()
        C:/Users/Rebecca/go/pkg/mod/github.com/fsnotify/[email protected]/backend_windows.go:176 +0x25 fp=0xc0002fdfe0 sp=0xc0002fdfc8 pc=0x7ff67fa94525
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc0002fdfe8 sp=0xc0002fdfe0 pc=0x7ff67f437ca1
created by github.com/fsnotify/fsnotify.NewBufferedWatcher in goroutine 1
        C:/Users/Rebecca/go/pkg/mod/github.com/fsnotify/[email protected]/backend_windows.go:176 +0x1b8

goroutine 22 gp=0xc00010a8c0 m=nil [chan receive]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc0002ffec8 sp=0xc0002ffea8 pc=0x7ff67f42f8ce
runtime.chanrecv(0xc0002725b0, 0xc0002fffa8, 0x1)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/chan.go:639 +0x41e fp=0xc0002fff40 sp=0xc0002ffec8 pc=0x7ff67f3cae3e
runtime.chanrecv2(0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/chan.go:494 +0x12 fp=0xc0002fff68 sp=0xc0002fff40 pc=0x7ff67f3caa12
fyne.io/fyne/v2/app.watchFile.func1()
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/app/settings_desktop.go:42 +0x66 fp=0xc0002fffe0 sp=0xc0002fff68 pc=0x7ff67fa9d046
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc0002fffe8 sp=0xc0002fffe0 pc=0x7ff67f437ca1
created by fyne.io/fyne/v2/app.watchFile in goroutine 1
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/app/settings_desktop.go:41 +0xea

goroutine 23 gp=0xc00010aa80 m=5 mp=0xc000071808 [syscall]:
runtime.cgocall(0x7ff67f439460, 0xc000071b30)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/cgocall.go:167 +0x3e fp=0xc0002f9f28 sp=0xc0002f9ec0 pc=0x7ff67f4294fe
syscall.SyscallN(0x7ff67f6d97e6?, {0xc00030a000?, 0x7ff67f3d17e5?, 0x28?})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/syscall_windows.go:519 +0x46 fp=0xc0002f9f48 sp=0xc0002f9f28 pc=0x7ff67f4339a6
syscall.(*Proc).Call(0x80000001?, {0xc00030a000?, 0x17?, 0x11?})
        C:/Users/Rebecca/scoop/apps/go/current/src/syscall/dll_windows.go:166 +0x1c fp=0xc0002f9f88 sp=0xc0002f9f48 pc=0x7ff67f44fc3c
fyne.io/fyne/v2/internal/app.WatchTheme(0xc0002d6dd0)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/app/theme_windows.go:60 +0xcc fp=0xc0002f9fc8 sp=0xc0002f9f88 pc=0x7ff67f7661cc
fyne.io/fyne/v2/app.watchTheme.gowrap1()
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/app/app_windows.go:100 +0x25 fp=0xc0002f9fe0 sp=0xc0002f9fc8 pc=0x7ff67fa99745
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc0002f9fe8 sp=0xc0002f9fe0 pc=0x7ff67f437ca1
created by fyne.io/fyne/v2/app.watchTheme in goroutine 1
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/app/app_windows.go:100 +0x96

goroutine 25 gp=0xc00010b180 m=nil [select]:
runtime.gopark(0xc000385f78?, 0x2?, 0x0?, 0x0?, 0xc000385efc?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc000385d80 sp=0xc000385d60 pc=0x7ff67f42f8ce
runtime.selectgo(0xc000385f78, 0xc000385ef8, 0x0?, 0x0, 0x0?, 0x1)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/select.go:335 +0x7a5 fp=0xc000385ea8 sp=0xc000385d80 pc=0x7ff67f40e9c5
fyne.io/fyne/v2/internal/async.(*UnboundedChan[...]).processing(0x7ff6804cc4e0)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/async/chan_go1.21.go:74 +0xe5 fp=0xc000385fc0 sp=0xc000385ea8 pc=0x7ff67f6d1345
fyne.io/fyne/v2/internal/async.NewUnboundedChan[...].gowrap1()
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/async/chan_go1.21.go:51 +0x25 fp=0xc000385fe0 sp=0xc000385fc0 pc=0x7ff67f6d1c25
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000385fe8 sp=0xc000385fe0 pc=0x7ff67f437ca1
created by fyne.io/fyne/v2/internal/async.NewUnboundedChan[...] in goroutine 1
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/async/chan_go1.21.go:51 +0x10d

goroutine 26 gp=0xc00010b340 m=nil [chan receive]:
runtime.gopark(0xc0002db9a0?, 0xc000387f50?, 0x1d?, 0xe5?, 0xc000018640?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc000387f10 sp=0xc000387ef0 pc=0x7ff67f42f8ce
runtime.chanrecv(0xc0002727e0, 0xc000387fc8, 0x1)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/chan.go:639 +0x41e fp=0xc000387f88 sp=0xc000387f10 pc=0x7ff67f3cae3e
runtime.chanrecv2(0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/chan.go:494 +0x12 fp=0xc000387fb0 sp=0xc000387f88 pc=0x7ff67f3caa12
fyne.io/fyne/v2/internal/driver/common.(*Window).RunEventQueue(...)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/common/window.go:34
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).createWindow.func1.gowrap1()
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/window.go:997 +0x54 fp=0xc000387fe0 sp=0xc000387fb0 pc=0x7ff67fa70a94
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000387fe8 sp=0xc000387fe0 pc=0x7ff67f437ca1
created by fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).createWindow.func1 in goroutine 1
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/window.go:997 +0x136

goroutine 27 gp=0xc00010b500 m=nil [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc000381f38 sp=0xc000381f18 pc=0x7ff67f42f8ce
runtime.gcBgMarkWorker(0xc000103ce0)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1363 +0xe9 fp=0xc000381fc8 sp=0xc000381f38 pc=0x7ff67f3dd5e9
runtime.gcBgMarkStartWorkers.gowrap1()
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1279 +0x25 fp=0xc000381fe0 sp=0xc000381fc8 pc=0x7ff67f3dd4c5
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000381fe8 sp=0xc000381fe0 pc=0x7ff67f437ca1
created by runtime.gcBgMarkStartWorkers in goroutine 1
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1279 +0x105

goroutine 34 gp=0xc000314380 m=nil [GC worker (idle)]:
runtime.gopark(0x8304f4d2b8c?, 0x0?, 0x0?, 0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc00031df38 sp=0xc00031df18 pc=0x7ff67f42f8ce
runtime.gcBgMarkWorker(0xc000103ce0)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1363 +0xe9 fp=0xc00031dfc8 sp=0xc00031df38 pc=0x7ff67f3dd5e9
runtime.gcBgMarkStartWorkers.gowrap1()
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1279 +0x25 fp=0xc00031dfe0 sp=0xc00031dfc8 pc=0x7ff67f3dd4c5
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc00031dfe8 sp=0xc00031dfe0 pc=0x7ff67f437ca1
created by runtime.gcBgMarkStartWorkers in goroutine 1
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1279 +0x105

goroutine 35 gp=0xc000314540 m=nil [GC worker (idle)]:
runtime.gopark(0x8304f3df568?, 0x0?, 0x0?, 0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc00031ff38 sp=0xc00031ff18 pc=0x7ff67f42f8ce
runtime.gcBgMarkWorker(0xc000103ce0)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1363 +0xe9 fp=0xc00031ffc8 sp=0xc00031ff38 pc=0x7ff67f3dd5e9
runtime.gcBgMarkStartWorkers.gowrap1()
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1279 +0x25 fp=0xc00031ffe0 sp=0xc00031ffc8 pc=0x7ff67f3dd4c5
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc00031ffe8 sp=0xc00031ffe0 pc=0x7ff67f437ca1
created by runtime.gcBgMarkStartWorkers in goroutine 1
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1279 +0x105

goroutine 36 gp=0xc000314700 m=nil [GC worker (idle)]:
runtime.gopark(0x8304f4d2b8c?, 0x0?, 0x0?, 0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc000319f38 sp=0xc000319f18 pc=0x7ff67f42f8ce
runtime.gcBgMarkWorker(0xc000103ce0)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1363 +0xe9 fp=0xc000319fc8 sp=0xc000319f38 pc=0x7ff67f3dd5e9
runtime.gcBgMarkStartWorkers.gowrap1()
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1279 +0x25 fp=0xc000319fe0 sp=0xc000319fc8 pc=0x7ff67f3dd4c5
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000319fe8 sp=0xc000319fe0 pc=0x7ff67f437ca1
created by runtime.gcBgMarkStartWorkers in goroutine 1
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/mgc.go:1279 +0x105

goroutine 6 gp=0xc0000868c0 m=nil [chan receive]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc00031bf10 sp=0xc00031bef0 pc=0x7ff67f42f8ce
runtime.chanrecv(0xc000272460, 0xc00031bfc8, 0x1)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/chan.go:639 +0x41e fp=0xc00031bf88 sp=0xc00031bf10 pc=0x7ff67f3cae3e
runtime.chanrecv2(0x0?, 0x0?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/chan.go:494 +0x12 fp=0xc00031bfb0 sp=0xc00031bf88 pc=0x7ff67f3caa12
fyne.io/fyne/v2/internal/app.(*Lifecycle).RunEventQueue(...)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/app/lifecycle.go:127
fyne.io/fyne/v2/app.(*fyneApp).Run.gowrap1()
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/app/app.go:67 +0x55 fp=0xc00031bfe0 sp=0xc00031bfb0 pc=0x7ff67fa98315
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc00031bfe8 sp=0xc00031bfe0 pc=0x7ff67f437ca1
created by fyne.io/fyne/v2/app.(*fyneApp).Run in goroutine 1
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/app/app.go:67 +0x53

goroutine 7 gp=0xc000086a80 m=nil [chan receive]:
runtime.gopark(0x7ff67fa5cb25?, 0x7ff68030b600?, 0x1?, 0x80?, 0xc00056bf60?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/proc.go:424 +0xce fp=0xc00056bed0 sp=0xc00056beb0 pc=0x7ff67f42f8ce
runtime.chanrecv(0xc00059c000, 0x0, 0x1)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/chan.go:639 +0x41e fp=0xc00056bf48 sp=0xc00056bed0 pc=0x7ff67f3cae3e
runtime.chanrecv1(0xc00059c000?, 0xc00056bf98?)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/chan.go:489 +0x12 fp=0xc00056bf70 sp=0xc00056bf48 pc=0x7ff67f3ca9f2
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).catchTerm(0xc0002f28f0)
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/driver_desktop.go:199 +0x71 fp=0xc00056bfc8 sp=0xc00056bf70 pc=0x7ff67fa661d1
fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).Run.gowrap1()
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/driver.go:163 +0x25 fp=0xc00056bfe0 sp=0xc00056bfc8 pc=0x7ff67fa654a5
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc00056bfe8 sp=0xc00056bfe0 pc=0x7ff67f437ca1
created by fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).Run in goroutine 1
        C:/Users/Rebecca/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/driver.go:163 +0x69

goroutine 50 gp=0xc000064fc0 m=4 mp=0xc000080008 [syscall]:
runtime.notetsleepg(0x7ff6809a7920, 0xffffffffffffffff)
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/lock_sema.go:296 +0x31 fp=0xc000567fa0 sp=0xc000567f68 pc=0x7ff67f3d06b1
os/signal.signal_recv()
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/sigqueue.go:152 +0x29 fp=0xc000567fc0 sp=0xc000567fa0 pc=0x7ff67f431089
os/signal.loop()
        C:/Users/Rebecca/scoop/apps/go/current/src/os/signal/signal_unix.go:23 +0x13 fp=0xc000567fe0 sp=0xc000567fc0 pc=0x7ff67fa5cf13
runtime.goexit({})
        C:/Users/Rebecca/scoop/apps/go/current/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000567fe8 sp=0xc000567fe0 pc=0x7ff67f437ca1
created by os/signal.Notify.func1.1 in goroutine 7
        C:/Users/Rebecca/scoop/apps/go/current/src/os/signal/signal.go:151 +0x1f
rax     0x0
rbx     0x64b7bff860
rcx     0x0
rdx     0x3
rdi     0x64b7bffaa8
rsi     0x0
rbp     0x64b7bff7b8
rsp     0x64b7bff770
r8      0x64b7bff9b0
r9      0x64b7bffb20
r10     0x2125c731020
r11     0x2125c736934
r12     0x1
r13     0x212548058d9
r14     0x0
r15     0x0
rip     0x212547332f3
rflags  0x10202
cs      0x33
fs      0x53
gs      0x2b
exit status 2

How to reproduce

  1. go run . your app
  2. Click somewhere else to unfocus the window

Screenshots

Code_iNMhpQgUW0.mp4

Example code

package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/container"
	"fyne.io/fyne/v2/widget"
)

var (
	locatioApp fyne.App
)


func main() {
	locatioApp = app.New()
	windowForm := locatioApp.NewWindow("Locatio - Gerar contrato de locação")
	windowForm.CenterOnScreen()
	windowForm.SetMaster()
	windowForm.Resize(fyne.NewSize(400, 200))

	label := widget.NewLabel("Hello, Fyne!")
	entry := widget.NewEntry()
	entry.SetPlaceHolder("Enter your name")
	form := &widget.Form{
		Items: []*widget.FormItem{
			{Text: "Name", Widget: entry},
		},
		OnSubmit: func() {
			label.SetText("Hello, " + entry.Text + "!")
		},
	}
	windowForm.SetContent(container.NewVBox(
		form,
		label,
		widget.NewButton("Quit", func() {
			locatioApp.Quit()
		}),
	))

	windowForm.ShowAndRun()
}

Fyne version

v2.5.2

Go compiler version

go1.23.2

Operating system and version

windows/amd64

Additional Information

gcc.exe (tdm64-1) 10.3.0

@lostdusty lostdusty added the unverified A bug that has been reported but not verified label Oct 17, 2024
@steampoweredtaco
Copy link
Contributor

A data point, I can't reproduce on my machine using Windows 10, Version 10.0.19045 Build 19045 (amd64)
gcc.exe (Rev1, Built by MSYS2 project) 14.2.0
Fyne v2.5.2
Theme using light mode.
Just tried with dark mode just to make it the same as Dusty, still works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

2 participants