Closed pixelzoom closed 6 years ago
This was broken by @jessegreenberg on 10/27/17 in https://github.com/phetsims/plinko-probability/commit/e1a13e89815fcfe5c3067994d90daa80ee7a7c19 while adding keyboard navigation (#14). LabPlayPanel setPlayButtonVisible
was for some reason deleted, but is still called in LabScreenView when the "out of balls" condition occurs. So when the limit is exceed, the sim is calling a function that no longer exists.
Version 1.1.2 on the PhET website was published on 7/10/2017, so production version is not affected.
Assigning to @jessegreenberg.
Self-assigning since I'm listed as the responsible developer for this sim.
I'm going to fix this and have @jessegreenberg review it.
In addition to the missing setPlayButtonVisible
function.... There was no need for the togglePlayPauseButtonVisibility
, and no need for playButton
and pauseButton
to be instance properties, and playButtonVisibleProperty
should have been a BooleanProperty
. Fixed all of this in the above commit. @jessegreenberg please review.
Thanks @pixelzoom, very sorry about that. The break in https://github.com/phetsims/plinko-probability/commit/e1a13e89815fcfe5c3067994d90daa80ee7a7c19 came from using ToggleNode
instead of setPlayButtonVisible
. The other changes in https://github.com/phetsims/plinko-probability/issues/108#issuecomment-376270869 should have been done at the same time. I reviewed https://github.com/phetsims/plinko-probability/commit/12df5bd0e2413b538f6561a72bda6eccd94623d7 and verified problem is fixed and sim is working. Closing.
The sim crashes when the "max balls" limit is reached in the Lab screen. This problem is almost certainly independent of platform, but was noticed on master with Chrome 65 on macOS.
To reproduce:
?maxBallsLab=10
(no additional info with?ea
)More info:
Query parameter
maxBallsLab
was added to test the "Out of Balls" dialog. From PlinkoProbabilityQueryParameters.js:Running with
maxBallsLab=10
andmaxBallsLab=100
, I experience the same failure described above. So I suspect that the same failure will occur without settingmaxBallsLab
query parameter. And that means that the production sim will (eventually) crash when this limit is reached.Assigning to @ariel-phet to prioritize and assign.