Comment 8 for bug 1956144

Revision history for this message
Mike (mhe1234) wrote (last edit ): Re: Selecting MIDI for light with Midi Through Port-0 result in segmentation fault

Did some extra digging, if i comment all midi.sendShortMsg out, script is not crashing.

midi.sendShortMsg( 1, 0x32, 0x64);

it result in

Warning [Controller]: Error sending short message "Midi Through Port-0: outgoing: status 0x1"
Warning [Controller]: PortMidi error: PortMidi: `Invalid MIDI message Data'

if i change it in:
midi.sendShortMsg(0x8F + 1, 0x32, 0x64);

Debug [Controller]: Midi Through Port-0: t:95512 ms status 0x90 (ch 1, opcode 0x9), ctrl 0x32, val 0x64
No protocol specified

The No protocol specified is displayed, just before segmentation fault.

I dont think problem is in the Midi for light script.

// edit

if i use a command from other script:
midi.sendShortMsg(0x90,0x2A,0x00);

Just to be sure if the format is correct, it crashes.