Skip to content
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

Open
isXander opened this issue Jan 9, 2025 · 2 comments
Open

SIGSEV @ SDL_joystick.c:2446 #11904

isXander opened this issue Jan 9, 2025 · 2 comments
Assignees
Milestone

Comments

@isXander
Copy link
Contributor

isXander commented Jan 9, 2025

Android build of SDL3 causes a SIGSEV when disconnecting a controller.

void SDL_UpdateJoysticks(void)
{
    /* this needs to happen AFTER walking the joystick list above, so that any
       dangling hardware data from removed devices can be free'd
     */
    for (i = 0; i < SDL_arraysize(SDL_joystick_drivers); ++i) {
        SDL_joystick_drivers[i]->Detect(); // THIS LINE
    }
}

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.

@icculus icculus added this to the 3.2.0 milestone Jan 10, 2025
@slouken
Copy link
Collaborator

slouken commented Jan 11, 2025

Are you able to reproduce this with testcontroller? I can create an apk of that if that's helpful.

@isXander
Copy link
Contributor Author

That would be quite helpful. (aarch64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants