dissent icon indicating copy to clipboard operation
dissent copied to clipboard

Crash on monitor change

Open diamondburned opened this issue 2 years ago • 0 comments

panic: interface conversion: glib.Objector is *glib.Object, not *gdk.Display [recovered]
	panic: closure error: unexpected panic caught: interface conversion: glib.Objector is *glib.Object, not *gdk.Display

Closure added at:
	github.com/diamondburned/gotk4/pkg/gio/v2.(*ListModel).ConnectItemsChanged at /home/diamond/.go/pkg/mod/github.com/diamondburned/gotk4/[email protected]/gio/v2/gio.go:31800
	github.com/diamondburned/gotkit/gtkutil.bindDisplayManager at /home/diamond/.go/pkg/mod/github.com/diamondburned/[email protected]/gtkutil/gtkutil.go:395
	github.com/diamondburned/gotkit/gtkutil.initScale.func1.1 at /home/diamond/.go/pkg/mod/github.com/diamondburned/[email protected]/gtkutil/gtkutil.go:385

goroutine 1 [running, locked to thread]:
github.com/diamondburned/gotk4/pkg/core/closure.(*FuncStack).Panicf(0xc00078a570, {0x2467f87, 0x1b}, {0xc000473668, 0x1, 0x1})
	/home/diamond/.go/pkg/mod/github.com/diamondburned/gotk4/[email protected]/core/closure/funcstack.go:104 +0x986
github.com/diamondburned/gotk4/pkg/core/closure.(*FuncStack).TryRepanic(0x4f5bb60?)
	/home/diamond/.go/pkg/mod/github.com/diamondburned/gotk4/[email protected]/core/closure/funcstack.go:122 +0xc7
panic({0x20cb060, 0xc003860120})
	/nix/store/ndlw8ji6g2s0vqn7fivkb8sz7zfd67bm-go-1.20.3/share/go/src/runtime/panic.go:884 +0x213
github.com/diamondburned/gotk4/pkg/core/glib.(*WeakRef[...]).Get(0x26ffc00)
	/home/diamond/.go/pkg/mod/github.com/diamondburned/gotk4/[email protected]/core/glib/weakref.go:88 +0x155
github.com/diamondburned/gotkit/gtkutil.bindDisplayManager.func1(0x4200518?, 0xc000473898?, 0x6e89d9?)
	/home/diamond/.go/pkg/mod/github.com/diamondburned/[email protected]/gtkutil/gtkutil.go:396 +0x25
github.com/diamondburned/gotk4/pkg/gio/v2._gotk4_gio2_ListModel_ConnectItemsChanged(0xc0004738b8?, 0x2, 0x0, 0x1, 0xc0000061a0?)
	/home/diamond/.go/pkg/mod/github.com/diamondburned/gotk4/[email protected]/gio/v2/gio_export.go:1294 +0x95
github.com/diamondburned/gotk4/pkg/gio/v2._Cfunc_g_application_run(0x4f3f5b0, 0x1, 0x4f48470)
	_cgo_gotypes.go:13791 +0x4c
github.com/diamondburned/gotk4/pkg/gio/v2.(*Application).Run.func3(0xc000712770?, 0xa?, 0x4f48470?)
	/home/diamond/.go/pkg/mod/github.com/diamondburned/gotk4/[email protected]/gio/v2/gio.go:41611 +0x71
github.com/diamondburned/gotk4/pkg/gio/v2.(*Application).Run(0xc000012858, {0xc000110200?, 0x1, 0x1})
	/home/diamond/.go/pkg/mod/github.com/diamondburned/gotk4/[email protected]/gio/v2/gio.go:41611 +0x1e5
github.com/diamondburned/gotkit/app.(*Application).Run(0xc000375a80, {0xc000110200, 0x1, 0x1})
	/home/diamond/.go/pkg/mod/github.com/diamondburned/[email protected]/app/app.go:272 +0x158
github.com/diamondburned/gotkit/app.(*Application).RunMain(0x270a410?)
	/home/diamond/.go/pkg/mod/github.com/diamondburned/[email protected]/app/app.go:277 +0x2e
main.main()
	/home/diamond/Scripts/gotk4/gtkcord4/main.go:61 +0x5e5
exit status 2

diamondburned avatar Oct 27 '23 16:10 diamondburned