-
Notifications
You must be signed in to change notification settings - Fork 3
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
Rack crashing when opening module browser #11
Comments
https://github.com/catronomix/catro-modulo/blob/1.0.0/src/CatroModulo_CM-4.cpp#L106 There is another way to do it which does draw the display. This is the way I have done it on my own displays
My source: https://github.com/Coirt/Bark/blob/master/src/Clamp.cpp#L206 |
you're crashing here:
in
you're making an invalid assignment, and crashing on null. specifically:
|
Ok I see... I should put the default values directly in the constructor of CM3_RecBall then. Will try it out. |
|
@CATronix gimme a minute and I'll have a PR for you to fix at least this one, should give you a pattern to use. |
I opened a PR for the first fix, which should act as a pattern - you'll see an additional change that I made, but you'll want to apply the same from there, they should show up in the module browser. |
It does yes. What I also do is placehold a replica of the display in the panel.svg this will show in the browser when the module loads the widget is drawn on top of it. https://github.com/Coirt/Bark/blob/master/res/BarkClamp.svg |
Cool thx, I understand what's happening there I think. Will apply it to everything and test it out :) |
it will help you to get a debugger up and running (check out @almostEric's suggestion on the other thread on where to look), it was easy for me to figure out where it was crashing in a debugger, but I'm on macOS, and was running |
@JerrySievert 's solution worked a charm! I think I can even revert to limiting the checks on accessing the module pointer so the widgets can still draw, if not, I'll use the mimicking graphics inside the panel background trick :) In any case it's a success :D |
awesome! happy to help. just shout if you need anything else. |
In latest commit: d13ba25
I thought I did what this means I should do, but still rack crashes...
I put the if (module){...} check around all the occurences where module->... was used :/
The text was updated successfully, but these errors were encountered: