phetsims / build-a-molecule

"Build a Molecule" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
8 stars 7 forks source link

CT Element does not have an associated bucket #240

Closed KatieWoe closed 9 months ago

KatieWoe commented 12 months ago
build-a-molecule : fuzz : unbuilt
http://127.0.0.1/continuous-testing/ct-snapshots/1689347499907/build-a-molecule/build-a-molecule_en.html?continuousTest=%7B%22test%22%3A%5B%22build-a-molecule%22%2C%22fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1689347499907%22%2C%22timestamp%22%3A1689350869602%7D&brand=phet&ea&fuzz
Query: brand=phet&ea&fuzz
Error: Assertion failed: Element does not have an associated bucket.
window.assertions.assertFunction<@http://127.0.0.1/continuous-testing/ct-snapshots/1689347499907/assert/js/assert.js:28:13
at window.assertions.assertFunction< (http://127.0.0.1/continuous-testing/ct-snapshots/1689347499907/assert/js/assert.js:28:13)
at assert (Kit.js:177:14)
at getBucketForElement (Kit.js:423:24)
at recycleAtomIntoBuckets (Kit.js:438:11)
at forEach (Kit.js:437:19)
at recycleMoleculeIntoBuckets (Kit.js:214:11)
at atomDropped (BAMScreenView.js:437:19)
at _end (DragListener.ts:381:24)
at callback (PressListener.ts:752:16)
at apply (PhetioAction.ts:161:16)
at execute (PressListener.ts:508:24)
at release (DragListener.ts:377:10)
at release (PressListener.ts:851:11)
at inputEvent (Input.ts:1897:69)
at dispatchToListeners (Input.ts:1845:9)
at dispatchEvent (Input.ts:1651:9)
at upEvent (Input.ts:516:13)
at apply (PhetioAction.ts:161:16)
at execute (Input.ts:1289:24)
at touchEnd (InputFuzzer.js:242:24)
at touchEnd (InputFuzzer.js:55:11)
at action (InputFuzzer.js:107:6)
at fuzzEvents (SimDisplay.ts:211:23)
at fuzzInputEvents (Sim.ts:980:44)
at requestAnimationFrame (Sim.ts:972:11)
at requestAnimationFrame (Sim.ts:972:11)
at requestAnimationFrame (Sim.ts:972:11)
at requestAnimationFrame (Sim.ts:972:11)
at boundRunAnimationLoop (Sim.ts:915:19)
at (Sim.ts:893:24)
at (Sim.ts:874:16)
at i (Sim.ts:890:21)
at (Sim.ts:874:16)
at i (Sim.ts:890:21)
at (Sim.ts:874:16)
at i (Sim.ts:890:21)
at (Sim.ts:874:16)
at i (Sim.ts:890:21)
at (Sim.ts:874:16)
at i (Sim.ts:890:21)
at (Sim.ts:874:16)
at i (Sim.ts:890:21)
at (Sim.ts:874:16)
at i (Sim.ts:890:21)
at (Sim.ts:874:16)
at (Sim.ts:967:13)
at start (build-a-molecule-main.js:37:18)
at callback (simLauncher.ts:67:8)
at launchSimulation (simLauncher.ts:88:26)
at listener (asyncLoader.ts:56:42)
at forEach (asyncLoader.ts:56:21)
at proceedIfReady (asyncLoader.ts:69:11)
at image (logo_png.ts:6:0)
id: Sparky Playwright Firefox
Snapshot from 7/14/2023, 9:11:39 AM

----------------------------------

build-a-molecule : fuzz : unbuilt : assertSlow
http://127.0.0.1/continuous-testing/ct-snapshots/1689347499907/build-a-molecule/build-a-molecule_en.html?continuousTest=%7B%22test%22%3A%5B%22build-a-molecule%22%2C%22fuzz%22%2C%22unbuilt%22%2C%22assertSlow%22%5D%2C%22snapshotName%22%3A%22snapshot-1689347499907%22%2C%22timestamp%22%3A1689350415975%7D&brand=phet&eall&fuzz
Query: brand=phet&eall&fuzz
Uncaught Error: Assertion failed: Element does not have an associated bucket.
Error: Assertion failed: Element does not have an associated bucket.
at window.assertions.assertFunction (http://127.0.0.1/continuous-testing/ct-snapshots/1689347499907/assert/js/assert.js:28:13)
at assert (Kit.js:177:14)
at getBucketForElement (Kit.js:423:24)
at recycleAtomIntoBuckets (Kit.js:438:11)
at Array.forEach
at forEach (Kit.js:437:19)
at recycleMoleculeIntoBuckets (Kit.js:214:11)
at atomDropped (BAMScreenView.js:437:19)
at _end (DragListener.ts:381:24)
at callback (PressListener.ts:752:16)
id: Sparky Puppeteer
Snapshot from 7/14/2023, 9:11:39 AM

----------------------------------

build-a-molecule : fuzz : unbuilt : listenerOrderRandom
http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/build-a-molecule/build-a-molecule_en.html?continuousTest=%7B%22test%22%3A%5B%22build-a-molecule%22%2C%22fuzz%22%2C%22unbuilt%22%2C%22listenerOrderRandom%22%5D%2C%22snapshotName%22%3A%22snapshot-1689347499907%22%2C%22timestamp%22%3A1689348205979%7D&brand=phet&ea&fuzz&listenerOrder=random
Query: brand=phet&ea&fuzz&listenerOrder=random
Uncaught Error: Assertion failed: Element does not have an associated bucket.
Error: Assertion failed: Element does not have an associated bucket.
at window.assertions.assertFunction (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/assert/js/assert.js:28:13)
at assert (Kit.js:177:14)
at getBucketForElement (Kit.js:423:24)
at recycleAtomIntoBuckets (Kit.js:438:11)
at Array.forEach
at forEach (Kit.js:437:19)
at recycleMoleculeIntoBuckets (Kit.js:214:11)
at atomDropped (BAMScreenView.js:437:19)
at _end (DragListener.ts:381:24)
at callback (PressListener.ts:752:16)
[URL] http://128.138.93.172//continuous-testing/aqua/html/sim-test.html?url=..%2F..%2Fct-snapshots%2F1689347499907%2Fbuild-a-molecule%2Fbuild-a-molecule_en.html&simQueryParameters=brand%3Dphet%26ea%26fuzz%26listenerOrder%3Drandom&testInfo=%7B%22test%22%3A%5B%22build-a-molecule%22%2C%22fuzz%22%2C%22unbuilt%22%2C%22listenerOrderRandom%22%5D%2C%22snapshotName%22%3A%22snapshot-1689347499907%22%2C%22timestamp%22%3A1689348205979%7D
[NAVIGATED] http://128.138.93.172//continuous-testing/aqua/html/sim-test.html?url=..%2F..%2Fct-snapshots%2F1689347499907%2Fbuild-a-molecule%2Fbuild-a-molecule_en.html&simQueryParameters=brand%3Dphet%26ea%26fuzz%26listenerOrder%3Drandom&testInfo=%7B%22test%22%3A%5B%22build-a-molecule%22%2C%22fuzz%22%2C%22unbuilt%22%2C%22listenerOrderRandom%22%5D%2C%22snapshotName%22%3A%22snapshot-1689347499907%22%2C%22timestamp%22%3A1689348205979%7D
[NAVIGATED] about:blank
[NAVIGATED] http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/build-a-molecule/build-a-molecule_en.html?continuousTest=%7B%22test%22%3A%5B%22build-a-molecule%22%2C%22fuzz%22%2C%22unbuilt%22%2C%22listenerOrderRandom%22%5D%2C%22snapshotName%22%3A%22snapshot-1689347499907%22%2C%22timestamp%22%3A1689348205979%7D&brand=phet&ea&fuzz&listenerOrder=random
[CONSOLE] enabling assert
[CONSOLE] listenerOrder random seed: 795088
[CONSOLE] loaded initial data in 3ms
[CONSOLE] Searching Acetic Acid in master instance.
[CONSOLE] loaded master data in 1893ms
[CONSOLE] Master list loaded.
[CONSOLE] continuous-test-load
[CONSOLE] Assertion failed: Element does not have an associated bucket.
[PAGE ERROR] Error: Error: Assertion failed: Element does not have an associated bucket.
at window.assertions.assertFunction (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/assert/js/assert.js:28:13)
at Kit.getBucketForElement (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/build-a-molecule/js/common/model/Kit.js:178:15)
at Kit.recycleAtomIntoBuckets (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/build-a-molecule/js/common/model/Kit.js:417:25)
at http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/build-a-molecule/js/common/model/Kit.js:432:12
at Array.forEach (<anonymous>)
at Kit.recycleMoleculeIntoBuckets (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/build-a-molecule/js/common/model/Kit.js:431:20)
at Kit.atomDropped (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/build-a-molecule/js/common/model/Kit.js:215:12)
at DragListener.end [as _end] (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/build-a-molecule/js/common/view/BAMScreenView.js:424:20)
at http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/scenery/js/listeners/DragListener.js:243:25
at DragListener.onRelease (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/scenery/js/listeners/PressListener.js:549:17)
[CONSOLE] continuous-test-error

id: "Sparky Node Puppeteer"
Snapshot from 7/14/2023, 9:11:39 AM

----------------------------------

build-a-molecule : xss-fuzz
http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/build-a-molecule/build-a-molecule_en.html?continuousTest=%7B%22test%22%3A%5B%22build-a-molecule%22%2C%22xss-fuzz%22%5D%2C%22snapshotName%22%3A%22snapshot-1689347499907%22%2C%22timestamp%22%3A1689350925805%7D&brand=phet&ea&fuzz&stringTest=xss
Query: brand=phet&ea&fuzz&stringTest=xss
Uncaught Error: Assertion failed: Element does not have an associated bucket.
Error: Assertion failed: Element does not have an associated bucket.
at window.assertions.assertFunction (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/assert/js/assert.js:28:13)
at assert (Kit.js:177:14)
at getBucketForElement (Kit.js:423:24)
at recycleAtomIntoBuckets (Kit.js:438:11)
at Array.forEach
at forEach (Kit.js:437:19)
at recycleMoleculeIntoBuckets (Kit.js:214:11)
at atomDropped (BAMScreenView.js:437:19)
at _end (DragListener.ts:381:24)
at callback (PressListener.ts:752:16)
[URL] http://128.138.93.172//continuous-testing/aqua/html/sim-test.html?url=..%2F..%2Fct-snapshots%2F1689347499907%2Fbuild-a-molecule%2Fbuild-a-molecule_en.html&simQueryParameters=brand%3Dphet%26ea%26fuzz%26stringTest%3Dxss&duration=10000&testInfo=%7B%22test%22%3A%5B%22build-a-molecule%22%2C%22xss-fuzz%22%5D%2C%22snapshotName%22%3A%22snapshot-1689347499907%22%2C%22timestamp%22%3A1689350925805%7D
[NAVIGATED] http://128.138.93.172//continuous-testing/aqua/html/sim-test.html?url=..%2F..%2Fct-snapshots%2F1689347499907%2Fbuild-a-molecule%2Fbuild-a-molecule_en.html&simQueryParameters=brand%3Dphet%26ea%26fuzz%26stringTest%3Dxss&duration=10000&testInfo=%7B%22test%22%3A%5B%22build-a-molecule%22%2C%22xss-fuzz%22%5D%2C%22snapshotName%22%3A%22snapshot-1689347499907%22%2C%22timestamp%22%3A1689350925805%7D
[NAVIGATED] about:blank
[NAVIGATED] http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/build-a-molecule/build-a-molecule_en.html?continuousTest=%7B%22test%22%3A%5B%22build-a-molecule%22%2C%22xss-fuzz%22%5D%2C%22snapshotName%22%3A%22snapshot-1689347499907%22%2C%22timestamp%22%3A1689350925805%7D&brand=phet&ea&fuzz&stringTest=xss
[CONSOLE] enabling assert
[CONSOLE] loaded initial data in 3ms
[CONSOLE] Searching Acetic Acid in master instance.
[CONSOLE] loaded master data in 1708ms
[CONSOLE] Master list loaded.
[CONSOLE] continuous-test-load
[CONSOLE] Assertion failed: Element does not have an associated bucket.
[PAGE ERROR] Error: Error: Assertion failed: Element does not have an associated bucket.
at window.assertions.assertFunction (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/assert/js/assert.js:28:13)
at Kit.getBucketForElement (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/build-a-molecule/js/common/model/Kit.js:178:15)
at Kit.recycleAtomIntoBuckets (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/build-a-molecule/js/common/model/Kit.js:417:25)
at http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/build-a-molecule/js/common/model/Kit.js:432:12
at Array.forEach (<anonymous>)
at Kit.recycleMoleculeIntoBuckets (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/build-a-molecule/js/common/model/Kit.js:431:20)
at Kit.atomDropped (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/build-a-molecule/js/common/model/Kit.js:215:12)
at DragListener.end [as _end] (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/build-a-molecule/js/common/view/BAMScreenView.js:424:20)
at http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/scenery/js/listeners/DragListener.js:243:25
at DragListener.onRelease (http://128.138.93.172//continuous-testing/ct-snapshots/1689347499907/chipper/dist/js/scenery/js/listeners/PressListener.js:549:17)
[CONSOLE] continuous-test-error

id: "Sparky Node Puppeteer"
Snapshot from 7/14/2023, 9:11:39 AM
pixelzoom commented 9 months ago

Noting that the sim fails 100% of the time on startup in my working copy, when fuzzed with ?brand=phet&ea&fuzz&debugger. The assertion message is:

assert.js:24 Assertion failed: Element does not have an associated bucket.

jbphet commented 9 months ago

I'll take a look at this, since I've been tasked with improving the state of CT during the current iteration.

samreid commented 9 months ago

@marlitas and @jonathanolson and I addressed it in the commits, closing.