{"action":"opened","issue":{"url":"https://api.github.com/repos/veandco/go-sdl2/issues/155","labels_url":"https://api.github.com/repos/veandco/go-sdl2/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/veandco/go-sdl2/issues/155/comments","events_url":"https://api.github.com/repos/veandco/go-sdl2/issues/155/events","html_url":"https://github.com/veandco/go-sdl2/issues/155","id":104975182,"number":155,"title":"go-sdl2 frequently crashes in various, seemingly random places (linux x64)","user":{"login":"rookieMP","id":712212,"avatar_url":"https://avatars.githubusercontent.com/u/712212?v=3","gravatar_id":"","url":"https://api.github.com/users/rookieMP","html_url":"https://github.com/rookieMP","followers_url":"https://api.github.com/users/rookieMP/followers","following_url":"https://api.github.com/users/rookieMP/following{/other_user}","gists_url":"https://api.github.com/users/rookieMP/gists{/gist_id}","starred_url":"https://api.github.com/users/rookieMP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rookieMP/subscriptions","organizations_url":"https://api.github.com/users/rookieMP/orgs","repos_url":"https://api.github.com/users/rookieMP/repos","events_url":"https://api.github.com/users/rookieMP/events{/privacy}","received_events_url":"https://api.github.com/users/rookieMP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-04T21:45:16Z","updated_at":"2015-09-04T21:45:16Z","closed_at":null,"body":"Let me preface this by saying my code is doing nothing strange with memory; it is a typical Go program. However, go-sdl2 is frequently crashing with strange errors, as if my renderer pointer is somehow becoming invalidated randomly. It's strange. \r\nHere is a sample stack  trace, although it can appear anywhere \r\n>fatal error: unexpected signal during runtime execution\r\n>[signal 0xb code=0x1 addr=0x48 pc=0x7fd2e8552a29]\r\n>\r\n>runtime stack:\r\n>runtime: unexpected return pc for runtime.sigpanic called from 0x7fd2e8552a29\r\n>runtime.throw(0x7ceb05)\r\n>\t/usr/lib/go/src/pkg/runtime/panic.c:520 +0x69\r\n>runtime: unexpected return pc for runtime.sigpanic called from 0x7fd2e8552a29\r\n>runtime.sigpanic()\r\n>\t/usr/lib/go/src/pkg/runtime/os_linux.c:222 +0x3d\r\n>\r\n>goroutine 16 [syscall]:\r\n>runtime.cgocall(0x410350, 0x7fd2f0293808)\r\n>\t/usr/lib/go/src/pkg/runtime/cgocall.c:143 +0xe5 fp=0x7fd2f02937f0 sp=0x7fd2f02937a8 github.com/veandco/go-sdl2/sdl._Cfunc_SDL_RenderDrawLine(0x1990170, 0x17f000001ba, 0x17f000001ec, 0x6f)\r\n> github.com/veandco/go-sdl2/sdl/_obj/_cgo_defun.c:2663 +0x31 fp=0x7fd2f0293808 sp=0x7fd2f02937f0\r\n>github.com/veandco/go-sdl2/sdl.(*Renderer).DrawLine(0x1990170, 0x1ba, 0x17f, 0x1ec, 0x17f, 0x0, 0x0)\r\n\t/home/map/prog/go/src/github.com/veandco/go-sdl2/sdl/render.go:408 +0x6a fp=0x7fd2f0293830 sp=0x7fd2f0293808\r\n>main.(*Shape).Draw(0xc208062ad8, 0x0, 0x0, 0x1990170)\r\n>\t/home/map/prog/go/src/depths/shape.go:95 +0x2bf fp=0x7fd2f0293938 sp=0x7fd2f0293830\r\n>main.(*Stone).Draw(0xc208062ac8, 0x0, 0x0, 0x1990170)\r\n>\t/home/map/prog/go/src/depths/stone.go:38 +0x51 fp=0x7fd2f0293960 sp=0x7fd2f0293938\r\n>main.func·005(0x37, 0x7fd2f0422301)\r\n>\t/home/map/prog/go/src/depths/world.go:86 +0x9d fp=0x7fd2f02939b0 sp=0x7fd2f0293960\r\n>main.(*AABBTree).QueryBound(0xc2080040c0, 0x7fd2f04223b8, 0xc2080cd360, 0x7fd2f0293af0)\r\n>\t/home/map/prog/go/src/depths/aabb.go:474 +0x2b7 fp=0x7fd2f0293a98 sp=0x7fd2f02939b0\r\n>main.(*World).Draw(0xc2080040c0, 0x0, 0x0, 0x320, 0x258, 0x1990170)\r\n>\t/home/map/prog/go/src/depths/world.go:88 +0xc6 fp=0x7fd2f0293b18 sp=0x7fd2f0293a98\r\n>main.main()\r\n\t/home/map/prog/go/src/depths/main.go:57 +0x9e5 fp=0x7fd2f0293f50 sp=0x7fd2f0293b18\r\n\r\nI'll do anything I can to help get this fixed, it is super inconvenient for me."}}