-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean init process to prevent exceptions #834
Conversation
6c66e0b
to
e976084
Compare
Rebased and merged as 8.1-21 94fec7f |
I can't explain that right now. I developed it with the Mixbus code and then copied it to Ardour and tested it there with multiple connects and disconnects. |
This is on macOS, and the user does not compile Mixbus, so it was not trivial to get debug output. The actual issue: Moving a Fader on Mixbus, updates the console1, but moving a knob on console 1surface does not update Mixbus. -- This apparently worked last week.
|
This is even more confusing - I don't see that I have changed anything in retrieveing events from the device. |
After reverting 94fec7f There is also no constant stream of "something happened" messages any more, looks like messages are handled again: -- I'll do another build with after reverting 99e2546. |
OK after reverting 99e2546 solo and mute work again. |
Ok, I'm not sure if your changes were already on my system - even thoug I thought I did a rebase. |
It seems that f34ce17 prevents any Incoming from being processed. It seems the issue is caused by calling When starting the ctrl surface there is a message
coming from
|
Okay, the problem is becoming quite widespread. The error should then occur with many control surfaces, right? I copied the whole port initialization stuff from other implementations. |
It wasn't copied correctly. Other surfaces call (one way or another) BaseUI::run() before doing port setup. |
@pauldavisthefirst Maybe you can shed some more light on this. I call BaseUI::run() in the 'setActive' method. This is exactly how it is done e.g in faderport8.cc, cc121.cc... |
Faderport8, does not use not use |
I have already cleaned up the code, please pull first before making further changes. |
890db34
to
e465db2
Compare
Sorry, I did not expect one of tis files being changed outside this PR. I have removed the last commit and rebased. Still, I would like to test it when I'm back home next thursday before reapplying. |
e465db2
to
53166a7
Compare
My Thanks for your hard work! |
Many thanks for your ongoing support Robin and Paul! |
Sorry for commenting here again: Nathan fro Harrison contacted me again and it still seems not to be working on Apple. He tried on the Ardour nightly build 31st of October and had the same problems. From Ardour to Console1 it works, from Console 1 to Ardour it does not work. |
As suggested by Robin I have moved nearly all initialization to "start_using_device" and remove all connections in "stop_using_device".
In addition I prevent updates when not connected. (And did some proper formatting...)