Closed KatieWoe closed 4 years ago
I'll let CT run a few more cycles. If failures persist, I'll review cases of kit.getMolecule() are failing.
I think this can be replicated with a molecule placed in a collection box and then dragging out a single atom.
This is still an issue but can be replicated with the above suggestion. Perhaps, the previous bond isn't being disposed of properly? I'll continue to investigate.
There seems to be an added component:
build-a-molecule : fuzz : built : run
Query: fuzz&memoryLimit=1000
Uncaught TypeError: Cannot read property 'dispose' of undefined
TypeError: Cannot read property 'dispose' of undefined
at https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/build/phet/build-a-molecule_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:1029:6957117
at H.value (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/build/phet/build-a-molecule_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:1029:138493)
at https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/build/phet/build-a-molecule_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:1029:173766
at e.value (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/build/phet/build-a-molecule_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:1029:171942)
at e.value (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/build/phet/build-a-molecule_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:1029:174016)
at C.removeMolecule (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/build/phet/build-a-molecule_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:1029:6894429)
at C.recycleMoleculeIntoBuckets (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/build/phet/build-a-molecule_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:1029:6894797)
at C.atomDropped (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/build/phet/build-a-molecule_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:1029:6892609)
at e (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/build/phet/build-a-molecule_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:1029:6861712)
at H.value (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/build/phet/build-a-molecule_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:1029:138493)
id: Bayes Chrome
Approximately 6/12/2019, 4:02:07 AM
build-a-molecule : fuzz : require.js-canvas : run
Query: brand=phet&ea&fuzz&rootRenderer=canvas&memoryLimit=1000
Uncaught TypeError: Cannot read property 'atoms' of null
TypeError: Cannot read property 'atoms' of null
at Function.MoleculeStructure.getCombinedMoleculeFromBond (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/js/model/MoleculeStructure.js?bust=1560337160442:540:10)
at Kit.getPossibleMoleculeStructureFromBond (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/js/model/Kit.js?bust=1560337160442:522:32)
at Kit.canBond (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/js/model/Kit.js?bust=1560337160442:597:95)
at https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/js/model/Kit.js?bust=1560337160442:548:49
at Array.forEach (<anonymous>)
at https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/js/model/Kit.js?bust=1560337160442:538:20
at Array.forEach (<anonymous>)
at Kit.attemptToBondMolecule (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/js/model/Kit.js?bust=1560337160442:535:22)
at Kit.addAtomToPlay (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/js/model/Kit.js?bust=1560337160442:352:12)
at Kit.atomDropped (https://bayes.colorado.edu/continuous-testing/snapshot-1560333727162/build-a-molecule/js/model/Kit.js?bust=1560337160442:195:16)
id: Bayes Chrome
Approximately 6/12/2019, 4:02:07 AM
I believe there was an issue with how the atoms were being removed from Molecule.atoms[]. I've tracked down the buggy commit to https://github.com/phetsims/build-a-molecule/commit/e9be92071c3b737aa2552a76617268fbffad4862.
Note this should fix CT, but the line of code will still need refactoring. I'll let CT test against several cycles before closing.
This hasn't been showing up in the latest ct cycles. Closing this one.