Skip to content
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

CT ERROR: Uncaught Error: Assertion failed: phetioState only accessible for instrumented objects in PhET-iO brand. #11

Open
KatieWoe opened this issue Sep 25, 2024 · 4 comments

Comments

@KatieWoe
Copy link

number-pairs : phet-io-data-stream-fuzz : unbuilt
URL: http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/phet-io-wrappers/data-stream/?sim=number-pairs&locales=*&phetioWrapperDebug=true&fuzz&phetioDebug=true&wrapperContinuousTest=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-data-stream-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727289670995%7D
ERROR: Uncaught Error: Assertion failed: phetioState only accessible for instrumented objects in PhET-iO brand.
STACK: Error: Assertion failed: phetioState only accessible for instrumented objects in PhET-iO brand.
    at window.assertions.assertFunction (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/assert/js/assert.js:45:13)
    at assert (PhetioObject.ts:378:14)
    at phetioState (IOType.ts:699:36)
    at toStateObjectOption (IOType.ts:373:52)
    at toStateObject (IOType.ts:373:104)
    at toStateObject (PhetioDataHandler.ts:209:54)
    at getPhetioData (Emitter.ts:61:17)
    at emit (createObservableArray.ts:172:14)
    at emitNotification (createObservableArray.ts:399:11)
    at push (NumberPairsSceneModel.ts:60:30)
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at times (NumberPairsSceneModel.ts:59:6)
    at  (DecompositionModel.ts:57:21)
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at times (DecompositionModel.ts:46:6)
    at  (IntroModel.ts:35:4)
    at  (IntroScreen.ts:37:12)
    at createModel (Screen.ts:296:23)
====================
FULL LOG:
[URL] http://128.138.93.172/continuous-testing/aqua/html/wrapper-test.html?url=..%2F..%2Fct-snapshots%2F1727289190249%2Fphet-io-wrappers%2Fdata-stream%2F%3Fsim%3Dnumber-pairs%26locales%3D*%26phetioWrapperDebug%3Dtrue%26fuzz%26phetioDebug%3Dtrue&duration=15000&testInfo=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-data-stream-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727289670995%7D
[NAVIGATED] http://128.138.93.172/continuous-testing/aqua/html/wrapper-test.html?url=..%2F..%2Fct-snapshots%2F1727289190249%2Fphet-io-wrappers%2Fdata-stream%2F%3Fsim%3Dnumber-pairs%26locales%3D*%26phetioWrapperDebug%3Dtrue%26fuzz%26phetioDebug%3Dtrue&duration=15000&testInfo=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-data-stream-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727289670995%7D
[ATTACHED] 
[NAVIGATED] about:blank
[NAVIGATED] http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/phet-io-wrappers/data-stream/?sim=number-pairs&locales=*&phetioWrapperDebug=true&fuzz&phetioDebug=true&wrapperContinuousTest=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-data-stream-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727289670995%7D
[ATTACHED] 
[NAVIGATED] about:blank
[CONSOLE] enabling assert
[NAVIGATED] about:blank
[NAVIGATED] http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/number-pairs/number-pairs_en.html?brand=phet-io&ea&postMessageOnError&sim=number-pairs&locales=*&phetioWrapperDebug=true&fuzz&phetioDebug=true&wrapperContinuousTest=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-data-stream-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727289670995%7D&phetioEmitHighFrequencyEvents=false
[CONSOLE] enabling assert
[CONSOLE] Assertion failed:  phetioState only accessible for instrumented objects in PhET-iO brand.
[CONSOLE] Debug info: {
  "seed": 0.48577569342011606,
  "currentScreenName": "HomeScreen"
}
[PAGE ERROR] Error: Error: Assertion failed: phetioState only accessible for instrumented objects in PhET-iO brand.
    at window.assertions.assertFunction (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/assert/js/assert.js:45:13)
    at get phetioState [as phetioState] (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/PhetioObject.js:316:15)
    at IOType.toStateObject [as toStateObjectOption] (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:468:36)
    at IOType.toStateObject (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:178:53)
    at IOType.toStateObject (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:178:102)
    at Emitter.getPhetioData (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/PhetioDataHandler.js:163:51)
    at Emitter.emit (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/Emitter.js:50:18)
    at Proxy.emitNotification (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/createObservableArray.js:113:15)
    at Proxy.push (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/createObservableArray.js:309:12)
    at http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/NumberPairsSceneModel.js:44:31
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at new NumberPairsSceneModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/NumberPairsSceneModel.js:43:7)
    at http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/DecompositionModel.js:36:22
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at new DecompositionModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/DecompositionModel.js:27:7)
    at new IntroModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/intro/model/IntroModel.js:22:5)
    at IntroScreen.createModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/intro/IntroScreen.js:25:17)
    at IntroScreen.initializeModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/joist/js/Screen.js:220:24)
[PAGE ERROR] Error: Error: Assertion failed: phetioState only accessible for instrumented objects in PhET-iO brand.
    at window.assertions.assertFunction (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/assert/js/assert.js:45:13)
    at get phetioState [as phetioState] (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/PhetioObject.js:316:15)
    at IOType.toStateObject [as toStateObjectOption] (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:468:36)
    at IOType.toStateObject (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:178:53)
    at IOType.toStateObject (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:178:102)
    at Emitter.getPhetioData (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/PhetioDataHandler.js:163:51)
    at Emitter.emit (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/Emitter.js:50:18)
    at Proxy.emitNotification (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/createObservableArray.js:113:15)
    at Proxy.push (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/createObservableArray.js:309:12)
    at http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/NumberPairsSceneModel.js:44:31
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at new NumberPairsSceneModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/NumberPairsSceneModel.js:43:7)
    at http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/DecompositionModel.js:36:22
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at new DecompositionModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/DecompositionModel.js:27:7)
    at new IntroModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/intro/model/IntroModel.js:22:5)
    at IntroScreen.createModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/intro/IntroScreen.js:25:17)
    at IntroScreen.initializeModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/joist/js/Screen.js:220:24)
[CONSOLE] continuous-test-wrapper-error

id: "Sparky Node Puppeteer"
Snapshot from 9/25/2024, 12:33:10 PM

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

number-pairs : phet-io-fuzz : unbuilt
URL: http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/number-pairs/number-pairs_en.html?continuousTest=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727290700977%7D&ea&brand=phet-io&phetioStandalone&fuzz
ERROR: QUERY: ea&brand=phet-io&phetioStandalone&fuzz
Uncaught Error: Assertion failed: phetioState only accessible for instrumented objects in PhET-iO brand.
STACK: Error: Assertion failed: phetioState only accessible for instrumented objects in PhET-iO brand.
    at window.assertions.assertFunction (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/assert/js/assert.js:45:13)
    at assert (PhetioObject.ts:378:14)
    at phetioState (IOType.ts:699:36)
    at toStateObjectOption (IOType.ts:373:52)
    at toStateObject (IOType.ts:373:104)
    at toStateObject (PhetioDataHandler.ts:209:54)
    at getPhetioData (Emitter.ts:61:17)
    at emit (createObservableArray.ts:172:14)
    at emitNotification (createObservableArray.ts:399:11)
    at push (NumberPairsSceneModel.ts:60:30)
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at times (NumberPairsSceneModel.ts:59:6)
    at  (DecompositionModel.ts:57:21)
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at times (DecompositionModel.ts:46:6)
    at  (IntroModel.ts:35:4)
    at  (IntroScreen.ts:37:12)
    at createModel (Screen.ts:296:23)
====================
FULL LOG:
[URL] http://128.138.93.172/continuous-testing/aqua/html/sim-test.html?url=..%2F..%2Fct-snapshots%2F1727289190249%2Fnumber-pairs%2Fnumber-pairs_en.html&simQueryParameters=ea%26brand%3Dphet-io%26phetioStandalone%26fuzz&testInfo=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727290700977%7D
[NAVIGATED] http://128.138.93.172/continuous-testing/aqua/html/sim-test.html?url=..%2F..%2Fct-snapshots%2F1727289190249%2Fnumber-pairs%2Fnumber-pairs_en.html&simQueryParameters=ea%26brand%3Dphet-io%26phetioStandalone%26fuzz&testInfo=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727290700977%7D
[ATTACHED] 
[NAVIGATED] about:blank
[NAVIGATED] http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/number-pairs/number-pairs_en.html?continuousTest=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727290700977%7D&ea&brand=phet-io&phetioStandalone&fuzz
[CONSOLE] enabling assert
[CONSOLE] Assertion failed:  phetioState only accessible for instrumented objects in PhET-iO brand.
[CONSOLE] Debug info: {
  "seed": 0.2914499586286712,
  "currentScreenName": "HomeScreen"
}
[PAGE ERROR] Error: Error: Assertion failed: phetioState only accessible for instrumented objects in PhET-iO brand.
    at window.assertions.assertFunction (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/assert/js/assert.js:45:13)
    at get phetioState [as phetioState] (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/PhetioObject.js:316:15)
    at IOType.toStateObject [as toStateObjectOption] (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:468:36)
    at IOType.toStateObject (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:178:53)
    at IOType.toStateObject (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:178:102)
    at Emitter.getPhetioData (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/PhetioDataHandler.js:163:51)
    at Emitter.emit (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/Emitter.js:50:18)
    at Proxy.emitNotification (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/createObservableArray.js:113:15)
    at Proxy.push (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/createObservableArray.js:309:12)
    at http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/NumberPairsSceneModel.js:44:31
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at new NumberPairsSceneModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/NumberPairsSceneModel.js:43:7)
    at http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/DecompositionModel.js:36:22
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at new DecompositionModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/DecompositionModel.js:27:7)
    at new IntroModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/intro/model/IntroModel.js:22:5)
    at IntroScreen.createModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/intro/IntroScreen.js:25:17)
    at IntroScreen.initializeModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/joist/js/Screen.js:220:24)
[CONSOLE] continuous-test-error

id: "Sparky Node Puppeteer"
Snapshot from 9/25/2024, 12:33:10 PM

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

number-pairs : phet-io-record-fuzz : unbuilt
URL: http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/phet-io-wrappers/record/?sim=number-pairs&locales=*&phetioWrapperDebug=true&fuzz&phetioDebug=true&wrapperContinuousTest=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-record-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727290253193%7D
ERROR: Uncaught Error: Assertion failed: phetioState only accessible for instrumented objects in PhET-iO brand.
STACK: Error: Assertion failed: phetioState only accessible for instrumented objects in PhET-iO brand.
    at window.assertions.assertFunction (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/assert/js/assert.js:45:13)
    at assert (PhetioObject.ts:378:14)
    at phetioState (IOType.ts:699:36)
    at toStateObjectOption (IOType.ts:373:52)
    at toStateObject (IOType.ts:373:104)
    at toStateObject (PhetioDataHandler.ts:209:54)
    at getPhetioData (Emitter.ts:61:17)
    at emit (createObservableArray.ts:172:14)
    at emitNotification (createObservableArray.ts:399:11)
    at push (NumberPairsSceneModel.ts:60:30)
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at times (NumberPairsSceneModel.ts:59:6)
    at  (DecompositionModel.ts:57:21)
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at times (DecompositionModel.ts:46:6)
    at  (IntroModel.ts:35:4)
    at  (IntroScreen.ts:37:12)
    at createModel (Screen.ts:296:23)
====================
FULL LOG:
[URL] http://128.138.93.172/continuous-testing/aqua/html/wrapper-test.html?url=..%2F..%2Fct-snapshots%2F1727289190249%2Fphet-io-wrappers%2Frecord%2F%3Fsim%3Dnumber-pairs%26locales%3D*%26phetioWrapperDebug%3Dtrue%26fuzz%26phetioDebug%3Dtrue&duration=15000&testInfo=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-record-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727290253193%7D
[NAVIGATED] http://128.138.93.172/continuous-testing/aqua/html/wrapper-test.html?url=..%2F..%2Fct-snapshots%2F1727289190249%2Fphet-io-wrappers%2Frecord%2F%3Fsim%3Dnumber-pairs%26locales%3D*%26phetioWrapperDebug%3Dtrue%26fuzz%26phetioDebug%3Dtrue&duration=15000&testInfo=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-record-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727290253193%7D
[ATTACHED] 
[NAVIGATED] about:blank
[NAVIGATED] http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/phet-io-wrappers/record/?sim=number-pairs&locales=*&phetioWrapperDebug=true&fuzz&phetioDebug=true&wrapperContinuousTest=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-record-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727290253193%7D
[CONSOLE] enabling assert
[ATTACHED] 
[NAVIGATED] about:blank
[CONSOLE] Recorder initialized, sending data to:  JSHandle@array
[NAVIGATED] about:blank
[NAVIGATED] http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/number-pairs/number-pairs_en.html?brand=phet-io&ea&postMessageOnError&sim=number-pairs&locales=*&phetioWrapperDebug=true&fuzz&phetioDebug=true&wrapperContinuousTest=%7B%22test%22%3A%5B%22number-pairs%22%2C%22phet-io-record-fuzz%22%2C%22unbuilt%22%5D%2C%22snapshotName%22%3A%22snapshot-1727289190249%22%2C%22timestamp%22%3A1727290253193%7D
[CONSOLE] enabling assert
[CONSOLE] Assertion failed:  phetioState only accessible for instrumented objects in PhET-iO brand.
[CONSOLE] Debug info: {
  "seed": 0.6518626020420586,
  "currentScreenName": "HomeScreen"
}
[PAGE ERROR] Error: Error: Assertion failed: phetioState only accessible for instrumented objects in PhET-iO brand.
    at window.assertions.assertFunction (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/assert/js/assert.js:45:13)
    at get phetioState [as phetioState] (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/PhetioObject.js:316:15)
    at IOType.toStateObject [as toStateObjectOption] (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:468:36)
    at IOType.toStateObject (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:178:53)
    at IOType.toStateObject (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:178:102)
    at Emitter.getPhetioData (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/PhetioDataHandler.js:163:51)
    at Emitter.emit (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/Emitter.js:50:18)
    at Proxy.emitNotification (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/createObservableArray.js:113:15)
    at Proxy.push (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/createObservableArray.js:309:12)
    at http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/NumberPairsSceneModel.js:44:31
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at new NumberPairsSceneModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/NumberPairsSceneModel.js:43:7)
    at http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/DecompositionModel.js:36:22
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at new DecompositionModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/DecompositionModel.js:27:7)
    at new IntroModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/intro/model/IntroModel.js:22:5)
    at IntroScreen.createModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/intro/IntroScreen.js:25:17)
    at IntroScreen.initializeModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/joist/js/Screen.js:220:24)
[PAGE ERROR] Error: Error: Assertion failed: phetioState only accessible for instrumented objects in PhET-iO brand.
    at window.assertions.assertFunction (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/assert/js/assert.js:45:13)
    at get phetioState [as phetioState] (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/PhetioObject.js:316:15)
    at IOType.toStateObject [as toStateObjectOption] (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:468:36)
    at IOType.toStateObject (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:178:53)
    at IOType.toStateObject (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/types/IOType.js:178:102)
    at Emitter.getPhetioData (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/tandem/js/PhetioDataHandler.js:163:51)
    at Emitter.emit (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/Emitter.js:50:18)
    at Proxy.emitNotification (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/createObservableArray.js:113:15)
    at Proxy.push (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/axon/js/createObservableArray.js:309:12)
    at http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/NumberPairsSceneModel.js:44:31
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at new NumberPairsSceneModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/NumberPairsSceneModel.js:43:7)
    at http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/DecompositionModel.js:36:22
    at baseTimes (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:997:23)
    at Function.times (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/sherpa/lib/lodash-4.17.4.js:16095:20)
    at new DecompositionModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/common/model/DecompositionModel.js:27:7)
    at new IntroModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/intro/model/IntroModel.js:22:5)
    at IntroScreen.createModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/number-pairs/js/intro/IntroScreen.js:25:17)
    at IntroScreen.initializeModel (http://128.138.93.172/continuous-testing/ct-snapshots/1727289190249/chipper/dist/js/joist/js/Screen.js:220:24)
[CONSOLE] continuous-test-wrapper-error

id: "Sparky Node Puppeteer"
Snapshot from 9/25/2024, 12:33:10 PM
@pixelzoom
Copy link
Collaborator

pixelzoom commented Sep 30, 2024

This error is related to these ObservableArrays in NumberPairsSceneModel:

  public readonly leftAddendObjects: ObservableArray<CountingObject>;
  public readonly rightAddendObjects: ObservableArray<CountingObject>;

The stack trace indicates that this is failing at Emitter line 61:

    // Although this is not the idiomatic pattern (since it is guarded in the phetioStartEvent), this function is
    // called so many times that it is worth the optimization for PhET brand.
    Tandem.PHET_IO_ENABLED && this.isPhetioInstrumented() && this.phetioStartEvent( 'emitted', {
61    data: this.getPhetioData( ...args )
    } );

The ObservableArrays are indeed instrumented. But perhaps there's something in ObservableArray or Emitter that requires the elements of the array (CountingObject instances, in this case) to also be instrumented?

@pixelzoom
Copy link
Collaborator

pixelzoom commented Sep 30, 2024

Yes, it looks the elements of an ObservableArray also need to be instrumented.

@marlitas Below is a patch that instruments CountingObject. Note this temporary line of code in CountingObject.ts:

phetioState: false // until CountingObject has some state

Also noting that I did not commit this because I immediately hit other PhET-iO problems in Studio of the "required tandems must be supplied" variety.

patch
Subject: [PATCH] rename param to collides(), https://github.com/phetsims/models-of-the-hydrogen-atom/issues/68
---
Index: js/common/model/NumberPairsSceneModel.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/js/common/model/NumberPairsSceneModel.ts b/js/common/model/NumberPairsSceneModel.ts
--- a/js/common/model/NumberPairsSceneModel.ts	(revision 40fcf5346816fee6a050389f6d14162e1fe81fc1)
+++ b/js/common/model/NumberPairsSceneModel.ts	(date 1727707693508)
@@ -40,24 +40,29 @@
       numberType: 'Integer',
       tandem: tandem.createTandem( 'leftAddendNumberProperty' )
     } );
+
+    const leftAddendObjectsTandem = tandem.createTandem( 'leftAddendObjects' );
     this.leftAddendObjects = createObservableArray( {
       phetioType: ObservableArrayIO( CountingObject.CountingObjectIO ),
-      tandem: tandem.createTandem( 'leftAddendObjects' )
+      tandem: leftAddendObjectsTandem
     } );
 
     this.rightAddendNumberProperty = new DerivedProperty( [ this.leftAddendNumberProperty ], leftAddendValue => {
       return this.total - leftAddendValue;
     } );
+
+    const rightAddendObjectsTandem = tandem.createTandem( 'rightAddendObjects' );
     this.rightAddendObjects = createObservableArray( {
       phetioType: ObservableArrayIO( CountingObject.CountingObjectIO ),
-      tandem: tandem.createTandem( 'rightAddendObjects' )
+      tandem: rightAddendObjectsTandem
     } );
 
-    _.times( initialLeftAddendValue, () => {
-      this.leftAddendObjects.push( new CountingObject() );
+    _.times( initialLeftAddendValue, index => {
+      this.leftAddendObjects.push( new CountingObject( leftAddendObjectsTandem.createTandem( `leftAddendObject${index}` ) ) );
     } );
-    _.times( initialRightAddendValue, () => {
-      this.rightAddendObjects.push( new CountingObject() );
+
+    _.times( initialRightAddendValue, index => {
+      this.rightAddendObjects.push( new CountingObject( rightAddendObjectsTandem.createTandem( `rightAddendObject${index}` ) ) );
     } );
 
     assert && assert( this.leftAddendObjects.length + this.rightAddendObjects.length === this.total, 'leftAddendObjects.length + rightAddendObjects.length should equal total' );
Index: js/common/model/CountingObject.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/js/common/model/CountingObject.ts b/js/common/model/CountingObject.ts
--- a/js/common/model/CountingObject.ts	(revision 40fcf5346816fee6a050389f6d14162e1fe81fc1)
+++ b/js/common/model/CountingObject.ts	(date 1727707800781)
@@ -9,13 +9,17 @@
 import PhetioObject from '../../../../tandem/js/PhetioObject.js';
 import numberPairs from '../../numberPairs.js';
 import IOType from '../../../../tandem/js/types/IOType.js';
+import Tandem from '../../../../tandem/js/Tandem.js';
 
 
 // We will probably need this to be a PhET-iO CountingObject for Group Sort later on.
 export default class CountingObject extends PhetioObject {
 
-  public constructor() {
-   super();
+  public constructor( tandem: Tandem ) {
+   super( {
+     tandem: tandem,
+     phetioState: false // until CountingObject has some state
+   } );
   }
 
   public static CountingObjectIO = new IOType( 'CountingObjectIO', {

@pixelzoom pixelzoom removed their assignment Sep 30, 2024
@marlitas
Copy link
Contributor

I am going to disable phet-io state testing on CT until more work has been done in this sim. It's not at a good place to be playing whac-a-mole with any state wrappers right now, nor is it worth it until more work has been done. I'll make sure that I am testing phet-io brand to ensure tandems are supplied as needed to address some of the required tandems must be supplied errors @pixelzoom was encountering.

@marlitas
Copy link
Contributor

marlitas commented Oct 2, 2024

I have added in all the necessary tandems for the sim. I am going to close this issue as it is now covered by #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants