Re: IndexOutOfBoundsException in Parent::updateCachedBounds when visibility changes

2025-06-25 Thread Dean Wookey
Hi John, Thanks, I have made changes to Parent before (although I seem to have lost the exact changes I made) and that seemed to work, but I couldn't do that for mobile. I wanted to get to the bottom of this before I said anything, but I haven't made too much progress. It's taken 3 months for the

Re: IndexOutOfBoundsException in Parent::updateCachedBounds when visibility changes

2025-06-25 Thread John Hendrikx
I've looked at the code as well, and I think I agree with your assessment.  `getChildTransformedBounds` does a lot of stuff, and will modify properties that can be observed while the `dirtyChildren` list is being used in `updateCachedBounds`.   However, what I think the problem is directly with th

Re: IndexOutOfBoundsException in Parent::updateCachedBounds when visibility changes

2025-06-25 Thread Dean Wookey
Hi Christopher, Thanks. I had to adapt your code to reuse listeners because I ran out of memory. So far I haven't found anything, but will keep looking. At least it's possible to give a version with this to select users which isn't possible with the conditional breakpoint approach. Dean On Wed,

Re: IndexOutOfBoundsException in Parent::updateCachedBounds when visibility changes

2025-06-25 Thread Christopher Schnick
(Resending this mail since it somehow didn't make it to the mailing list the first time) This issue vanished for us after reworking the application, including implementing more fixes for non-platform thread access. I can't say definitively whether this caused it, but there were some rare insta

Re: IndexOutOfBoundsException in Parent::updateCachedBounds when visibility changes

2025-06-25 Thread John Hendrikx
Hi, The possibility for code being called re-entrantly on the same thread is unfortunately something that slips the minds of developers quite easily when they develop single threaded code. Developers assume that their private fields will be in a consistent state because code being executed will al

Re: IndexOutOfBoundsException in Parent::updateCachedBounds when visibility changes

2025-06-25 Thread Dean Wookey
Hi Everyone, We've also been experiencing this problem over the years. It seems to be related to JDK-8198577. Once it goes wrong, each pulse hits the issue repeated meaning it can never escape. It's rare, but extremely disruptive when it does occur because the user loses what th