mixxxdj / mixxx

Mixxx is Free DJ software that gives you everything you need to perform live mixes.
http://mixxx.org
Other
4.43k stars 1.27k forks source link

69-mixxx-usb-uaccess.rules causes long boot time Ubuntu 24.04 #13290

Open mrbrico opened 4 months ago

mrbrico commented 4 months ago

Bug Description

After upgrading to Ubuntu 24.04 boot times increased to around 4 minutes, I tracked this down to the above, commenting out KERNEL=="hiddev*", NAME="usb/%k", GROUP="uaccess" fixed the extremely long boot times.

By default this is enabled in the udev rule /usr/lib/udev/rules.d/69-mixxx-usb-uaccess.rules

Only some distribuions require the below

KERNEL=="hiddev*", NAME="usb/%k", GROUP="uaccess"

Maybe default this should be commented out and enabled if needed...?

Version

2.4.1

OS

Ubuntu 24.04

acolombier commented 3 months ago

Hi @mrbrico , I haven't yet moved to 24.04 (waiting for the July SP). Would you be able to provide some system logs to try and narrow down the problem?

mrbrico commented 3 months ago

Hi Antoine,

I certainly do not mind running any tests and grabbing the logs for you...

I can un comment the udev rule... would you just like the system log?

Thanks for all your hard work on mixxx

mrbrico commented 3 months ago

log_messages_udev_disabled.log log_messages_udev_enabled.log

with the 1 min delay between the following when the rule is enabled 19:24:31 kernel: iwlwifi 0000:00:14.3: WRT: Invalid buffer destination 19:23:35 kernel: Console: switching to colour frame buffer device 240x75

acolombier commented 3 months ago

Thanks for the logs and the kind words.

I'm not sure there is enough info to narrow down this bug. Could you try the following:

In the meantime, I have just checked on my end (PopOS 22.04) with sudo systemctl status udev.service and spotted that in the logs:

hiddev4: /usr/lib/udev/rules.d/69-mixxx-usb-uaccess.rules:61 Only network interfaces can be renamed, ignoring NAME="usb/%k".

I will look if I can fix that! Edit: already tracked as #12526

mrbrico commented 3 months ago

Journalctl boot log with the rule enabled... journalctl_boot.log

This error is what lead me to comment out the line in the rule... systemd-udevd[506]: /usr/lib/udev/rules.d/69-mixxx-usb-uaccess.rules:61 Unknown group 'uaccess', ignoring.

acolombier commented 3 months ago

Yeah, this rule seems to be quite out of date, but that warning should block the system.

I can see you've started the reboot at 20:04:42 and the system rebooted at 20:04:46, does that mean you were unable to reproduce the issue this time? Also, do you use a HID controller with Mixxx?

mrbrico commented 3 months ago

The delay is still there when the rule is enabled, its about 1 min delay now though... if I disable boot quiet in grub I can see systemd just stop for about 1 min before continuing. I could not find anything obvious in the logs and just went through errors I saw that may have affected boot time, plymouth / app amour /network manager until I tried the udev error above..

The system log shows the delay but not why, like it just stops for 1 min 19:24:31 kernel: iwlwifi 0000:00:14.3: WRT: Invalid buffer destination 19:23:35 kernel: Console: switching to colour frame buffer device 240x75

I use A&H k2 controllers or NI x1 controllers, also testing with serato dvs.. I never had the pioneer xdj 1000 mk2's working

acolombier commented 3 months ago

Thanks for the details. I will try to reproduce this in a VM soon and report my findings.

alex-c3 commented 1 month ago

Can confirm this happens in Ubuntu 24.04, and Mixxx 2.4.1. Commenting the line mentioned by OP instantly works, hopefully without breaking Mixxx.

Note that it has impacts further than boot, as it stalled any systemd action by 60s too, like restarting NetworkManager, changing it's config in the GUI too, or using 'systemctl daemon-reload'.