A path game crash only on the Mac
by Eyal Erez · in Torque Game Builder · 08/03/2009 (8:40 pm) · 0 replies
My game keeps crashing only on Mac with this error : Program received signal: “EXC_BAD_ACCESS”.
The debugger points to line 69 in pathClasses.h :
inline GridCell( const GridCell& copy ) : open(copy.open), mG(copy.mG), mH(copy.mH), mF(copy.mF), parent(copy.parent), mPassable(copy.mPassable), mWeight(copy.mWeight) {};
on the console.log nothing shows up. but once I places a bunch of echoes I figure out it happens when I call
%tile = PathLayer.pickTile(%pos.x,%pos.y); or right after when I call if(%tile!$="") %custom = pathLayer.getTileCustomData(%tile.x,%tile.y);
I can't figure out why it's crashing. most of the time it works and it never crashes on the PC.
The debugger points to line 69 in pathClasses.h :
inline GridCell( const GridCell& copy ) : open(copy.open), mG(copy.mG), mH(copy.mH), mF(copy.mF), parent(copy.parent), mPassable(copy.mPassable), mWeight(copy.mWeight) {};
on the console.log nothing shows up. but once I places a bunch of echoes I figure out it happens when I call
%tile = PathLayer.pickTile(%pos.x,%pos.y); or right after when I call if(%tile!$="") %custom = pathLayer.getTileCustomData(%tile.x,%tile.y);
I can't figure out why it's crashing. most of the time it works and it never crashes on the PC.