-
Notifications
You must be signed in to change notification settings - Fork 5
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
CT: Assertion failure in kite.BoundsIntersection.intersect #177
Comments
I played around with this for a bit and was able to get it to happen manually a few times, but it's not easy. Below is a screenshot of one of these trials. To duplicate, set the sim's controls up as shown and move the pencil around a bunch. It took me about five or ten minutes and a lot of movement, and I didn't notice any particular pattern. When I looked at the stack trace, I noticed that there is a call to this.shapeProperty = new DerivedProperty( [
screenPositionProperty,
optic.positionProperty,
optic.diameterProperty,
targetPositionProperty ],
( screenPosition, opticPosition, opticDiameter, targetPosition ) => {
if ( screenPosition.x === 200 && screenPosition.y === 0 &&
opticPosition.x === 0 && opticPosition.y === 0 &&
targetPosition.x < -60 && targetPosition.x > -80 &&
targetPosition.y < 120 & targetPosition.y > 100
) {
targetPosition.x = -68.18783218424616;
targetPosition.y = 110.31233303003494;
}
return this.getIntersection( screenPosition, opticPosition, opticDiameter, targetPosition );
} ); With this code in place, if the user moves the pencil to the position shown in the image above, the problem will occur every time. @jonathanolson - The point where the assertion is thrown is several layers deep in some of the kite repo code, and is unfamiliar territory to me. The line of code is:
I dumped the value of |
@arouinfar should this be addressed for the prototype? I have not investigated whether it causes the sim to crash in practice. |
This is a duplicate of #156. That issue contains more info, so I'll close this one. |
The text was updated successfully, but these errors were encountered: