[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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/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 - Segment Query issue with Chipmunk Pro 6

Segment Query issue with Chipmunk Pro 6

Official forum for the .

Segment Query issue with Chipmunk Pro 6

Postby RodMath » Sat Jul 09, 2011 10:04 am

RodMath
 
Posts: 17
Joined: Sun May 09, 2010 2:48 pm

Re: Segment Query issue with Chipmunk Pro 6

Postby slembcke » Mon Jul 11, 2011 1:33 pm

Hey, sorry I was gone for the weekend.

I'm not sure how to reproduce the crash. Could you give me a more specific stack trace or some more information on how to replicate it?
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: Segment Query issue with Chipmunk Pro 6

Postby RodMath » Tue Jul 12, 2011 4:36 am

No worries - I'm away from my computer for the next few days but will post back some more info when I get the chance.

As to how to replicate it, theoretically just create a space with a bunch of shapes in different layers and groups (that may not even be necessary) and do a segment query between two points. The query then works on the simulator but not on the device.

I know that sounds very basic, but that's effectively all I'm doing. Which has just made me wonder if perhaps my segment query is starting inside a shape, which is undefined, and the simulator handles the undefined silently while the device crashes out.... hmmm

As I say, when I get the chance I'll check that out and post back here.

Thanks
RodMath
 
Posts: 17
Joined: Sun May 09, 2010 2:48 pm

Re: Segment Query issue with Chipmunk Pro 6

Postby slembcke » Tue Jul 12, 2011 9:39 am

Hmm. That sounds a lot like a memory bug. It's possible that you might be over-releasing an object that is still added to the space or I might have forgotten a retain call somewhere. I'll look into it more on my end. See if I can get the unit tests to run under Valgrind.
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: Segment Query issue with Chipmunk Pro 6

Postby RodMath » Tue Jul 12, 2011 2:13 pm

RodMath
 
Posts: 17
Joined: Sun May 09, 2010 2:48 pm

Re: Segment Query issue with Chipmunk Pro 6

Postby slembcke » Wed Jul 13, 2011 9:50 am

Hmm. That should give me something to work from. Thanks.

I guess I should be running the tests on the iPhone too. :-\
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: Segment Query issue with Chipmunk Pro 6

Postby slembcke » Wed Jul 13, 2011 1:28 pm

Frustrating... I was able to reproduce the issue with Objective-Chipmunk compiled in release mode but not in debug. I also can't get it to run on the phone with guard malloc. It fails when performing the dynamic linking which makes me suspect they simply took away the ability to use it on the device...

:evil:

Still working on it though.
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: Segment Query issue with Chipmunk Pro 6

Postby slembcke » Wed Jul 13, 2011 3:41 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: Segment Query issue with Chipmunk Pro 6

Postby slembcke » Wed Jul 13, 2011 4:04 pm

Aha. It turns out Clang doesn't seem to crash there. I brought Objective-Chipmunk in as a sub-project of SimpleObjectiveChipmunk. I set the parent project to use Clang, but not the Objective-Chipmunk one. So at least in the meanwhile that seems like a way to work around the bug.

I'm still trying to make a minimum replication project to try and confirm if it's a compiler bug though. Not that anybody will bother fixing something as ancient as GCC 4.2 if it is.
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: Segment Query issue with Chipmunk Pro 6

Postby RodMath » Thu Jul 14, 2011 5:23 am

:shock: A compiler bug?!! Well if nothing else this definitely confirms I would never have found the problem.

I don't really know anything about compilers - other than that XCode uses GCC - are you saying I'd need to use Clang to compile my project, or can it be magically done in the ObjChipmunk I bring in?

Hmm, either way, seems like I better start googling Clang!

Thanks for your help
RodMath
 
Posts: 17
Joined: Sun May 09, 2010 2:48 pm

Next

Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 1 guest

cron