Hi.
I have discovered a bug (it repeated many times).
I have built Golang v 1.4, SFML 2.2, CSFML, Goplanets, everything is up to date.
It occurs when I change the resolution in the settings menu, and restart the game.
Here's the execution log:
varnie@localhost:~/thrash/gopath/src/bitbucket.org/krepa098/goplanets$ ./goplanets
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
goplanets: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
SIGABRT: abort
PC=0xb7735424
signal arrived during cgo execution
goroutine 4 [syscall, locked to thread]:
runtime.cgocall_errno(0x8057130, 0x94faef78, 0x0)
/home/varnie/.gvm/gos/go1.4/src/runtime/cgocall.go:130 +0xcd fp=0x94faef68 sp=0x94faef50
bitbucket.org/krepa098/gosfml2._Cfunc_sfContext_setActive(0xa1a69d0, 0x1)
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/gosfml2/:417 +0x3f fp=0x94faef78 sp=0x94faef68
bitbucket.org/krepa098/gosfml2.(*Context).SetActive(0x94fa2188, 0x301)
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/gosfml2/context.go:41 +0x3d fp=0x94faef84 sp=0x94faef78
bitbucket.org/krepa098/gosfml2.globalCtxSetActive(0xa424601)
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/gosfml2/helpers.go:68 +0x48 fp=0x94faef90 sp=0x94faef84
bitbucket.org/krepa098/gosfml2.(*RenderTexture).destroy(0x9506a110)
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/gosfml2/renderTexture.go:57 +0x25 fp=0x94faef98 sp=0x94faef90
runtime.call16(0x824084c, 0x9506a000, 0x8, 0x8)
/home/varnie/.gvm/gos/go1.4/src/runtime/asm_386.s:412 +0x41 fp=0x94faefac sp=0x94faef98
runtime.runfinq()
/home/varnie/.gvm/gos/go1.4/src/runtime/malloc.go:769 +0x228 fp=0x94faeff0 sp=0x94faefac
runtime.goexit()
/home/varnie/.gvm/gos/go1.4/src/runtime/asm_386.s:2287 +0x1 fp=0x94faeff4 sp=0x94faeff0
created by runtime.createfing
/home/varnie/.gvm/gos/go1.4/src/runtime/malloc.go:707 +0x59
goroutine 1 [syscall, locked to thread]:
bitbucket.org/krepa098/gosfml2._Cfunc_sfKeyboard_isKeyPressed(0x47, 0x0)
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/gosfml2/:813 +0x3f
bitbucket.org/krepa098/gosfml2.KeyboardIsKeyPressed(0x47, 0xe)
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/gosfml2/keyboard.go:130 +0x28
main.(*InputManager).IsKeyDown(0x94fcc340, 0x47, 0x54982623)
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/goplanets/input.go:62 +0x28
main.(*RtsView).Update(0x94fcc3c0)
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/goplanets/rtsview.go:56 +0x33
main.(*Game).GameLoop(0x94fd22d0)
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/goplanets/game.go:366 +0x46d
main.(*Game).Run(0x94fd22d0)
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/goplanets/game.go:297 +0x5c
main.main()
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/goplanets/main.go:62 +0x1f2
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/home/varnie/.gvm/gos/go1.4/src/runtime/asm_386.s:2287 +0x1
goroutine 5 [chan receive]:
main.funcĀ·007(0x0)
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/goplanets/physics.go:72 +0xc7
created by main.NewPhysicsManager
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/goplanets/physics.go:74 +0x18f
goroutine 6 [chan receive]:
main.funcĀ·007(0x1)
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/goplanets/physics.go:72 +0xc7
created by main.NewPhysicsManager
/home/varnie/thrash/gopath/src/bitbucket.org/krepa098/goplanets/physics.go:74 +0x18f
eax 0x0
ebx 0x1b29
ecx 0x1b55
edx 0x6
edi 0xb76c2000
esi 0x7e700000
ebp 0x0
esp 0x7d3fdf04
eip 0xb7735424
eflags 0x202
cs 0x73
fs 0x0
gs 0x33