libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.71k stars 1.8k forks source link

SDL3 Android SIGSEGV in `ANDROID_JoystickRumble` after `SDL_Quit` #10567

Closed AntTheAlchemist closed 1 month ago

AntTheAlchemist commented 1 month ago

This happened with the latest SDL3 source. It's a one in thousands of chance of happening, but a log on Google Play Console appeared, so it happened.

#00  pc 0x0000000000080e38  libSDL3.so (ANDROID_JoystickRumble+4096)
#01  pc 0x000000000007d0e0  libSDL3.so (SDL_RumbleJoystick+100)
#02  pc 0x000000000007c0c8  libSDL3.so (SDL_CloseJoystick+88)
#03  pc 0x000000000007a4e0  libSDL3.so (SDL_CloseGamepad+56)
#04  pc 0x000000000007a5c8  libSDL3.so (SDL_QuitGamepads+4096)
#05  pc 0x0000000000053ab8  libSDL3.so (SDL_QuitSubSystem+124)
#06  pc 0x0000000000053d28  libSDL3.so (SDL_Quit+28)
#07  pc 0x00000000000170fc  libmain.so (SDL_main+132)
#08  pc 0x000000000006496c  libSDL3.so (Java_org_libsdl_app_SDLActivity_nativeRunMain+4096)
#09  pc 0x0000000000351230  libart.so (art_quick_generic_jni_trampoline+144)

I may follow-up with repro steps later.

slouken commented 1 month ago

Fixed, thanks!