Closed jbphet closed 1 year ago
I asked about this on Slack, and @zepumph said "It's me! Thanks", and @samreid referenced https://github.com/phetsims/axon/issues/215. Assigning to @zepumph I guess.
Yes thanks. I'm working on it over in that issue. I'll rename to correspond with all other issues that are like this.
I added a potential workaround, but it is much too central in our code. I'm not sure how to proceed if this fixes things, but I'll first wait to see if CT cleans up from it.
Ok, that did seem to clear things up, perhaps it is a disposal listener order or something like that. I will want to take more of a look instead of just adding this to PressListener.
By looking at the trail, I see that it is from the disposal of BreakApartButton
. I'll see if I can experiment with other structures in that disposal order.
Ok, so the issue is pretty general about Properties that dispose a DerivedProperty that uses the original property (as breakApartButton
exposes). I will pick things up over there. We will reopen this if a sim-specific problem emerges, but it likely won't.
https://github.com/phetsims/axon/commit/92e4db211f0bbe2c38605c9e4ab4158ea886b1d6 caused some CT errors that are fixed with the above commit.