fyne
fyne copied to clipboard
Gnome/XWayland : Crash on standby/resume
Describe the bug:
In the below stack trace, my application is /home/damon/go/src/sc2-rsu
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x7f317e012a33]
runtime stack:
runtime.throw(0xd879ae, 0x2a)
/usr/lib/golang/src/runtime/panic.go:1116 +0x72
runtime.sigpanic()
/usr/lib/golang/src/runtime/signal_unix.go:704 +0x4ac
goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0xb98270, 0xc001ad9998, 0xc001ad9b30)
/usr/lib/golang/src/runtime/cgocall.go:133 +0x5b fp=0xc001ad9968 sp=0xc001ad9930 pc=0x42983b
github.com/go-gl/glfw/v3.3/glfw._Cfunc_glfwPollEvents()
_cgo_gotypes.go:1568 +0x45 fp=0xc001ad9998 sp=0xc001ad9968 pc=0xa5e185
github.com/go-gl/glfw/v3.3/glfw.PollEvents()
/home/damon/go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/window.go:949 +0x25 fp=0xc001ad99d0 sp=0xc001ad9998 pc=0xa67105
fyne.io/fyne/internal/driver/glfw.(*gLDriver).tryPollEvents(0xc000180fa0)
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/driver/glfw/loop.go:222 +0x45 fp=0xc001ad99f0 sp=0xc001ad99d0 pc=0xa70d65
fyne.io/fyne/internal/driver/glfw.(*gLDriver).runGL(0xc000180fa0)
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/driver/glfw/loop.go:102 +0x1fb fp=0xc001ad9b68 sp=0xc001ad99f0 pc=0xa706bb
fyne.io/fyne/internal/driver/glfw.(*gLDriver).Run(0xc000180fa0)
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/driver/glfw/driver.go:71 +0x3a fp=0xc001ad9b88 sp=0xc001ad9b68 pc=0xa6eeba
fyne.io/fyne/app.(*fyneApp).Run(0xc0002e2850)
/home/damon/go/pkg/mod/fyne.io/[email protected]/app/app.go:66 +0x95 fp=0xc001ad9bb0 sp=0xc001ad9b88 pc=0xaad095
github.com/AlbinoGeek/sc2-rsu/cmd/gui.(*GraphicalInterface).Run(...)
/home/damon/go/src/sc2-rsu/cmd/gui/GraphicalInterface.go:47
github.com/AlbinoGeek/sc2-rsu/cmd.glob..func3(0x12e7ea0, 0x1643e10, 0x0, 0x0, 0x0, 0x0)
/home/damon/go/src/sc2-rsu/cmd/root.go:47 +0x763 fp=0xc001ad9cb8 sp=0xc001ad9bb0 pc=0xb7de23
github.com/spf13/cobra.(*Command).execute(0x12e7ea0, 0xc0001921b0, 0x0, 0x0, 0x12e7ea0, 0xc0001921b0)
/home/damon/go/pkg/mod/github.com/spf13/[email protected]/command.go:850 +0x47c fp=0xc001ad9d88 sp=0xc001ad9cb8 pc=0x5f4f7c
github.com/spf13/cobra.(*Command).ExecuteC(0x12e7ea0, 0xc00029fed0, 0x1, 0x1)
/home/damon/go/pkg/mod/github.com/spf13/[email protected]/command.go:958 +0x375 fp=0xc001ad9e60 sp=0xc001ad9d88 pc=0x5f5af5
github.com/spf13/cobra.(*Command).Execute(...)
/home/damon/go/pkg/mod/github.com/spf13/[email protected]/command.go:895
github.com/AlbinoGeek/sc2-rsu/cmd.Execute(0xffffffff, 0xc000182058)
/home/damon/go/src/sc2-rsu/cmd/Execute.go:41 +0x6e5 fp=0xc001ad9f68 sp=0xc001ad9e60 pc=0xb6f645
main.main()
/home/damon/go/src/sc2-rsu/main.go:19 +0x70 fp=0xc001ad9f88 sp=0xc001ad9f68 pc=0xb820d0
runtime.main()
/usr/lib/golang/src/runtime/proc.go:204 +0x209 fp=0xc001ad9fe0 sp=0xc001ad9f88 pc=0x45e489
runtime.goexit()
/usr/lib/golang/src/runtime/asm_amd64.s:1374 +0x1 fp=0xc001ad9fe8 sp=0xc001ad9fe0 pc=0x491161
goroutine 19 [sleep, 1 minutes]:
time.Sleep(0x22ecb25c00)
/usr/lib/golang/src/runtime/time.go:188 +0xbf
fyne.io/fyne/internal/painter.svgCacheJanitor.func1()
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/painter/svg_cache.go:51 +0x109
sync.(*Once).doSlow(0x1643ec0, 0xc0001aabf0)
/usr/lib/golang/src/sync/once.go:66 +0xec
sync.(*Once).Do(0x1643ec0, 0xc0001aabf0)
/usr/lib/golang/src/sync/once.go:57 +0x45
created by fyne.io/fyne/internal/painter.svgCacheJanitor
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/painter/svg_cache.go:49 +0x9b
# -- goroutine created by my app snipped --
goroutine 21 [chan receive, 120 minutes]:
fyne.io/fyne/app.newAppWithDriver.func1(0xc000182420, 0xc0002e2850)
/home/damon/go/pkg/mod/fyne.io/[email protected]/app/app.go:126 +0x3d
created by fyne.io/fyne/app.newAppWithDriver
/home/damon/go/pkg/mod/fyne.io/[email protected]/app/app.go:124 +0x1e8
# -- goroutine created by my app snipped --
goroutine 23 [chan receive, 120 minutes]:
fyne.io/fyne/app.watchFile.func1(0xc000180ff0, 0xc0001acba0, 0x26, 0xc000233700, 0xc000233710)
/home/damon/go/pkg/mod/fyne.io/[email protected]/app/settings_desktop.go:42 +0x5a
created by fyne.io/fyne/app.watchFile
/home/damon/go/pkg/mod/fyne.io/[email protected]/app/settings_desktop.go:41 +0xec
# -- goroutine created by my app snipped --
goroutine 25 [select, locked to thread]:
fyne.io/fyne/internal/driver/glfw.(*gLDriver).startDrawThread.func1(0xc000180fa0, 0xc000182600, 0xc000181040)
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/driver/glfw/loop.go:186 +0x1ac
created by fyne.io/fyne/internal/driver/glfw.(*gLDriver).startDrawThread
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/driver/glfw/loop.go:182 +0xbd
goroutine 26 [chan receive]:
fyne.io/fyne/internal/driver/glfw.(*window).runEventQueue(0xc000199ba0)
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/driver/glfw/window.go:1151 +0xb0
created by fyne.io/fyne/internal/driver/glfw.(*gLDriver).createWindow.func1
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/driver/glfw/window.go:1176 +0x10d
goroutine 27 [chan receive, 120 minutes]:
fyne.io/fyne/internal/driver/glfw.(*glCanvas).setupThemeListener.func1(0xc0001826c0, 0xc0001bc600)
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/driver/glfw/canvas.go:458 +0x47
created by fyne.io/fyne/internal/driver/glfw.(*glCanvas).setupThemeListener
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/driver/glfw/canvas.go:456 +0xa6
goroutine 42 [chan receive, 120 minutes]:
fyne.io/fyne/internal/painter.SvgCacheMonitorTheme.func1(0xc000628000)
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/painter/svg_cache.go:103 +0x34
created by fyne.io/fyne/internal/painter.SvgCacheMonitorTheme
/home/damon/go/pkg/mod/fyne.io/[email protected]/internal/painter/svg_cache.go:101 +0x9c
# -- goroutine created by my app snipped --
To Reproduce:
- Launch a
fyne
Application - Put the system to sleep
- Resume from sleep
- Login back in to your user
- Type Alt+F2r to restart the shell
Device (please complete the following information):
- Fyne version: 1.4.1
- Gnome version: 3.38.1
- Go version: 1.15.2 linux/amd64
- OS Name: Fedora Workstatin
- OS Version: 33