#[Linux] YARG v0.14.0 crashing on launch with Bluetooth connected Wii Remote

11 messages · Page 1 of 1 (latest)

fallow thicket
#

On my system whenever a Wii Remote (wiimote) is connected with Bluetooth YARG will enter a zombie state almost instantly after launching.

This crash did not occur prior to following the hid instructions recommended for Linux. Prior to following the hid instructions the wiimote would be listed as a device but the wiimote guitar would not be listed. I did notice a "guitar added" message on the right side of the menu directly after launching but it would be quickly followed up by a "guitar removed" message. I am using the latest YARC .AppImage to install YARG.

I have followed the steps to allow YARG to access hid devices:

[]$ uname
Linux 6.19.6-arch1-1 x86_64 GNU/Linux

[]$ pacman -Qs hidapi & pacman -Qs libudev
local/lib32-systemd 259.3-1
local/hidapi 0.15.0-1
    system and service manager (32-bit)
local/libgudev 238-3
    GObject bindings for libudev
local/python-pyudev 0.24.4-1
    Python bindings to libudev
local/systemd-libs 259.3-1
    systemd client libraries

[]$ cat /etc/udev/rules.d/69-hid.rules
KERNEL=="hidraw*", TAG+="uaccess"

[]$ lsmod | grep wii
hid_wiimote            94208  0
ff_memless             24576  1 hid_wiimote

The wiimote guitar is detected and recognized by kernel and I can see the buttons working using evtest

[]$ evtest
Available devices:
/dev/input/event26:     Nintendo Wii Remote
/dev/input/event27:     Nintendo Wii Remote Guitar
Input device name: "Nintendo Wii Remote Guitar"
Event: type 1 (EV_KEY), code 257 (BTN_1), value 1

This is the output I get when lanching YARG from the shell with a wiimote connected. The process will hang on this screen after the window has closed. The process will then enter a zombie/defunct state

[UnityMemory] Configuration Parameters - Can be set up in boot.config
    "memorysetup-allocator-temp-initial-block-size-main=262144"
    ...
[]$ ps -aux | grep -i yarg
5605 Z 15:19 0:01 [YARG] <defunct>
YARG Wiki
#

This crash occurs with both the guitar attached and detached from the wiimote. This crash does not occur with non-wiimote bluetooth deivces (Smart TV tested) connected to the system

#

[Linux] YARG v0.14.0 crashing on launch with Bluetooth connected Wii Remote

fallow thicket
#

Confirmed removing /etc/udev/rules.d/69-hid.rules from udev rules path allows YARG to launch with wiimote connected. Now the device list is showing 4 wiimote devices. I am able to bind buttons with these devices intermittently and different buttons on the wii guitar are mapping to the same input (i.e yellow and blue fret buttons are both mapping to "D-Pad X")

#

YARG still leaving zombie/defunct process on exit after successful launch and exit though in-game menu. Tested on v0.13.3 and v0.14.0. Tested without wiimote connected or bluetooth enabled.

[]$ ps -aux | grep -i yarg
5375  0.2  0.0      0     0 ?        Z    16:33   0:03 [YARG] <defunct>
5688  0.3  0.0      0     0 ?        Z    16:33   0:04 [YARG] <defunct>
5881  3.6  0.0      0     0 ?        Z    16:34   0:46 [YARG] <defunct>
6153  3.5  0.0      0     0 ?        Z    16:35   0:41 [YARG] <defunct>
6495  8.6  0.0      0     0 ?        Z    16:37   1:33 [YARG] <defunct>
6923  0.5  0.0      0     0 ?        Z    16:42   0:04 [YARG] <defunct>
7144 30.0  0.0      0     0 ?        Z    16:43   3:36 [YARG] <defunct>
8057 12.3  0.0      0     0 ?        Z    16:52   0:18 [YARG] <defunct>
8324 18.0  0.0      0     0 ?        Z    16:53   0:13 [YARG] <defunct>
thorny quarry
#

This is a known bug with certain Bluetooth devices in 0.14. Use nightly for now.

fallow thicket
#

Thank you for the response!

Confirmed able to launch with wiimote connected and udev rule enabled on nightly.

[]$ evtest 
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
/dev/input/event24:     Nintendo Wii Remote Accelerometer
/dev/input/event25:     Nintendo Wii Remote IR
/dev/input/event26:     Nintendo Wii Remote
/dev/input/event27:     Nintendo Wii Remote Guitar
Select the device event number [0-27]:

[]$ udevadm test /dev/input/event27 2>&1 | grep 69-hid
Reading rules file: /usr/lib/udev/rules.d/69-hid.rules

v.0.14 only launched with wiimote connected if udev rule was removed. The guitar device is still not listed however, only the four devices labeled "Nintendo Wii Remote" which I assume correspond to the 4 devices listed by evtest above.

I was mistaken regarding the binding conflict I mentioned earlier

I am able to bind buttons with these devices intermittently and different buttons on the wii guitar are mapping to the same input (i.e yellow and blue fret buttons are both mapping to "D-Pad X")
each button maps to a different input I just had to select the "D-Pad Left" or "D-Pad Right" instead of the "D-Pad X" which was an option for both yellow and blue fret buttons. Only one strum direction is binding (To "start" which also causes issues) and the whammy bar does not bind either. The nightly build is also still leaving a zombie process upon exit on my system.

fallow thicket
#

I am using Guitar Hero Les Paul controller

#

Or maybe it uses HIDrogen since Linux exposes Nintendo Wii Remote Guitar as genric hid with hid_wiimote driver?

#

Wait Nintendo Wii Remote Guitar is an evdev nvm