-
Notifications
You must be signed in to change notification settings - Fork 7
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
Going back and forth between collections and adding molecules can crash sim #141
Comments
@lmulhall-phet Is this bug reproducible in https://phet-dev.colorado.edu/html/build-a-molecule/0.0.0-dev.39/phet/build-a-molecule_all_phet.html? |
…e doc regarding currentCollectionProperty links. #141
The issue here is that when swapping collections, the previous kits weren't being reset, but their listeners were being deleted. We have to reset the kit to a clean state and then delete its listeners so when we return back to that collection's kit there aren't any lingering molecules without listeners. Can you confirm this isn't an issue anymore in this dev version @KatieWoe? |
Looks good in that dev version (didn't test much beyond issue above, but looked good from what I saw). We'll keep an eye out in the next test, but I think this is good for now. |
Good to know. Closing this issue. |
Test Device
Hanson
Operating System
Windows 10
Browser
Chrome 79.0.3945.117
Problem Description
If you follow steps 1-6 (see steps to reproduce), you should see molecules from collection A in the play area. You can manipulate these molecules, and if you try to put them back in their bucket, the sim crashes. There is a console error when the sim crashes.
Steps to Reproduce
Visuals
Troubleshooting Information
!!!!! DO NOT EDIT !!!!! Name: Build a Molecule URL: https://phet-dev.colorado.edu/html/build-a-molecule/0.0.0-dev.38/phet/build-a-molecule_en_phet.html Version: 0.0.0-dev.38 2020-01-09 14:39:10 UTC Features missing: touch User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36 Language: en-US Window: 1440x821 Pixel Ratio: 1/1 WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium) GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) Vendor: WebKit (WebKit WebGL) Vertex: attribs: 16 varying: 15 uniform: 1024 Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 80) Max viewport: 16384x16384 OES_texture_float: true Dependencies JSON: {}The text was updated successfully, but these errors were encountered: