Hi, I have spent days trying to figure this out so thought I would finally ask here in-case I am missing something obvious or someone else has encountered this issue.
Recently I re-worked my application to create a ValueTree from a series of default values and then have my components reference the values to sort of centralise the controls. This means I can modify the ValueTree from different places and all my components will update accordingly. I can also very easily save the state of this and reload it so thanks for this truly magnificent class. I’m not sure if this is the cause of the problem but this was what I added when I started to notice the problem.
Now for some unknown reason I keep hitting assertions for isValidComponent(). These get hit from various places such as addComponentListener(), removeComponentListener(), isParentOf() etc. and as far as I can tell is completely random. It happens to different components only occasionally, sometimes more frequently than others and sometimes not at all. It doesn’t seem to affect my application as it all seems to work fine but obviously keeps launching the debugger every time I hit one. It also happens to components that aren’t linked to the ValueTree which makes me think it’s not to do with that.
What I can’t understand is how something can be a valid component one minute and not another, it all draws ok and I’m not creating or deleting any components after initial construction. From the stack trace both “this” and “newListener” or whatever the argument is have an address.
This has got me perplexed so any pointers oh hints would be very welcome.
OSX, JUCE v1.52.36