internal Error:DangLing contact graph pointers detected.(c)

Discuss any Chipmunk bugs here.
Post Reply
watsonwan
Posts: 1
Joined: Sat Apr 26, 2014 1:43 am
Contact:

internal Error:DangLing contact graph pointers detected.(c)

Post by watsonwan »

I'm using chipmunk for cocos2d-x jsbinding.

Xcode has printed error messages :

Aborting due to Chipmunk error:internal Error:DangLing contact graph pointers detected.(c)
Failed confition:next == NULL|| cpArbiterThreadForBody(next,body)->prev==NULL
Source:/user/pcname/Documents/cocos2d-x/external/chipmunk/src/cpSpaceComponent.c:166
o-simon
Posts: 5
Joined: Thu Jun 19, 2014 1:26 am
Contact:

Re: internal Error:DangLing contact graph pointers detected.

Post by o-simon »

I got the same error. Here's how to reproduce it:

Create a space with no gravity.
Set sleeping time to 10.0.
Create a rectangle.
Create a circle.
Set impulse to circle so it heads towards the rectangle.
The circle bounces off the rectangle.
When the circle is far enough reset it. That is, set the position to its initial position, set velocity to zero, set impulse so it heads towards the rectangle.
When the circle hits the rectangle a second time I get:

Internal Error:DangLing contact graph pointers detected. (C)

Should I call a function after resetting the circle?
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests