phetsims / vegas

Reusable game components for PhET simulations.
MIT License
1 stars 4 forks source link

CT cannot read property phetioEngine of undefined #78

Closed KatieWoe closed 4 years ago

KatieWoe commented 4 years ago
vegas : fuzz : built : load
Query: fuzz&memoryLimit=1000
Uncaught TypeError: Cannot read property 'phetioEngine' of undefined
TypeError: Cannot read property 'phetioEngine' of undefined
    at new e (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/build/phet/vegas_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:977:1079591)
    at new e (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/build/phet/vegas_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:977:1082442)
    at e.a.name [as createView] (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/build/phet/vegas_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:977:1334431)
    at e.initializeView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/build/phet/vegas_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:977:1088956)
    at Array.<anonymous> (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/build/phet/vegas_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:977:1328848)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/build/phet/vegas_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:977:1329075
id: Bayes Chrome
Approximately 2/14/2020, 5:11:45 AM
vegas : fuzz : built : run
Query: fuzz&memoryLimit=1000
Uncaught TypeError: Cannot read property 'phetioEngine' of undefined
TypeError: Cannot read property 'phetioEngine' of undefined
    at new e (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/build/phet/vegas_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:977:1079591)
    at new e (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/build/phet/vegas_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:977:1082442)
    at e.a.name [as createView] (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/build/phet/vegas_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:977:1334431)
    at e.initializeView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/build/phet/vegas_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:977:1088956)
    at Array.<anonymous> (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/build/phet/vegas_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:977:1328848)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/build/phet/vegas_en_phet.html?postMessageOnLoad&postMessageOnError&postMessageOnBeforeUnload&fuzz&memoryLimit=1000:977:1329075
id: Bayes Chrome
Approximately 2/14/2020, 5:11:45 AM
vegas : fuzz : require.js : load
Query: brand=phet&ea&fuzz&memoryLimit=1000
Uncaught TypeError: Cannot read property 'phetioEngine' of undefined
TypeError: Cannot read property 'phetioEngine' of undefined
    at new RewardNode (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/RewardNode.js?bust=1581694424850:108:22)
    at new RewardScreenView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/demo/RewardScreenView.js?bust=1581694424850:29:23)
    at Screen.name [as createView] (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/vegas-main.js?bust=1581694424850:56:36)
    at Screen.initializeView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Screen.js?bust=1581694424850:267:25)
    at Array.<anonymous> (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Sim.js?bust=1581694424850:835:18)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Sim.js?bust=1581694424850:854:27
id: Bayes Chrome
Approximately 2/14/2020, 5:11:45 AM
vegas : fuzz : require.js : run
Query: brand=phet&ea&fuzz&memoryLimit=1000
Uncaught TypeError: Cannot read property 'phetioEngine' of undefined
TypeError: Cannot read property 'phetioEngine' of undefined
    at new RewardNode (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/RewardNode.js?bust=1581694424850:108:22)
    at new RewardScreenView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/demo/RewardScreenView.js?bust=1581694424850:29:23)
    at Screen.name [as createView] (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/vegas-main.js?bust=1581694424850:56:36)
    at Screen.initializeView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Screen.js?bust=1581694424850:267:25)
    at Array.<anonymous> (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Sim.js?bust=1581694424850:835:18)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Sim.js?bust=1581694424850:854:27
id: Bayes Chrome
Approximately 2/14/2020, 5:11:45 AM
vegas : xss-fuzz : load
Query: brand=phet&ea&fuzz&stringTest=xss&memoryLimit=1000
Uncaught TypeError: Cannot read property 'phetioEngine' of undefined
TypeError: Cannot read property 'phetioEngine' of undefined
    at new RewardNode (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/RewardNode.js?bust=1581685665662:108:22)
    at new RewardScreenView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/demo/RewardScreenView.js?bust=1581685665662:29:23)
    at Screen.name [as createView] (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/vegas-main.js?bust=1581685665662:56:36)
    at Screen.initializeView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Screen.js?bust=1581685665662:267:25)
    at Array.<anonymous> (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Sim.js?bust=1581685665662:835:18)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Sim.js?bust=1581685665662:854:27
id: Bayes Chrome
Approximately 2/14/2020, 5:11:45 AM
vegas : xss-fuzz : load
Query: brand=phet&ea&fuzz&stringTest=xss&memoryLimit=1000
Uncaught TypeError: Cannot read property 'phetioEngine' of undefined
TypeError: Cannot read property 'phetioEngine' of undefined
    at new RewardNode (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/RewardNode.js?bust=1581695345818:108:22)
    at new RewardScreenView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/demo/RewardScreenView.js?bust=1581695345818:29:23)
    at Screen.name [as createView] (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/vegas-main.js?bust=1581695345818:56:36)
    at Screen.initializeView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Screen.js?bust=1581695345818:267:25)
    at Array.<anonymous> (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Sim.js?bust=1581695345818:835:18)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Sim.js?bust=1581695345818:854:27
id: Bayes Chrome
Approximately 2/14/2020, 5:11:45 AM
vegas : xss-fuzz : run
Query: brand=phet&ea&fuzz&stringTest=xss&memoryLimit=1000
Uncaught TypeError: Cannot read property 'phetioEngine' of undefined
TypeError: Cannot read property 'phetioEngine' of undefined
    at new RewardNode (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/RewardNode.js?bust=1581685665662:108:22)
    at new RewardScreenView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/demo/RewardScreenView.js?bust=1581685665662:29:23)
    at Screen.name [as createView] (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/vegas-main.js?bust=1581685665662:56:36)
    at Screen.initializeView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Screen.js?bust=1581685665662:267:25)
    at Array.<anonymous> (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Sim.js?bust=1581685665662:835:18)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Sim.js?bust=1581685665662:854:27
id: Bayes Chrome
Approximately 2/14/2020, 5:11:45 AM
vegas : xss-fuzz : run
Query: brand=phet&ea&fuzz&stringTest=xss&memoryLimit=1000
Uncaught TypeError: Cannot read property 'phetioEngine' of undefined
TypeError: Cannot read property 'phetioEngine' of undefined
    at new RewardNode (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/RewardNode.js?bust=1581695345818:108:22)
    at new RewardScreenView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/demo/RewardScreenView.js?bust=1581695345818:29:23)
    at Screen.name [as createView] (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/vegas/js/vegas-main.js?bust=1581695345818:56:36)
    at Screen.initializeView (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Screen.js?bust=1581695345818:267:25)
    at Array.<anonymous> (https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Sim.js?bust=1581695345818:835:18)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1581682305169/joist/js/Sim.js?bust=1581695345818:854:27
id: Bayes Chrome
Approximately 2/14/2020, 5:11:45 AM
zepumph commented 4 years ago

Related to https://github.com/phetsims/phet-io/issues/1619, this was a case where we couldn't just covert to calling the phetioEngine global because this code needed to support phet brand too. Fixed above. Closing