{"action":"created","issue":{"url":"https://api.github.com/repos/phetsims/hookes-law/issues/52","repository_url":"https://api.github.com/repos/phetsims/hookes-law","labels_url":"https://api.github.com/repos/phetsims/hookes-law/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/phetsims/hookes-law/issues/52/comments","events_url":"https://api.github.com/repos/phetsims/hookes-law/issues/52/events","html_url":"https://github.com/phetsims/hookes-law/issues/52","id":330478356,"node_id":"MDU6SXNzdWUzMzA0NzgzNTY=","number":52,"title":"Assertion failed: cannot start event while event is in progress","user":{"login":"pixelzoom","id":3046552,"node_id":"MDQ6VXNlcjMwNDY1NTI=","avatar_url":"https://avatars1.githubusercontent.com/u/3046552?v=4","gravatar_id":"","url":"https://api.github.com/users/pixelzoom","html_url":"https://github.com/pixelzoom","followers_url":"https://api.github.com/users/pixelzoom/followers","following_url":"https://api.github.com/users/pixelzoom/following{/other_user}","gists_url":"https://api.github.com/users/pixelzoom/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelzoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelzoom/subscriptions","organizations_url":"https://api.github.com/users/pixelzoom/orgs","repos_url":"https://api.github.com/users/pixelzoom/repos","events_url":"https://api.github.com/users/pixelzoom/events{/privacy}","received_events_url":"https://api.github.com/users/pixelzoom/received_events","type":"User","site_admin":false},"labels":[{"id":831885424,"node_id":"MDU6TGFiZWw4MzE4ODU0MjQ=","url":"https://api.github.com/repos/phetsims/hookes-law/labels/design:phet-io","name":"design:phet-io","color":"1FFFFF","default":false},{"id":195552252,"node_id":"MDU6TGFiZWwxOTU1NTIyNTI=","url":"https://api.github.com/repos/phetsims/hookes-law/labels/type:bug","name":"type:bug","color":"FF00AA","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-08T00:18:23Z","updated_at":"2018-06-09T22:48:48Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Related to #38.\r\n\r\nIn `console: colorized` phet-io wrapper, there's a cycle happening when the robotic arm is dragged.  This results in `\"Assertion failed: cannot start event while event is in progress\"`.\r\n\r\nHere's the relevant code in SingleSpringSystem, and there's a similar problem in SeriesSystem and ParallelSystem.\r\n\r\n```js\r\n    // Connect arm to spring.\r\n    this.spring.rightProperty.link( function( right ) {\r\n       self.roboticArm.leftProperty.set( right );\r\n    } );\r\n\r\n    // Robotic arm sets displacement of spring.\r\n    this.roboticArm.leftProperty.link( function( left ) {\r\n      self.spring.displacementProperty.set( left - self.spring.equilibriumXProperty.get() );\r\n    } );\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/phetsims/hookes-law/issues/comments/396004172","html_url":"https://github.com/phetsims/hookes-law/issues/52#issuecomment-396004172","issue_url":"https://api.github.com/repos/phetsims/hookes-law/issues/52","id":396004172,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjAwNDE3Mg==","user":{"login":"samreid","id":679486,"node_id":"MDQ6VXNlcjY3OTQ4Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/679486?v=4","gravatar_id":"","url":"https://api.github.com/users/samreid","html_url":"https://github.com/samreid","followers_url":"https://api.github.com/users/samreid/followers","following_url":"https://api.github.com/users/samreid/following{/other_user}","gists_url":"https://api.github.com/users/samreid/gists{/gist_id}","starred_url":"https://api.github.com/users/samreid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samreid/subscriptions","organizations_url":"https://api.github.com/users/samreid/orgs","repos_url":"https://api.github.com/users/samreid/repos","events_url":"https://api.github.com/users/samreid/events{/privacy}","received_events_url":"https://api.github.com/users/samreid/received_events","type":"User","site_admin":false},"created_at":"2018-06-09T22:48:48Z","updated_at":"2018-06-09T22:48:48Z","author_association":"MEMBER","body":"It looks like it could be caused by rounding:\r\n\r\n```\r\nsetting spring displacement from robotic arm: 0.17399999999999993\r\nsetting displacement to f/k = 0.175\r\n```"}}
{"actor":{"display_login":"samreid"}}