[GH-ISSUE #662] Gopher crashes on start game when using a specific controller profile on Linux #115

Closed
opened 2026-03-03 13:45:48 +03:00 by kerem · 9 comments
Owner

Originally created by @maxmousee on GitHub (Jan 26, 2026).
Original GitHub issue: https://github.com/gopher64/gopher64/issues/662

Whilst trying to use the N64 Bluetooth Controler for NSO, GoPher crashes after a profile is assigned.
That happens when I try to start a game, regardless of which game.
It works with the default profile or using another controller
OS: Fedora Linux 43 (Workstation Edition) x86_64
GPU: AMD Radeon RX 7900 XT
Kernel: Linux 6.18.6-200.fc43.x86_64
CPU: AMD Ryzen 7 7800X3D
Memory: 6.48 GiB / 62.40 GiB

Originally created by @maxmousee on GitHub (Jan 26, 2026). Original GitHub issue: https://github.com/gopher64/gopher64/issues/662 Whilst trying to use the N64 Bluetooth Controler for NSO, GoPher crashes after a profile is assigned. That happens when I try to start a game, regardless of which game. It works with the default profile or using another controller OS: Fedora Linux 43 (Workstation Edition) x86_64 GPU: AMD Radeon RX 7900 XT Kernel: Linux 6.18.6-200.fc43.x86_64 CPU: AMD Ryzen 7 7800X3D Memory: 6.48 GiB / 62.40 GiB
kerem closed this issue 2026-03-03 13:45:48 +03:00
Author
Owner

@maxmousee commented on GitHub (Jan 26, 2026):

I'm willing to help fix this, but my experience with Rust is very limited
Thanks for all the hard work, this project is awesome!

<!-- gh-comment-id:3801554993 --> @maxmousee commented on GitHub (Jan 26, 2026): I'm willing to help fix this, but my experience with Rust is very limited Thanks for all the hard work, this project is awesome!
Author
Owner

@maxmousee commented on GitHub (Jan 26, 2026):

thread 'n64' (3) panicked at src/ui/input.rs:146:14:
Invalid button
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

<!-- gh-comment-id:3801583441 --> @maxmousee commented on GitHub (Jan 26, 2026): thread 'n64' (3) panicked at src/ui/input.rs:146:14: Invalid button note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Author
Owner

@loganmc10 commented on GitHub (Jan 26, 2026):

thread 'n64' (3) panicked at src/ui/input.rs:146:14: Invalid button note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Thanks, this is very helpful. Are you able to share your config.json file? It is probably in AppData/gopher64 somewhere

<!-- gh-comment-id:3801631192 --> @loganmc10 commented on GitHub (Jan 26, 2026): > thread 'n64' (3) panicked at src/ui/input.rs:146:14: Invalid button note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Thanks, this is very helpful. Are you able to share your config.json file? It is probably in AppData/gopher64 somewhere
Author
Owner

@loganmc10 commented on GitHub (Jan 26, 2026):

Actually, I think I see the problem, can you try this build (the zip file should show up at the bottom once the build is complete):

https://github.com/gopher64/gopher64/actions/runs/21373294511

<!-- gh-comment-id:3801679816 --> @loganmc10 commented on GitHub (Jan 26, 2026): Actually, I think I see the problem, can you try this build (the zip file should show up at the bottom once the build is complete): https://github.com/gopher64/gopher64/actions/runs/21373294511
Author
Owner

@maxmousee commented on GitHub (Jan 26, 2026):

Sure :) btw I changed that line to _ => sdl3_sys::gamepad::SDL_GamepadButton::MISC1, and at least it doesn't crash anymore, but I will try your build and I will share my conf
Thank you so much

<!-- gh-comment-id:3801716176 --> @maxmousee commented on GitHub (Jan 26, 2026): Sure :) btw I changed that line to _ => sdl3_sys::gamepad::SDL_GamepadButton::MISC1, and at least it doesn't crash anymore, but I will try your build and I will share my conf Thank you so much
Author
Owner

@maxmousee commented on GitHub (Jan 26, 2026):

Actually, I think I see the problem, can you try this build (the zip file should show up at the bottom once the build is complete):

https://github.com/gopher64/gopher64/actions/runs/21373294511

Yes, this works! :D Awesome, I will share my config soon

<!-- gh-comment-id:3801729496 --> @maxmousee commented on GitHub (Jan 26, 2026): > Actually, I think I see the problem, can you try this build (the zip file should show up at the bottom once the build is complete): > > https://github.com/gopher64/gopher64/actions/runs/21373294511 Yes, this works! :D Awesome, I will share my config soon
Author
Owner

@loganmc10 commented on GitHub (Jan 26, 2026):

The config isn't needed, I just wanted to config it was trying to use a button that wasn't mapped, but it seems that is the case

<!-- gh-comment-id:3801732136 --> @loganmc10 commented on GitHub (Jan 26, 2026): The config isn't needed, I just wanted to config it was trying to use a button that wasn't mapped, but it seems that is the case
Author
Owner

@maxmousee commented on GitHub (Jan 26, 2026):

Thanks again, saved my game night haha :)

<!-- gh-comment-id:3801735513 --> @maxmousee commented on GitHub (Jan 26, 2026): Thanks again, saved my game night haha :)
Author
Owner

@loganmc10 commented on GitHub (Jan 26, 2026):

I'm going to close this since it is fixed in master, I don't know when there will be a new release, but until then you can use the github build. Thanks for the assistance.

<!-- gh-comment-id:3801736440 --> @loganmc10 commented on GitHub (Jan 26, 2026): I'm going to close this since it is fixed in master, I don't know when there will be a new release, but until then you can use the github build. Thanks for the assistance.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gopher64#115
No description provided.