[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Chipmunk Physics • View topic - cpSpaceRemoveShape / cpSpaceRemoveBody order sleeping compon

cpSpaceRemoveShape / cpSpaceRemoveBody order sleeping compon

Discuss any Chipmunk bugs here.

cpSpaceRemoveShape / cpSpaceRemoveBody order sleeping compon

Postby pat » Sat Sep 25, 2010 5:40 am

User avatar
pat
 
Posts: 53
Joined: Tue Jul 20, 2010 7:55 pm

Re: cpSpaceRemoveShape / cpSpaceRemoveBody order sleeping compon

Postby pat » Thu Sep 30, 2010 4:27 am

So i guess that didn't fix it. But it happens less now.

It seems like activating the node doesn't clear out parent?

Heres the call stack, of where the crash begins as far as i can tell
Image
User avatar
pat
 
Posts: 53
Joined: Tue Jul 20, 2010 7:55 pm

Re: cpSpaceRemoveShape / cpSpaceRemoveBody order sleeping compon

Postby slembcke » Thu Sep 30, 2010 11:06 am

Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: cpSpaceRemoveShape / cpSpaceRemoveBody order sleeping compon

Postby pat » Thu Sep 30, 2010 12:18 pm

\o/

I'll give it a shot, I tried doing it on my own by checking if the parent was in the bodies array or not. but then i ended up getting things in the body array twice.

And yea your right about the whats happening, the body is a data member, not a pointer. So yea it gets freed with the object (after getting removed appropriately of course)

Thanks for taking the time to look at this though, really appreciate it.
User avatar
pat
 
Posts: 53
Joined: Tue Jul 20, 2010 7:55 pm

Re: cpSpaceRemoveShape / cpSpaceRemoveBody order sleeping compon

Postby pat » Fri Oct 01, 2010 10:19 am

Just a follow up, This fixed it. Though now i can't point query sensor shapes lol, i saw the other thread though. Really only need this for editor, so when in editor mode ill just set things that should be sensors as not sensors.
User avatar
pat
 
Posts: 53
Joined: Tue Jul 20, 2010 7:55 pm

Re: cpSpaceRemoveShape / cpSpaceRemoveBody order sleeping compon

Postby slembcke » Fri Oct 01, 2010 1:36 pm

Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: cpSpaceRemoveShape / cpSpaceRemoveBody order sleeping compon

Postby pat » Fri Oct 01, 2010 6:46 pm

Cool, I'll use that then in the editor. Thanks
User avatar
pat
 
Posts: 53
Joined: Tue Jul 20, 2010 7:55 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests