Fatal: ASSERT: "m_cobj" in file src/midiledhandler.cpp, line 16
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Fix Released
|
Critical
|
ironstorm | ||
1.6 |
Fix Released
|
Critical
|
Albert Santoni |
Bug Description
This Assert kills mixxx 1.6.0b4 on Mac OSX 10.5.4 when the Hercules RMX MIDI mapping is selected.
Removing the <lights> section from the bottom of the midi.xml file resolves the problem temporarily.
Here is the context leading up to the failure:
Debug: Created new VinylControlXwax!
Debug: Xwax Vinyl control starting with a sample rate of: 44100
Debug: Building timecode lookup tables...
Allocating 2097152 slots (8192Kb) for 20 bit timecode (Serato 2nd Ed., side A)
Debug: Created new VinylControlXwax!
Debug: SoundDevicePort
Debug: m_dSampleRate 44100
Debug: iLatencyMSec: 64
Debug: output channels: 4 | input channels: 0
Debug: iLatencySamples: 11292
Debug: iLatencyMSec: 64
Debug: Opening stream with id 1
Debug: Opened PortAudio stream successfully... starting
Debug: PortAudio: Started stream successfully
Debug: iNumDevicesOpen
Debug: iNumDevicesOpen
Debug: SoundManager:
Debug: setupMappings( "/Applications/
Debug: Defaulting "jog" sensitivity to 50
Debug: Found option "hercjog"
Debug: Option: 8
Debug: Found option "button"
Debug: Option: 6
Debug: Found option "button"
Debug: Option: 6
Debug: Found option "switch"
Debug: Option: 7
Debug: Defaulting "jog" sensitivity to 50
Debug: Found option "hercjog"
Debug: Option: 8
Debug: Found option "button"
Debug: Option: 6
Debug: Found option "button"
Debug: Option: 6
Debug: Found option "switch"
Debug: Option: 7
Warning: No <midino> defined in MIDI map node: "#comment"
Warning: No <midino> defined in MIDI map node: "#comment"
Debug: Config value: "0 ch 1"
Warning: No <midino> defined in MIDI map node: "#comment"
Debug: Config value: "0 ch 1"
Warning: No <midino> defined in MIDI map node: "#comment"
Debug: Config value: "0 ch 1"
Warning: No <midino> defined in MIDI map node: "#comment"
Debug: Config value: "0 ch 1"
Warning: No <midino> defined in MIDI map node: "#comment"
Debug: Config value: "0 ch 1"
Warning: No <midino> defined in MIDI map node: "#comment"
Debug: Config value: "0 ch 1"
Debug: Defaulting "scratch" sensitivity to 50
Warning: No <midino> defined in MIDI map node: "#comment"
Debug: Config value: "0 ch 1"
Warning: No <midino> defined in MIDI map node: "#comment"
Debug: Config value: "0 ch 1"
Warning: No <midino> defined in MIDI map node: "#comment"
Debug: Config value: "0 ch 1"
Debug: ControlObject:
Fatal: ASSERT: "m_cobj" in file src/midiledhand
Changed in mixxx: | |
importance: | Undecided → Critical |
status: | New → Confirmed |
Changed in mixxx: | |
status: | Fix Committed → Fix Released |
My uber lazy suggestion is just to stick a guard in front of the function as seen in the patch below...
Please comment if anyone either wants to investigate the cause or has an even lazier fix...
Index: midiledhandler.cpp ======= ======= ======= ======= ======= ======= ======= ======= ====
double max, unsigned char status, unsigned char byte1)
=======
--- midiledhandler.cpp (revision 2217)
+++ midiledhandler.cpp (working copy)
@@ -10,6 +10,7 @@
: m_min(min), m_max(max), m_midi(midi), m_status(status), m_byte1(byte1) {
+ if (group.isEmpty() || name.isEmpty()) return; :getControl( ConfigKey( group, name));
m_cobj = ControlObject:
//m_cobj should never be null, so Q_ASSERT here to make sure that we hear about it if it is null.