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

Assertion failed: parallel system is too tall #47

Closed
phet-steele opened this issue Oct 25, 2017 · 10 comments
Closed

Assertion failed: parallel system is too tall #47

phet-steele opened this issue Oct 25, 2017 · 10 comments

Comments

@phet-steele
Copy link

Happens on load (master)

Error: Assertion failed: parallel system is too tall
    at window.assertions.assertFunction (https://bayes.colorado.edu/continuous-testing/snapshot-1508945010642/assert/js/assert.js:22:13)
    at new SystemsScreenView (https://bayes.colorado.edu/continuous-testing/snapshot-1508945010642/hookes-law/js/systems/view/SystemsScreenView.js?bust=1508946234969:70:15)
    at SystemsScreen.createView (https://bayes.colorado.edu/continuous-testing/snapshot-1508945010642/hookes-law/js/systems/SystemsScreen.js?bust=1508946234969:35:34)
    at SystemsScreen.initializeView (https://bayes.colorado.edu/continuous-testing/snapshot-1508945010642/joist/js/Screen.js?bust=1508946234969:223:25)
    at Array.<anonymous> (https://bayes.colorado.edu/continuous-testing/snapshot-1508945010642/joist/js/Sim.js?bust=1508946234969:677:18)
    at https://bayes.colorado.edu/continuous-testing/snapshot-1508945010642/joist/js/Sim.js?bust=1508946234969:685:27
@pixelzoom
Copy link
Contributor

pixelzoom commented Oct 25, 2017

There have been no changes to this sim for a long time, so I suspect that a common code change is the culprit. I first tested with my working copy, which was pulled yesterday - no problem. I then ran pull-all.sh and retested, and reproduced the problem.

pull-all.sh changed these common-code repos in my working copy:
axon
dot
joist
scenery
scenery-phet
sun

One of them is the culprit.

@pixelzoom
Copy link
Contributor

pixelzoom commented Oct 25, 2017

Here's a screenshot that shows what the assertion is detecting - the bottom-left control panel is now outside the layoutBounds.

screenshot_411

@pixelzoom
Copy link
Contributor

pixelzoom commented Oct 25, 2017

I asked about this on the Slack developer channel. @zepumph pointed me to a11y changes in HSlider (in sun).

@pixelzoom
Copy link
Contributor

The breaking change was to HSlider in phetsims/sun@f309a64. The nature of the change and reason for the break was discussed in Slack:

Chris Malley [11:15 AM] 
why would a11y change the control panel size?
Michael Kauzmann [11:16 AM] 
@jessegreenberg and I updated that way that HSlider's focusHighlight works, so that it is actually a node in an HSlider, therefore the bounds are calculated around it, and the focusHighlight goes outside the old bounds.
Chris Malley [11:17 AM] 
not cool.
Michael Kauzmann [11:17 AM] 
I'll revert and we will figure something else out.
Chris Malley [11:18 AM] 
anytime you change default options, or especially do something that can affect bounds, in common code, a full regression test is needed.
Michael Kauzmann [11:18 AM] 
Sounds good. Sorry about that!
Jesse Greenberg [11:19 AM] 
Yes, sorry about that, we will come up with something else.
Michael Kauzmann [11:19 AM] 
pull sun and confirm fix?
Chris Malley [11:20 AM] 
Ah… So this affected the bounds of all HSliders?
Michael Kauzmann [11:20 AM] 
yes
Chris Malley [11:20 AM] 
yikes
Michael Kauzmann [11:20 AM] 
in retrospect very dangerous indeed.

@pixelzoom
Copy link
Contributor

Apparently reverting HSlider didn't fix it. The control panels are now less tall, but still taller than they were as some point yesterday.

screenshot_412

@pixelzoom
Copy link
Contributor

Breaking changes were also made to NumberControl. Relevant Slack discussion:

Michael Kauzmann [11:25 AM] 
We added a node to NumberControl too. Reverting
Chris Malley [11:26 AM] 
Was this pattern applied to any other controls?  I want to make sure we’re not fixing 1 of N problems.
Michael Kauzmann [11:27 AM] 
I don't believe so. This was a very custom case, most of the time focusHighlight is handled in an overlay, and has nothing to do with the node.

@zepumph
Copy link
Member

zepumph commented Oct 25, 2017

Issue that breaking changes were made for: phetsims/scenery-phet#341

@pixelzoom
Copy link
Contributor

pixelzoom commented Oct 25, 2017

Verified that the assertion failure is gone, everything is inside layoutBounds, and the layout now matches the published version:

screenshot_413

@pixelzoom
Copy link
Contributor

pixelzoom commented Oct 25, 2017

I’ve noted this issue in the commits that reverted HSlider and NumberControl.

@phet-steele please verify after pulling sun and scenery-phet.

@phet-steele
Copy link
Author

Verified!

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