Physics related Javascript Error

Bugs will be moved here once resolved.

Post » Sun Apr 05, 2015 12:50 am

Problem Description
When main object reaches finish line, click to restart level causes error.

Attach a Capx
https://dl.dropboxusercontent.com/u/251 ... error.capx

Description of Capx
ball moves left right using left/right arrow keys based on physics movements.

Steps to Reproduce Bug
  • press right key
  • go past the sign on right
  • click "try again"

Observed Result
Javascript error!
abort() at Error: 0
at c ( http://localhost:50000/Physics_behavior.js:7:15 )
at fb ( http://localhost:50000/Physics_behavior.js:31:51 )
at ua ( http://localhost:50000/Physics_behavior.js:417:45 )
at gI ( http://localhost:50000/Physics_behavior.js:196:73506 )
at ry ( http://localhost:50000/Physics_behavior.js:192:84949 )
at Gh ( http://localhost:50000/Physics_behavior.js:184:47109 )
at F.prototype.DestroyJoint ( http://localhost:50000/Physics_behavior.js:669:281 )
at behinstProto.onInstanceDestroyed ( http://localhost:50000/Physics_behavior.js:1449:5 )
at myDestroyCallback ( http://localhost:50000/Physics_behavior.js:1321:14 )
at Runtime.prototype.ClearDeathRowForSingleInstance ( http://localhost:50000/preview.js:2773:4 )
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
http://localhost:50000/Physics_behavior.js , line 7 (col 15)

Image

Expected Result
It should restart the layout.

Affected Browsers
  • Chrome: YES
  • FireFox: Unsure.
  • Internet Explorer: YES

Operating System and Service Pack
Tested using both Windows 8.1 Pro and Mac OSX 10.10.2

Construct 2 Version ID
2 r 201

Additional Notes
This capx used to work without error on previous versions of Construct 2.
I think this is related to "Disable Physics" for the ball. If you toggle disable "DIsable physics" on the ball event, it will work.
Play Ball Walker App Store | Google Play | Amazon



Image
B
27
S
5
Posts: 101
Reputation: 1,973

Post » Mon Apr 06, 2015 1:26 am

Interesting.... If you don't set physics disabled on the player objects then this bug does not happen....
B
68
S
17
G
65
Posts: 2,185
Reputation: 41,310

Post » Wed Apr 08, 2015 12:44 am

Exactly. BUT this used to work in a previous version of Construct 2. Can't recall which version though. I hope someone can help.
Play Ball Walker App Store | Google Play | Amazon



Image
B
27
S
5
Posts: 101
Reputation: 1,973

Post » Mon Apr 13, 2015 1:35 pm

Thanks for the report, this should be fixed in the next beta.
Scirra Founder
B
378
S
220
G
84
Posts: 23,868
Reputation: 188,111

Post » Mon Apr 13, 2015 2:01 pm

Excellent! Looking forward to the next beta. Thanks Ashley.
Play Ball Walker App Store | Google Play | Amazon



Image
B
27
S
5
Posts: 101
Reputation: 1,973


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests