{"action":"created","issue":{"url":"https://api.github.com/repos/goki/gi/issues/208","repository_url":"https://api.github.com/repos/goki/gi","labels_url":"https://api.github.com/repos/goki/gi/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/goki/gi/issues/208/comments","events_url":"https://api.github.com/repos/goki/gi/issues/208/events","html_url":"https://github.com/goki/gi/issues/208","id":380635904,"node_id":"MDU6SXNzdWUzODA2MzU5MDQ=","number":208,"title":"Support Wayland","user":{"login":"xyproto","id":52813,"node_id":"MDQ6VXNlcjUyODEz","avatar_url":"https://avatars2.githubusercontent.com/u/52813?v=4","gravatar_id":"","url":"https://api.github.com/users/xyproto","html_url":"https://github.com/xyproto","followers_url":"https://api.github.com/users/xyproto/followers","following_url":"https://api.github.com/users/xyproto/following{/other_user}","gists_url":"https://api.github.com/users/xyproto/gists{/gist_id}","starred_url":"https://api.github.com/users/xyproto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xyproto/subscriptions","organizations_url":"https://api.github.com/users/xyproto/orgs","repos_url":"https://api.github.com/users/xyproto/repos","events_url":"https://api.github.com/users/xyproto/events{/privacy}","received_events_url":"https://api.github.com/users/xyproto/received_events","type":"User","site_admin":false},"labels":[{"id":923129960,"node_id":"MDU6TGFiZWw5MjMxMjk5NjA=","url":"https://api.github.com/repos/goki/gi/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":923129961,"node_id":"MDU6TGFiZWw5MjMxMjk5NjE=","url":"https://api.github.com/repos/goki/gi/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-11-14T10:37:31Z","updated_at":"2018-12-11T06:55:15Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I'm on 64-bit Arch Linux, using the Sway windowmanager.\r\n\r\nWhen compiling and running the `widgets` example with:\r\n\r\n    GOOS=windows GOARCH=amd64 go build && wine widgets.exe\r\n\r\nIt works fine:\r\n\r\n![gogi_widgets](https://user-images.githubusercontent.com/52813/48486195-1fcba180-e81b-11e8-9f3f-683258cd3789.jpg)\r\n\r\nHowever, building and running the Linux version results in a segfault:\r\n\r\n```\r\n$ go build && ./widgets\r\ngi.FontLib: error accessing path \"/usr/share/fonts/truetype\": lstat /usr/share/fonts/truetype: no such file or directory\r\n2018/11/14 11:35:36 gi.FontLib: error walking the path \"/usr/share/fonts/truetype\": lstat /usr/share/fonts/truetype: no such file or directory\r\n2018/11/14 11:35:36 open /home/afr/.config/GoGi/win_geom_prefs.json: no such file or directory\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x68 pc=0x7c7f5d]\r\ngoroutine 1 [running]:\r\ngithub.com/goki/gi/gi.(*WindowGeomPrefs).RecordPref(0x1a4c268, 0xc000258d80)\r\n/home/afr/clones/gi/gi/window.go:3286 +0x12d\r\ngithub.com/goki/gi/gi.(*Window).Resized(0xc000258d80, 0x0, 0x0)\r\n/home/afr/clones/gi/gi/window.go:568 +0x32c\r\ngithub.com/goki/gi/gi.(*Window).EventLoop(0xc000258d80)\r\n/home/afr/clones/gi/gi/window.go:1325 +0x6fe\r\ngithub.com/goki/gi/gi.(*Window).StartEventLoop(0xc000258d80)\r\n/home/afr/clones/gi/gi/window.go:690 +0x63\r\nmain.mainrun()\r\n/home/afr/clones/gi/examples/widgets/widgets.go:368 +0x3ed9\r\nmain.main.func1()\r\n/home/afr/clones/gi/examples/widgets/widgets.go:24 +0x20\r\ngithub.com/goki/gi/gimain.Main.func1(0xf3ed60, 0xc0001f0000)\r\n/home/afr/clones/gi/gimain/gimain.go:27 +0x24\r\ngithub.com/goki/gi/oswin/driver/x11driver.main(0xc00054bf60, 0x0, 0x0)\r\n/home/afr/clones/gi/oswin/driver/x11driver/x11driver.go:65 +0x274\r\ngithub.com/goki/gi/oswin/driver/x11driver.Main(0xc00069df60)\r\n/home/afr/clones/gi/oswin/driver/x11driver/x11driver.go:38 +0x2f\r\ngithub.com/goki/gi/oswin/driver.main(0xc00054bf60)\r\n/home/afr/clones/gi/oswin/driver/driver_x11.go:22 +0x2b\r\ngithub.com/goki/gi/oswin/driver.Main(0xc00054bf60)\r\n/home/afr/clones/gi/oswin/driver/driver.go:27 +0x2b\r\ngithub.com/goki/gi/gimain.Main(0xdd1888)\r\n/home/afr/clones/gi/gimain/gimain.go:26 +0x49\r\nmain.main()\r\n/home/afr/clones/gi/examples/widgets/widgets.go:23 +0x2d\r\n```\r\n\r\nThis is also the case for the other examples."},"comment":{"url":"https://api.github.com/repos/goki/gi/issues/comments/446092819","html_url":"https://github.com/goki/gi/issues/208#issuecomment-446092819","issue_url":"https://api.github.com/repos/goki/gi/issues/208","id":446092819,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjA5MjgxOQ==","user":{"login":"rcoreilly","id":9605819,"node_id":"MDQ6VXNlcjk2MDU4MTk=","avatar_url":"https://avatars2.githubusercontent.com/u/9605819?v=4","gravatar_id":"","url":"https://api.github.com/users/rcoreilly","html_url":"https://github.com/rcoreilly","followers_url":"https://api.github.com/users/rcoreilly/followers","following_url":"https://api.github.com/users/rcoreilly/following{/other_user}","gists_url":"https://api.github.com/users/rcoreilly/gists{/gist_id}","starred_url":"https://api.github.com/users/rcoreilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcoreilly/subscriptions","organizations_url":"https://api.github.com/users/rcoreilly/orgs","repos_url":"https://api.github.com/users/rcoreilly/repos","events_url":"https://api.github.com/users/rcoreilly/events{/privacy}","received_events_url":"https://api.github.com/users/rcoreilly/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T06:55:15Z","updated_at":"2018-12-11T06:55:15Z","author_association":"CONTRIBUTOR","body":"Hmm.. it does look like we get past the previous point of crashing, so that fix \"solved\" that problem, but now it is having some kind of problem with the texture.. It looks like I'll have to get my VM running wayland and see if there is some possibility of getting it to work under some kind of X11 compatibility mode that it might be using (which is clearly not perfectly aligned with the current x11 driver), assuming that is the situation here.  @Russtopia do you have any way of actually figuring out if you might be running wayland or not?  Unfortunately I have 0 experience with that -- have only used X11.."}}
{"actor":{"display_login":"rcoreilly"}}