Hello,
I have quickly tried running my SFML.Net application on arch, and for the most part it works, however I have an issue which occurs when I enter the game state, exit it and enter it again. Upon restarting the game state I get an error the first time I attempt to get the mouse position. The error I'm getting for mono is as follows:
[ben@arch Release]$ mono TopDown.exe
MenuState::Enter()
GameState::Initialize()
MenuState::Exit()
GameState::Enter()
GameState::Exit()
MenuState::Enter()
GameState::Initialize()
MenuState::Exit()
GameState::Enter()
[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.
mono: xcb_io.c:178: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Stacktrace:
at (wrapper managed-to-native) SFML.Graphics.RenderWindow.sfMouse_getPositionRenderWindow (intptr) <0xffffffff>
at SFML.Graphics.RenderWindow.InternalGetMousePosition () <0x00017>
at SFML.Window.Mouse.GetPosition (SFML.Window.Window) <0x00018>
at TopDown.GameState.Update (SFML.Graphics.RenderWindow) <0x000e7>
at TopDown.StateManager.Update (SFML.Graphics.RenderWindow) <0x0004b>
at TopDown.Program.Main (string[]) <0x004f7>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
mono() [0x4969f9]
/usr/lib/libpthread.so.0(+0xf1a0) [0x7fac7a6151a0]
/usr/lib/libc.so.6(gsignal+0x35) [0x7fac7a293fd5]
/usr/lib/libc.so.6(abort+0x148) [0x7fac7a295458]
/usr/lib/libc.so.6(+0x2e022) [0x7fac7a28d022]
/usr/lib/libc.so.6(+0x2e0d2) [0x7fac7a28d0d2]
/usr/lib/libX11.so.6(+0x4174c) [0x7fac7327074c]
/usr/lib/libX11.so.6(_XReply+0x23b) [0x7fac7327182b]
/usr/lib/libX11.so.6(XQueryPointer+0x69) [0x7fac732675a9]
/usr/lib/libsfml-window.so.2(+0xbf34) [0x7fac78832f34]
/usr/lib/libsfml-window.so.2(_ZN2sf5Mouse11getPositionERKNS_6WindowE+0x9) [0x7fac7882e489]
/usr/lib/libcsfml-graphics.so.2(sfMouse_getPositionRenderWindow+0xe) [0x7fac78c8c66e]
[0x40f1467b]
Debug info from gdb:
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Aborted (core dumped)
I am using SFML, CFSML and SFML.Net from Git as the Keyboard.A vs Keyboard.Unknown bug is a rather large issue for my application. It functions just fine on Windows with VS2012.
Thanks,
Ben.