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

xgbutil error not handled => crash #42

Open
geomat0101 opened this issue Apr 6, 2023 · 1 comment · Fixed by #43
Open

xgbutil error not handled => crash #42

geomat0101 opened this issue Apr 6, 2023 · 1 comment · Fixed by #43

Comments

@geomat0101
Copy link
Contributor

geomat0101 commented Apr 6, 2023

time="2023-04-06T07:29:26-04:00" level=warning msg="GetProperty: No such property 'WM_CLASS' on window ca00003."
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x5868df]

goroutine 1 [running]:
main.shouldIgnore(0xc00ca00003, 0xc006c00000)
	/home/mdg/src/zentile/client.go:154 +0xdf
main.(*tracker).populateClients(0xc0000574f0)
	/home/mdg/src/zentile/tracker.go:32 +0x98
main.(*tracker).handleClientUpdates(0xc0000574f0, 0xc00015c140, 0xc0000ee440)
	/home/mdg/src/zentile/tracker.go:92 +0x86
github.com/BurntSushi/xgbutil/xevent.PropertyNotifyFun.Run(0xc000057500, 0xc00015c140, 0x5c3560, 0xc0000ee440)

@geomat0101
Copy link
Contributor Author

geomat0101 commented Apr 14, 2023

here's a full stack trace

WARN[39363] GetProperty: No such property 'WM_CLASS' on window da00002. 
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x552b16]

goroutine 1 [running]:
main.shouldIgnore(0x20a080?)
	/home/mdg/src/zentile/client.go:154 +0xb6
main.(*tracker).populateClients(0xc00020a080)
	/home/mdg/src/zentile/tracker.go:32 +0xae
main.(*tracker).handleClientUpdates(0xc00020a080, 0xc00005ee48?, {0x40e7c8?})
	/home/mdg/src/zentile/tracker.go:92 +0x5e
github.com/BurntSushi/xgbutil/xevent.PropertyNotifyFun.Run(0x578e20?, 0xc000206240?, {0x58b620?, 0xc000292ea0?})
	/home/mdg/go/pkg/mod/github.com/!burnt!sushi/xgbutil@v0.0.0-20160919175755-f7c97cef3b4e/xevent/callback.go:311 +0x38
github.com/BurntSushi/xgbutil/xevent.runCallbacks(0xc00015a140, {0x58b620, 0xc000292ea0}, 0xc00015a140?, 0x5e8ca8?)
	/home/mdg/go/pkg/mod/github.com/!burnt!sushi/xgbutil@v0.0.0-20160919175755-f7c97cef3b4e/xevent/xevent.go:203 +0xb7
github.com/BurntSushi/xgbutil/xevent.processEventQueue(0xc00015a140, 0x0, 0x0)
	/home/mdg/go/pkg/mod/github.com/!burnt!sushi/xgbutil@v0.0.0-20160919175755-f7c97cef3b4e/xevent/eventloop.go:253 +0xb8f
github.com/BurntSushi/xgbutil/xevent.mainEventLoop(0xc00015a140, 0x0?, 0x6e1188?, 0x0)
	/home/mdg/go/pkg/mod/github.com/!burnt!sushi/xgbutil@v0.0.0-20160919175755-f7c97cef3b4e/xevent/eventloop.go:108 +0x48
github.com/BurntSushi/xgbutil/xevent.Main(...)
	/home/mdg/go/pkg/mod/github.com/!burnt!sushi/xgbutil@v0.0.0-20160919175755-f7c97cef3b4e/xevent/eventloop.go:52
main.main()
	/home/mdg/src/zentile/main.go:19 +0x45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant