mixxxdj / mixxx

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

MIDI freezes entirely until playback is toggled #9776

Open mixxxbot opened 2 years ago

mixxxbot commented 2 years ago

Reported by: polarshock Date: 2019-10-15T08:42:21Z Status: Confirmed Importance: Critical Launchpad Issue: lp1848150 Tags: controllers, midi Attachments: [Lemur mapping](https://bugs.launchpad.net/bugs/1848150/+attachment/5297319/+files/Lemur mapping)


MIDI queue seems to randomly freeze and MIDI across all devices is halted. Unfreezes only when I manually toggle any deck's play button with the mouse. I use a Launchpad and a Liine Lemur with wizard mappings. Windows 10 x64. Version 2.2.2.

mixxxbot commented 2 years ago

Commented by: ronso0 Date: 2019-10-15T09:54:51Z


Please attach the mapping files to the bug report.

Does it freeze while it's playing, and unfreezes if playback is stopped?

mixxxbot commented 2 years ago

Commented by: ronso0 Date: 2019-10-15T10:00:23Z


Apart from the mappings, can you describe your setup and configuration? Lemur seems to be a powerful app, maybe it's simply sending to many messages. Does it freeze without the Lemur device attached?

mixxxbot commented 2 years ago

Commented by: polarshock Date: 2019-10-15T10:33:19Z Attachments: [Lemur mapping](https://bugs.launchpad.net/mixxx/+bug/1848150/+attachment/5297319/+files/Lemur mapping)


Attached mapping. MIDI freezes randomly during playback. It may start freezing after I've done something on the Lemur, but I can't confirm since there's no way to check. My Lemur setup is pretty basic - just some CC knobs and note buttons that I map to the mixer, effect chains, and some other parameters. Nothing complex - shouldn't send more messages per minute than an ordinary DJ controller would. It doesn't seem to freeze when the Lemur isn't attached, but again, I can't confirm 100%.

When such a freeze happens, if I click on a deck to resume playback, or go to preferences to disable and reenable the Lemur, all the changes I have done on the lemur during the freeze are instantly applied, which suggests that something is halting up the midi queue.

I attempted reading the logs, but couldn't find any MIDI-related errors. Could send it over as well if needed.

Lemur is routed as follows: Transmitted over wifi to Lemur Daemon (desktop driver,) relayed to LoopMIDI, then opened as controller in Mixxx. There doesn't seem to be an issue in this signal path. (Checked with MIDI monitoring)

Sorry if I'm a bit clumsy with the details, it's my first day with Mixxx, aha. Loving it otherwise.

mixxxbot commented 2 years ago

Commented by: ronso0 Date: 2019-10-15T12:06:52Z


To debug MIDI you can start Mixxx via command line "mixxx --controllerDebug"

Maybe you can detect what happens just before the freeze, and also where the MIDI messages get stuck.

mixxxbot commented 2 years ago

Commented by: Be-ing Date: 2019-10-15T12:47:33Z


My friend has also reported this on Windows with an Electrix Tweaker.

FYI, if you have a serious issue with a controller during a performance, you can go to the Mixxx preferences, disable the controller, then re-enable it without interrupting playback.

mixxxbot commented 2 years ago

Commented by: polarshock Date: 2019-10-16T07:09:15Z


Ran it with -controllerDebug
---
C:\Program Files\Mixxx>Warning [Main]: SoundSourcePluginLibrary - Failed to dynamically load plugin library "C:/Program Files/Mixxx/plugins/soundsource/soundsourcemediafoundation.exp" : "Cannot load library C:\\Program Files\\Mixxx\\plugins\\soundsource\\soundsourcemediafoundation.exp: Unknown error 0x000000c1."
Warning [Main]: SoundSourceProxy - Failed to load SoundSource plugin "C:/Program Files/Mixxx/plugins/soundsource/soundsourcemediafoundation.exp"
Warning [Main]: SoundSourcePluginLibrary - Failed to dynamically load plugin library "C:/Program Files/Mixxx/plugins/soundsource/soundsourcemediafoundation.lib" : "Cannot load library C:\\Program Files\\Mixxx\\plugins\\soundsource\\soundsourcemediafoundation.lib: Unknown error 0x000000c1."
Warning [Main]: SoundSourceProxy - Failed to load SoundSource plugin "C:/Program Files/Mixxx/plugins/soundsource/soundsourcemediafoundation.lib"
Warning [Main]: SoundSourcePluginLibrary - Failed to dynamically load plugin library "C:/Program Files/Mixxx/plugins/soundsource/soundsourcemediafoundation.pdb" : "Cannot load library C:\\Program Files\\Mixxx\\plugins\\soundsource\\soundsourcemediafoundation.pdb: Unknown error 0x000000c1."
Warning [Main]: SoundSourceProxy - Failed to load SoundSource plugin "C:/Program Files/Mixxx/plugins/soundsource/soundsourcemediafoundation.pdb"
Warning [Main]: src\skin\legacyskinparser.cpp:2110 SKIN ERROR at skin:tool_bar.xml:344 <Connection>: LegacySkinParser::setupConnections(): EmitOnPressAndRelease must not set false
Warning [Main]: src\skin\legacyskinparser.cpp:2110 SKIN ERROR at skin:skin_settings.xml:40 <Connection>: LegacySkinParser::setupConnections(): EmitOnPressAndRelease must not set false
Warning [Controller]: USB permissions problem (or device error.) Your account needs write access to USB HID controllers.
Warning [Controller]: USB permissions problem (or device error.) Your account needs write access to USB HID controllers.
Warning [Controller]: USB permissions problem (or device error.) Your account needs write access to USB HID controllers.
Warning [Main]: GLSLWaveformRendererSignal::createFrameBuffer - frame buffer not valid
Warning [Thread (pooled)]: libpng warning: iCCP: known incorrect sRGB profile
---
Won't say anything when the freeze happens. I did try to run it with admin priviledges after I saw the USB permissions problem. Both the issue and the log message persisted. Maybe it's one of those skin errors? I do use the default skin, though.
mixxxbot commented 2 years ago

Commented by: polarshock Date: 2019-10-16T08:28:26Z


Never mind! My bad. I forgot the second "-" in the suffix. Here's what happens right before the freeze.
---
Debug [Controller]: sending MIDI bytes: 144 , 25 , 53
Debug [Controller]: Launchpad MK2: outgoing: status 0x90 (ch 1, opcode 0x9), ctrl 0x19, val 0x35
Debug [Controller]: Launchpad MK2: t:464418 ms status 0x90 (ch 1, opcode 0x9), ctrl 0x19, val 0x00
Debug [Controller]: sending MIDI bytes: 144 , 25 , 55
Debug [Controller]: Launchpad MK2: outgoing: status 0x90 (ch 1, opcode 0x9), ctrl 0x19, val 0x37
---
Doesn't look like it even has anything to do with the Lemur.