esfml
esfml copied to clipboard
SegFault when (un-)docking Keyboard Dock
When docking or undocking the keyboard on an Asus Transformer Prime, while the SFML app is running, it will segfault.
This seems to happen with any app using SFML, at least my own game as well as the example app.
Logcat:
I/DEBUG ( 115): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
GDB back trace:
0x407a0e88 in ?? ()
0x400f6c90 in __sflush_locked ()
from <path>/libc.so
0x00000000 in ?? ()
Wow! How am I supposed to debug that ? :p I wonder where it happens in the code... or if it is a compilation/configuration thing. I'll try to reproduce your issue in an emulator.
I'll try to see whether it happens with a classic USB keyboard as well once I've got some time. I could imagine it happens due to somehow accessing the keyboard the moment it's undocked. Haven't had a look on how you read keys yet.
Ah. Does that happen only when you (un)dock the external keyboard while the virtual keyboard is active ?
No. I just launch an app like the example one you've provided. While it's running I attach or remove the dock and the app crashes at the position mentioned above. There's no need to trigger the virtual keyboard or do anything else. But actually, the default keyboard right now is the Asus one. I'll go and try what happens if I use the Android one.