|
Viewing 1 to 10 (10 Total) Box2D collisions cause crash on all but Flash targets |
|
|---|---|
magnateTotal Posts: 15
Joined: November 15, 2011
|
In particular, I receive an EXC_BAD_ACCESS on iOS (simulator and device). Appears to be happening in B2WorldManifold initialize, but I've been unable to determine why.
Tags:
Posted on November 19, 2011 at 9:42 PM
|
singmajestyTotal Posts: 2141
Joined: August 25, 2011
|
Re: Box2D collisions cause crash on all but Flash targetsWhich port of Box2D are you using?
Posted on November 19, 2011 at 9:55 PM
|
magnateTotal Posts: 15
Joined: November 15, 2011
|
Re: Re: Box2D collisions cause crash on all but Flash targetsI've tried using both the haxelib and SVN versions of your box2dhaxelib port, and yeah, compiled for iOS, Mac, Android, and of those only Flash is working correctly. I'm not sure if it's because the AVM is much less strict or what.
Posted on November 19, 2011 at 10:48 PM
|
magnateTotal Posts: 15
Joined: November 15, 2011
|
Re: Box2D collisions cause crash on all but Flash targetsJosh - it turned out to be related to the B2Settings class and its "static public" vars. I modified them all to be "public static inline" vars and now collisions work correctly. Strange!
Posted on November 20, 2011 at 8:11 AM
|
singmajestyTotal Posts: 2141
Joined: August 25, 2011
|
Re: Box2D collisions cause crash on all but Flash targetsHah! Weird!
Posted on November 20, 2011 at 10:16 AM
|
weddersTotal Posts: 12
Joined: October 08, 2011
|
Re: Box2D collisions cause crash on all but Flash targetsJust to confirm: I had the exact same problem, using the source in my project so I could do a few modifications, and randomly one day it started crashing on any collision. I debugged a CPP build and found the error to be occuring in one line in B2WorldManifold every time (I forget which now, I did this a while ago), and I tried a load of stuff to get it working again...
Posted on January 18, 2012 at 12:29 PM
|
HugeTotal Posts: 548
Joined: October 07, 2011
|
Re: Box2D collisions cause crash on all but Flash targetsHi,
Posted on January 18, 2012 at 7:18 PM
|
magnateTotal Posts: 15
Joined: November 15, 2011
|
Re: Box2D collisions cause crash on all but Flash targetsHugh - I'm not certain what you mean by using a dummy variable for the compiler?
Posted on January 19, 2012 at 4:48 PM
|
ZaphodTotal Posts: 218
Joined: September 15, 2011
|
Re: Box2D collisions cause crash on all but Flash targets@magnate add this:
Posted on January 20, 2012 at 3:28 AM
|
singmajestyTotal Posts: 2141
Joined: August 25, 2011
|
Re: Box2D collisions cause crash on all but Flash targetsI have committed a new version of the "box2d" library on haxelib. Feel free to upgrade ("haxelib upgrade box2d") and see if it makes a difference.
Posted on January 21, 2012 at 12:10 PM
|
