-
Notifications
You must be signed in to change notification settings - Fork 5
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
re-enable all assertions in PhetioObject #48
Comments
Bayes is not currently operational, so we will have to rely on local testing to help catch issues. |
Please see phetsims/equality-explorer#25 for an issue that was created in Equality Explorer about this assertion. |
Local Aqua testing for phet brand (with the 3 assertions enabled) indicated issues in these sims:
I included all red sims (even those with seemingly unrelated issues), in case the unrelated issues may be masking this issue. |
The problem in build-a-molecule is exactly what we have been talking about in phetsims/scenery#725 and phetsims/scenery#726. The drag event is calling Putting it in a |
I wonder if the problems in #48 (comment) were fixed by commits in #50 ? |
I added the workaround to use PHET_CORE/Timer to invoke the end drag in the next animation frame. |
Next round of testing
|
After proposing changes to fix build-an-atom style cases, I added another assertion to make sure objects are not disposed twice, and it is triggering in Circuit Construction Kit. |
Fixed a latent bug in CCK CircuitElement disposal. |
After fixing that, Next round of testing had a "cannot start event while event is in progress" in black box study.
|
I suspect it could be too restrictive to forbid objects from triggering double events on themselves (even though it seems rare). |
On the other hand, in a previous case and this case catching double triggering revealed an underlying problem in the code, so maybe it is good to keep (until we find a case we cannot circumvent). Committing fix for MomentaryButtonModel shortly. |
On second thought, I'm not convinced the change above is a good move--it works around the problem at hand but when the button becomes disabled and it does not change the value it may be incorrect for the data stream. |
Better solution committed above. |
Everything is passing aqua fuzz (except for sugar and salt solutions which has namespace problems). I'll test phet-io aqua before committing. |
Everything is green on phet-io aqua. |
The changes in PhetioObject warrant another review by @pixelzoom. I'll create a new issue to make sure it is set for review. |
This will help us identify the following issues:
(a) cases where an event triggers the an event on the same instance
(b) cases where an object is disposed while triggering an event.
From #46
The text was updated successfully, but these errors were encountered: