Skip to content

[Crash]: Toggling joystick manual configuration immediately crashes #3737

@retcinder

Description

@retcinder

SuperTux Version

v0.7.0

System Information

Linux 6.19.7-1-cachyos-deckify #1 SMP PREEMPT_DYNAMIC Fri, 13 Mar 2026 10:57:03 +0000 x86_64

Steps To Reproduce Crash

  1. Get 0.7.0
  2. Launch with a controller connected
  3. Change controller to be manually configured (or, if already manually configured, disable it)
  4. You are dead

Debugging Information (Stacktrace)

/usr/bin/supertux2(ErrorHandler::get_stacktrace[abi:cxx11]()+0x3e) [0x563a8d1eb87e]
/usr/bin/supertux2(ErrorHandler::handle_error(int)+0x68) [0x563a8d1ebe18]
/usr/lib/libc.so.6(+0x3e2d0) [0x7fe2b563e2d0]
/usr/lib/libc.so.6(+0x98a2c) [0x7fe2b5698a2c]
/usr/lib/libc.so.6(gsignal+0x20) [0x7fe2b563e1a0]
/usr/lib/libc.so.6(abort+0x26) [0x7fe2b56255fe]
/usr/lib/libstdc++.so.6(+0x9870f) [0x7fe2b5a9870f]
/usr/bin/supertux2(+0x14d01c) [0x563a8ce9601c]
/usr/bin/supertux2(JoystickManager::set_joy_controls(int, Control, bool)+0xbc) [0x563a8d041b4c]
/usr/bin/supertux2(JoystickManager::process_axis_event(SDL_JoyAxisEvent const&)+0x1e0) [0x563a8d042ad0]
/usr/bin/supertux2(ScreenManager::process_events()+0xe1) [0x563a8d2bf031]
/usr/bin/supertux2(ScreenManager::loop_iter()+0x208) [0x563a8d2c0908]
/usr/bin/supertux2(ScreenManager::run()+0x38) [0x563a8d2c0c58]
/usr/bin/supertux2(Main::run(int, char**)+0x3b3) [0x563a8d23c513]
/usr/bin/supertux2(main+0x72) [0x563a8cf8b952]
/usr/lib/libc.so.6(+0x276c1) [0x7fe2b56276c1]
/usr/lib/libc.so.6(__libc_start_main+0x89) [0x7fe2b56277f9]
/usr/bin/supertux2(_start+0x25) [0x563a8cf8bb35]

Additional Information

Performed using the Arch Linux package with SDL2-Compat on a Wayland system. Also occurs on standard SDL2.
System is a Steam Deck 512Gb LCD on CachyOS with a Switch Pro Controller plugged in via a USB-A port on the dock.

Guidelines For Reporting Issues

  • I have read https://github.com/SuperTux/supertux/blob/master/CONTRIBUTING.md#bug-reports.
  • I have verified this isn't an issue that's already been reported.
  • I have verified this isn't a discussion, or an issue about unintended behavior or a feature request, but rather an actual crash ─ that is, the game closed unexpectedly.
  • I have verified this issue is not about wrong translations (use Transifex for those), or anything unsupported (e.g. third-party add-ons).
  • In this report, I have only included details about one (1) crash.
  • If I make a mistake while submitting this report, I agree to use the "Edit" feature to correct it, instead of closing this issue and opening a new one.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions