Segmentation fault when connecting wiimote

Segmentation fault when connecting wiimote

Postby altcoin » 19 Dec 2023, 17:47

I know this should be posted on github issue tracker, but github's captchas won't let me in.

A segmentation fault occurs on the second attempt to connect a wiimote when following this procedure.

Steps to Reproduce:
- Open STK
- Navigate to Options->Controls
- Connect a wiimote using the Add a Device->Add Wimote Dialog. The terminal prints:
{l Code}: {l Select All Code}
wiiuse v0.15.5 loaded.
  De-facto official fork at http://github.com/wiiuse/wiiuse
  Original By: Michael Laforest <thepara[at]gmail{dot}com> <https://sourceforge.net/projects/wiiuse/>
[INFO] wiiuse clean up...
[INFO] Found 1 bluetooth device(s).
[INFO] Found wiimote (type:  (regular wiimote)) (A4:C0:E1:4F:F6:A7) [id 1].
[INFO] Connected to wiimote [id 1].
[INFO] wiiuse clean up...

- Using The Connected Wiimote, select Add a Device, Add Wiimote, and the OK. This does not always cause a segmentation fault the first time. If it doesn't crash, try this step again. The terminal prints:
{l Code}: {l Select All Code}
[INFO] wiiuse clean up...
[INFO] wiiuse clean up...
[INFO] Found 0 bluetooth device(s).
[INFO] wiiuse clean up...
[1]    26506 segmentation fault (core dumped)  supertuxkart


A gdb on the coredump says:
{l Code}: {l Select All Code}
Core was generated by `supertuxkart'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000055f973f8f094 in GamePadDevice::getNumberOfButtons (this=this@entry=0x55f979ba5110) at /home/user/supertuxkart/stk-code/src/input/gamepad_device.cpp:74
74       return m_configuration->getNumberOfButtons();
[Current thread is 1 (Thread 0x7f147943fc80 (LWP 26506))]
(gdb) where
#0  0x000055f973f8f094 in GamePadDevice::getNumberOfButtons (this=this@entry=0x55f979ba5110) at /home/user/supertuxkart/stk-code/src/input/gamepad_device.cpp:74
#1  0x000055f973f92599 in InputManager::input (this=0x55f975e5ae40, event=...) at /home/user/supertuxkart/stk-code/src/input/input_manager.cpp:987
#2  0x000055f973f97d8b in WiimoteManager::update (this=0x55f9769807a0) at /home/user/supertuxkart/stk-code/src/input/wiimote_manager.cpp:294
#3  0x000055f973f90934 in InputManager::update (this=0x55f975e5ae40, dt=dt@entry=0.00833333377) at /home/user/supertuxkart/stk-code/src/input/input_manager.cpp:246
#4  0x000055f97404958c in MainLoop::run (this=0x55f976980820) at /home/user/supertuxkart/stk-code/src/main_loop.cpp:578
#5  0x000055f973d8fb9b in main (argc=<optimized out>, argv=<optimized out>) at /home/user/supertuxkart/stk-code/src/main.cpp:2592


STK version: git (locally compiled)
OS: Artix Linux
altcoin
 
Posts: 17
Joined: 15 Apr 2021, 23:13

Who is online

Users browsing this forum: Bing [Bot] and 1 guest