Describe the Bug
Whenever wb_joystick_enable() is called and Webots detects a joystick coming from a game controller, the app immediately crashes with a segmentation fault error.
Steps to Reproduce
- Connect a game controller to the computer
- Run a simulation containing a robot whose controller calls wb_joystick_enable()
- The app should crash with
zsh: segmentation fault if opened directly using the executable in the MacOS folder
Expected behavior
Either only the controller should crash, or the app should function as normal.
Screenshots
System
- Operating System: macOS Tahoe 26.1
- Graphics Card: Apple M1 SoC