Closed Rippert closed 4 years ago
Same as with issue #8 I cant reproduce this here. But, I found a trigger point to much which I've removed now. Still, didn't know if that fix this issue. Do the segfault happen only when midi feedback is enabled, or as well without feedback?
Only happens with midi feedback enabled, as far as I can tell. Guess the Pi is a picky critter. I'll try your new commit first thing tomorrow. Thanks.
I tried your latest commit,
Midi CC Only trigger value changed signal when the value realy changed
and it was segfaulting after moving a midi linked control still, but it seemed to take longer to actually crash.
I tried reverting to
Try to fix issue #9
and now it doesn't segfault, but the control goes into some sort of loop where it is oscillating between its original value and the new value. Here's some midi feedback output while it's stuck in this mode:
channel 1 control-change 10 0
channel 1 control-change 10 5
channel 1 control-change 10 3
channel 1 control-change 10 7
channel 1 control-change 10 15
channel 1 control-change 10 14
channel 1 control-change 10 13
channel 1 control-change 10 8
channel 1 control-change 10 12
channel 1 control-change 10 9
channel 1 control-change 10 4
channel 1 control-change 10 6
channel 1 control-change 10 0
channel 1 control-change 10 1
channel 1 control-change 10 18
channel 1 control-change 10 23
channel 1 control-change 10 2
channel 1 control-change 10 0
channel 1 control-change 10 5
channel 1 control-change 10 3
channel 1 control-change 10 7
channel 1 control-change 10 15
channel 1 control-change 10 14
channel 1 control-change 10 13
channel 1 control-change 10 8
channel 1 control-change 10 12
channel 1 control-change 10 9
channel 1 control-change 10 4
channel 1 control-change 10 6
channel 1 control-change 10 0
channel 1 control-change 10 1
channel 1 control-change 10 18
channel 1 control-change 10 23
channel 1 control-change 10 2
channel 1 control-change 10 0
channel 1 control-change 10 5
channel 1 control-change 10 3
channel 1 control-change 10 7
channel 1 control-change 10 15
channel 1 control-change 10 14
channel 1 control-change 10 13
channel 1 control-change 10 8
channel 1 control-change 10 12
channel 1 control-change 10 9
channel 1 control-change 10 4
channel 1 control-change 10 6
channel 1 control-change 10 0
channel 1 control-change 10 1
channel 1 control-change 10 18
channel 1 control-change 10 23
channel 1 control-change 10 2
channel 1 control-change 10 0
channel 1 control-change 10 5
channel 1 control-change 10 3
channel 1 control-change 10 7
channel 1 control-change 10 15
channel 1 control-change 10 14
channel 1 control-change 10 13
channel 1 control-change 10 8
channel 1 control-change 10 12
channel 1 control-change 10 9
channel 1 control-change 10 4
channel 1 control-change 10 6
channel 1 control-change 10 0
channel 1 control-change 10 1
channel 1 control-change 10 18
channel 1 control-change 10 23
channel 1 control-change 10 2
channel 1 control-change 10 0
channel 1 control-change 10 5
channel 1 control-change 10 3
channel 1 control-change 10 7
channel 1 control-change 10 15
channel 1 control-change 10 14
channel 1 control-change 10 13
channel 1 control-change 10 8
channel 1 control-change 10 12
channel 1 control-change 10 9
channel 1 control-change 10 4
channel 1 control-change 10 6
channel 1 control-change 10 0
channel 1 control-change 10 1
channel 1 control-change 10 18
channel 1 control-change 10 23
channel 1 control-change 10 2
channel 1 control-change 10 0
channel 1 control-change 10 5
channel 1 control-change 10 3
channel 1 control-change 10 7
channel 1 control-change 10 15
channel 1 control-change 10 14
channel 1 control-change 10 13
channel 1 control-change 10 8
channel 1 control-change 10 12
channel 1 control-change 10 9
channel 1 control-change 10 4
channel 1 control-change 10 6
This goes on until I exit guitarix, but guitarix doesn't crash.
I just tried disconnecting the input midi to guitarix, and leaving the output connected. Now it works properly without crashing. Looks like some weird midi loop. I'll try to track that down and then test again.
Yes, totally my fault. I got mixed up with the jack system_capture_midi
names and the alsa midi-through
names. I'm doing a clean recompile now, and I will let you know which commits work properly. I'm guessing there was no bug in your code at all. Sorry about probably wasting your time.
OK, tried the last three commits, and they all work without crashing. The latest one does seem to have less repeated values. Sorry about this.
Thank you @Rippert, your report help to make the code more stable and responsible. Even if it doesn't was a 'bug', it could be done better.
So I've got the Issue #8 commit compiling and running on my RPi. To test the midi feedback I assign a continuous controller to one of the knobs. I've tried Drive and Main Volume, and they both act the same.
After moving the control with the mouse and seeing the CC output on a midi monitor, the control freezes, the midi monitor gets flooded with repeating output at the last CC value, and then Guitarix segfaults.
Here's the full backtrace from gdb:
That doesn't look too helpful, so I tried the trick where I run an instance with the
-N
switch, and one with the-G
switch. This time it was the-N
instance that was segfaulting. Here's its backtrace: