esfml icon indicating copy to clipboard operation
esfml copied to clipboard

SegFault when (un-)docking Keyboard Dock

Open MarioLiebisch opened this issue 11 years ago • 4 comments

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 ?? ()

MarioLiebisch avatar Aug 02 '13 07:08 MarioLiebisch

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.

intjelic avatar Aug 04 '13 01:08 intjelic

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.

MarioLiebisch avatar Aug 04 '13 08:08 MarioLiebisch

Ah. Does that happen only when you (un)dock the external keyboard while the virtual keyboard is active ?

intjelic avatar Aug 04 '13 10:08 intjelic

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.

MarioLiebisch avatar Aug 04 '13 12:08 MarioLiebisch