Weird Issue / Bug - Knob Position not restoring graphically in big projects
-
The knobs are sliders and the labels are Labels, right? Does it change anything if you change the order so that the sliders come before the labels?
-
The sliders are currently before the labels. Also, the labels aren't saved in preset, just the sliders which update the labels on their control callbacks.
-
@Christoph-Hart Any more ideas for things to try or what could be causing this? Just trying to work this out before I send out to more testers.
-
You could hide a few sliders and check if the remaining ones are repainted correctly. I'm not aware of any hard limit when it comes to UI elements, and especially Sliders are default JUCE components so their repaint routine is not interfering with the scripting thread.
-
Unfortunately, this did not fix it either. I have a massive number of objects stored in Globals in HISEScript, would that have an affect on anything?
-
I should also mention that it only breaks the knobs which are set to save in preset, so it seems to be related to that functionality. When I turn that off, the knob position will restore properly when set from another function. However, these are knobs that need to be saved in the preset.
Even a linked slider fails to move the original slider position but is clearly updating the value. See below:
-
Ah that's interesting, so if you disable
saveInPreset
for the slider in your screencast, it updates the position correctly? Does it say anything about a script timeout error in the console?At this point it might be the best way to just send me the project so I can debug it. It's the same that is also causing the crash in logic, right?
-
Ah that's interesting, so if you disable saveInPreset for the slider in your screencast, it updates the position correctly? Does it say anything about a script timeout error in the console?
Yes, if I disable saveInPreset for that slider above and then reexport the plugin, it will update the position correctly. I often do get a lot of
Execution timed-out
errors within HISE but I haven't seen any like that in the debug console of the exported plugin.At this point it might be the best way to just send me the project so I can debug it. It's the same that is also causing the crash in logic, right?
That would be very much appreciated! Yes, it's the same project with the Logic crash. I'll send you a private message with the deets.
-
How was this issue fixed,? I’m having the same problems now, and I can’t figure out why.
-
@BWSounds Christoph fixed this a while back. There was a limit to the UI queue (1024), but he increased the limit. Do you have a lot of knobs in your project?
-
@Casey-Kolb
Humm. Yes a ton -
@Casey-Kolb
Does that have something to do with the size of the UI? -
@BWSounds I don't think it's related to the size of the UI, but just the number of controls with "Save In Preset" active. Though the number is super high, and it should be fixed in the most recent HISE branch anyway. Are you on the most recent HISE build?
What exactly is happening in your case? The knobs aren't updating visually on preset change?