-
Notifications
You must be signed in to change notification settings - Fork 6
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
Legends of Learning message log changes sim state #515
Comments
Another example from phetsims/qa/issues/181 |
While doing some debugging with @jonathanolson we noticed that LegendsOfLearningSupport.js wrapper bugs at line 27. It seems to be sending a "pause" message when opening message logs. Should we be sending “pause” message when we didn’t actually pause in the wrapper? We opened the log so perhaps a "view log" message should be triggered as a separate event? |
@ariel-phet is this a blocking issue? |
Adding blocking label to flag and as a reminder to bring up during meeting, I am not sure if this needs to be fixed before the next RC for phetsims/qa#181. |
Seems blocking'ish to me (but might be something to report to LoL and not necessarily fix on our side) |
We discussed this at dev meeting on 9/20/18 - We think this is a problem with the LoL test harness. @arouinfar it sounded like you were the point person for LoL, could you please reach out to them and let them know that there may be a bug in the test harness where opening the message log sends a second "pause" message when the app is already paused? Sorry if you aren't the right person for this, if that is the case please reassign to me and we can talk with @kathy-phet about next steps. This issue doesn't need to block publication. |
@jessegreenberg my only contact at LoL is a content manager, not a dev. I can certainly send him a link to this issue, and ask him to forward it to the appropriate dev. Before I do that, it would good to hear from @kathy-phet or @samreid, in case they know of an appropriate dev who I can contact directly. |
I've drafted an email to LoL. I'll check with @kathy-phet this afternoon to see who she recommends I send it to. |
@kathy-phet said she would reach out to LoL about this issue, so unassigning myself and @samreid. |
This was recently reported again in #675. It still seems like a bug in the LoL test harness. But in #675 I said
That may stop the move forward on our end if this is important. |
The additional frame was introduced in phetsims/pendulum-lab#187. But maybe we can work around the problem in this issue by skipping the frame when "pause" is called on an already "paused" sim. Like so: Index: js/thirdPartySupport/LegendsOfLearningSupport.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- js/thirdPartySupport/LegendsOfLearningSupport.js (revision 39712126e23f03fa6500ee3b85525f71026b4cec)
+++ js/thirdPartySupport/LegendsOfLearningSupport.js (date 1604339397761)
@@ -24,8 +24,10 @@
// Respond to pause/resume commands from the Legends of Learning platform
window.addEventListener( 'message', function( message ) {
if ( message.data.messageName === 'pause' ) {
- sim.stepOneFrame();
- sim.activeProperty.value = false;
+ if ( sim.activeProperty.value ) {
+ sim.stepOneFrame();
+ sim.activeProperty.value = false;
+ }
}
else if ( message.data.messageName === 'resume' ) {
sim.activeProperty.value = true; @jessegreenberg what do you think? |
This was also reported in phetsims/qa#562 and phetsims/qa#565. |
Devices
Dell and HP laptop
OS
Win 10 and Win 7
Browser
Chrome and Firefox
Problem Description
For phetsims/qa/issues/180
First documented in phetsims/masses-and-springs/issues/324
Pausing the sim with LoL and using the "message log" changes the state of the sim.
Steps to Reproduce
Screenshots
The text was updated successfully, but these errors were encountered: