{"action":"created","issue":{"url":"https://api.github.com/repos/EngoEngine/engo/issues/520","repository_url":"https://api.github.com/repos/EngoEngine/engo","labels_url":"https://api.github.com/repos/EngoEngine/engo/issues/520/labels{/name}","comments_url":"https://api.github.com/repos/EngoEngine/engo/issues/520/comments","events_url":"https://api.github.com/repos/EngoEngine/engo/issues/520/events","html_url":"https://github.com/EngoEngine/engo/issues/520","id":307130570,"number":520,"title":"runtime panic with last key input update for #517","user":{"login":"simonz05","id":52795,"avatar_url":"https://avatars2.githubusercontent.com/u/52795?v=4","gravatar_id":"","url":"https://api.github.com/users/simonz05","html_url":"https://github.com/simonz05","followers_url":"https://api.github.com/users/simonz05/followers","following_url":"https://api.github.com/users/simonz05/following{/other_user}","gists_url":"https://api.github.com/users/simonz05/gists{/gist_id}","starred_url":"https://api.github.com/users/simonz05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonz05/subscriptions","organizations_url":"https://api.github.com/users/simonz05/orgs","repos_url":"https://api.github.com/users/simonz05/repos","events_url":"https://api.github.com/users/simonz05/events{/privacy}","received_events_url":"https://api.github.com/users/simonz05/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-21T06:18:44Z","updated_at":"2018-03-21T16:13:14Z","closed_at":null,"author_association":"NONE","body":"6111cefddb0475b886e5c2f24f22c77ef264ab68 update with `gl` input keys update causes panic (while \r\n5ce0dd54f1f6e316ec2f666a45edaf3685231bb4 works fine).\r\n\r\n```shell\r\n> pwd\r\n/home/simon/src/engo.io/engo/demos/hud\r\n\r\n> go run -tags demo hud.go\r\n2018/03/21 07:06:55 Using standard inputs\r\nfatal error: unexpected signal during runtime execution\r\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x678 pc=0x7fa08d7da729]\r\n\r\nruntime stack:\r\nruntime.throw(0x6a9f48, 0x2a)\r\n\t/usr/local/go/src/runtime/panic.go:619 +0x81\r\nruntime.sigpanic()\r\n\t/usr/local/go/src/runtime/signal_unix.go:372 +0x28e\r\nruntime.asmcgocall(0x11, 0xc420059b98)\r\n\t/usr/local/go/src/runtime/asm_amd64.s:692 +0x70\r\n\r\ngoroutine 1 [syscall]:\r\nruntime.cgocall(0x5c8880, 0xc420059b38, 0x100000000475533)\r\n\t/usr/local/go/src/runtime/cgocall.go:128 +0x64 fp=0xc420059af0 sp=0xc420059ab8 pc=0x43f0e4\r\ngithub.com/go-gl/gl/v2.1/gl._Cfunc_glowClearColor(0x7fa08d7da720, 0x3f8000003f800000, 0x3f8000003f800000)\r\n\t_cgo_gotypes.go:7754 +0x45 fp=0xc420059b38 sp=0xc420059af0 pc=0x4f16c5\r\ngithub.com/go-gl/gl/v2.1/gl.ClearColor(0x3f8000003f800000, 0x3f8000003f800000)\r\n\t/home/simon/src/github.com/go-gl/gl/v2.1/gl/package.go:18348 +0x5d fp=0xc420059b60 sp=0xc420059b38 pc=0x4f424d\r\nengo.io/gl.(*Context).ClearColor(0xc4200fe000, 0x3f8000003f800000, 0x3f8000003f800000)\r\n\t/home/simon/src/engo.io/gl/gl_gl2.go:918 +0x51 fp=0xc420059b80 sp=0xc420059b60 pc=0x536591\r\nengo.io/engo/common.SetBackground(0x6c3ee0, 0xc4200a60f8)\r\n\t/home/simon/src/engo.io/engo/common/render.go:289 +0xba fp=0xc420059ba8 sp=0xc420059b80 pc=0x5ac0aa\r\nmain.(*DefaultScene).Setup(0x9d3c20, 0x6c39c0, 0xc42009e100)\r\n\t/home/simon/src/engo.io/engo/demos/hud/hud.go:30 +0x7d fp=0xc420059c30 sp=0xc420059ba8 pc=0x5bb4bd\r\nengo.io/engo.SetScene(0x6c4ca0, 0x9d3c20, 0x542f00)\r\n\t/home/simon/src/engo.io/engo/scene.go:106 +0x289 fp=0xc420059c78 sp=0xc420059c30 pc=0x543b89\r\nengo.io/engo.RunPreparation(0x6c4ca0, 0x9d3c20)\r\n\t/home/simon/src/engo.io/engo/engo_glfw.go:244 +0x54 fp=0xc420059ca0 sp=0xc420059c78 pc=0x542e64\r\nengo.io/engo.runLoop(0x6c4ca0, 0x9d3c20, 0x300)\r\n\t/home/simon/src/engo.io/engo/engo_glfw.go:256 +0x121 fp=0xc420059d88 sp=0xc420059ca0 pc=0x542fb1\r\nengo.io/engo.Run(0x0, 0x6959d2, 0x8, 0x0, 0x320, 0x320, 0x0, 0x3c, 0x100, 0x1, ...)\r\n\t/home/simon/src/engo.io/engo/engo.go:206 +0x3e6 fp=0xc420059e68 sp=0xc420059d88 pc=0x541d86\r\nmain.main()\r\n\t/home/simon/src/engo.io/engo/demos/hud/hud.go:62 +0xe0 fp=0xc420059f88 sp=0xc420059e68 pc=0x5bb860\r\nruntime.main()\r\n\t/usr/local/go/src/runtime/proc.go:198 +0x212 fp=0xc420059fe0 sp=0xc420059f88 pc=0x4677f2\r\nruntime.goexit()\r\n\t/usr/local/go/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc420059fe8 sp=0xc420059fe0 pc=0x491df1\r\n\r\ngoroutine 35 [syscall]:\r\nos/signal.signal_recv(0x0)\r\n\t/usr/local/go/src/runtime/sigqueue.go:139 +0xa6\r\nos/signal.loop()\r\n\t/usr/local/go/src/os/signal/signal_unix.go:22 +0x22\r\ncreated by os/signal.init.0\r\n\t/usr/local/go/src/os/signal/signal_unix.go:28 +0x41\r\n\r\ngoroutine 36 [select, locked to thread]:\r\nruntime.gopark(0x6acd10, 0x0, 0x69557e, 0x6, 0x18, 0x1)\r\n\t/usr/local/go/src/runtime/proc.go:291 +0x11a\r\nruntime.selectgo(0xc4200af750, 0xc4200800c0)\r\n\t/usr/local/go/src/runtime/select.go:392 +0xe50\r\nruntime.ensureSigM.func1()\r\n\t/usr/local/go/src/runtime/signal_unix.go:549 +0x1f4\r\nruntime.goexit()\r\n\t/usr/local/go/src/runtime/asm_amd64.s:2361 +0x1\r\n\r\ngoroutine 37 [runnable]:\r\nengo.io/engo.runLoop.func1(0xc4200b4120)\r\n\t/home/simon/src/engo.io/engo/engo_glfw.go:251\r\ncreated by engo.io/engo.runLoop\r\n\t/home/simon/src/engo.io/engo/engo_glfw.go:251 +0x103```"},"comment":{"url":"https://api.github.com/repos/EngoEngine/engo/issues/comments/374998396","html_url":"https://github.com/EngoEngine/engo/issues/520#issuecomment-374998396","issue_url":"https://api.github.com/repos/EngoEngine/engo/issues/520","id":374998396,"user":{"login":"shurcooL","id":1924134,"avatar_url":"https://avatars3.githubusercontent.com/u/1924134?v=4","gravatar_id":"","url":"https://api.github.com/users/shurcooL","html_url":"https://github.com/shurcooL","followers_url":"https://api.github.com/users/shurcooL/followers","following_url":"https://api.github.com/users/shurcooL/following{/other_user}","gists_url":"https://api.github.com/users/shurcooL/gists{/gist_id}","starred_url":"https://api.github.com/users/shurcooL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shurcooL/subscriptions","organizations_url":"https://api.github.com/users/shurcooL/orgs","repos_url":"https://api.github.com/users/shurcooL/repos","events_url":"https://api.github.com/users/shurcooL/events{/privacy}","received_events_url":"https://api.github.com/users/shurcooL/received_events","type":"User","site_admin":false},"created_at":"2018-03-21T16:13:14Z","updated_at":"2018-03-21T16:13:14Z","author_association":"NONE","body":"If I add:\r\n\r\n```Go\r\n\r\nfunc init() {\r\n\truntime.LockOSThread()\r\n}\r\n```\r\n\r\nTo `engo_glfw.go`, the issue seems to be resolved."}}
{"actor":{"display_login":"shurcooL"}}