-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGSEV @ SDL_joystick.c:2446
#11904
Comments
Are you able to reproduce this with testcontroller? I can create an apk of that if that's helpful. |
That would be quite helpful. (aarch64) |
Here you go! |
@isXander I'm not able to reproduce this at all. Which gamepad caused this? Was it USB or Bluetooth? Which Android device? Are you able to reproduce it with a minimal test? |
This happened on my PR branch. Maybe it could have possibly introduced a regression? I was not able to reproduce on testcontroller. I think I may know why: If you notice, when disconnecting a controller on Android, it takes up to 3 seconds for testcontroller to notice this and remove it. My game polls events at 20 ticks per second, calling
This was on Android 15 (Pixel 9 Pro XL), with a Bluetooth-connected DualSense controller. |
testcontroller polls every frame, probably around 60 FPS on that device. Are you thinking the lower rate is causing the issue? |
I'm really not sure, could you provide the commands needed to build that testcontroller apk so I can have a mess around and see if I can repeat it? Any OS, whatever's easiest, I have access to them all. |
Sure, I did something like this:
and then executed the gradle command that was spit out. |
Android build of SDL3 causes a SIGSEV when disconnecting a controller.
Attached is the log file generated by the JVM with info that may help.
hs_err_pid12511.log
I wouldn't know how to debug this, so please let me know what more info you need.
The text was updated successfully, but these errors were encountered: