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

[1.5.6-phetio] Precipitation particles are failing to be saved in state #228

Closed
phet-steele opened this issue Jun 7, 2018 · 10 comments
Closed

Comments

@phet-steele
Copy link
Contributor

@samreid I could have sworn there was an issue about this somewhere at some point, so I think this is a regression and sorry in advance for the duplication.

In BLL 1.5.6-phetio instance-proxies:

  1. Concentration screen
  2. Shake some particles
  3. Evaporate until there is precipitation
  4. Press "Launch"

The launched sim will not have any precipitation and will throw this error:

TypeError: Cannot read property 'constructor' of undefined
    at Object.getType (beers-law-lab_en-phetio.html?sim=beers-law-lab&phet-io.emitStates=false&phet-io.emitInputEvents=false&sim=beers-law-lab:979)
    at Object.A [as setState] (beers-law-lab_en-phetio.html?sim=beers-law-lab&phet-io.emitStates=false&phet-io.emitInputEvents=false&sim=beers-law-lab:979)
    at TPhETIO.implementation [as setState] (beers-law-lab_en-phetio.html?sim=beers-law-lab&phet-io.emitStates=false&phet-io.emitInputEvents=false&sim=beers-law-lab:1012)
    at Object.invoke (beers-law-lab_en-phetio.html?sim=beers-law-lab&phet-io.emitStates=false&phet-io.emitInputEvents=false&sim=beers-law-lab:1011)
    at Object.handleRequest (beers-law-lab_en-phetio.html?sim=beers-law-lab&phet-io.emitStates=false&phet-io.emitInputEvents=false&sim=beers-law-lab:1011)
    at beers-law-lab_en-phetio.html?sim=beers-law-lab&phet-io.emitStates=false&phet-io.emitInputEvents=false&sim=beers-law-lab:1011

The State wrapper is also revealing, but confusing. Run the State wrapper and shake some particles and you'll see what I mean.

And here's my little checklist table thing:

Problem in 1.5.5-phetio? Yes
Problem in master? No, but master isn't perfect either

Seen on macOS 10.13.4 Chrome. For phetsims/qa/issues/128.

@phet-steele
Copy link
Contributor Author

The State wrapper is also revealing, but confusing. Run the State wrapper and shake some particles and you'll see what I mean.

Details at phetsims/phet-io/issues/1330.

@zepumph
Copy link
Member

zepumph commented Jun 7, 2018

If the problem is in the most recent production version ( 1.5.5-phetio) then we will likely not fix this for the maintenance release. PhET-iO is in beta, and it was definitely in beta when 1.5.5-phetio was released, so since we haven't heard complaints from partners about this bug, I think the goal is to focus energy on moving phet-io forward. @samreid what do you think?

@JRomero0613
Copy link

I have noticed that along with the particles failing to be saved by the state that when in the state wrapper the PhET menu is not copied to the smaller simulation. This issue is present in version 1.5.5, 1.5.6 both RC and Production, 1.6.4, and master. For versions 1.5.5, 1.5.6, and 1.6.4 the copied screen does not dim as if the menu is popping up, it does in master which is where the attached screenshot comes from.
bll_state_phet_menu

@phet-steele
Copy link
Contributor Author

I have noticed that along with the particles failing to be saved by the state that when in the state wrapper the PhET menu is not copied to the smaller simulation.

@JRomero0613 great that you noticed, but this is expected in the State wrapper (although it would be a problem in the Mirror Inputs wrapper).

@samreid
Copy link
Member

samreid commented Jun 8, 2018

but this is expected in the State wrapper (although it would be a problem in the Mirror Inputs wrapper).

To elaborate, we decided this is a "transient" behavior that should not be saved/loaded.

@JRomero0613
Copy link

Okay, I have just checked all versions mentioned above in the mirror inputs wrapper and they all function properly

@zepumph
Copy link
Member

zepumph commented Jun 8, 2018

Can this issue be closed then?

@phet-steele
Copy link
Contributor Author

Can this issue be closed then?

No. It's still an issue, even if it does not get fixed right away.

@samreid
Copy link
Member

samreid commented Jun 11, 2018

I reproduced the problem in 1.5.6-phetio, not planning on solving it in the branch, unless I hear otherwise. Good to know though, in case our clients run into it. Unassigning for now.

@pixelzoom
Copy link
Contributor

The issue of what precipitate state to save/restore will be addressed in #230 (redesign PhET-iO API).
So I doubt that we will ever address this in the 1.5-phetio branch. @samreid can this issue be closed with "won't fix" ?

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

5 participants