Bus Error

Heya,

Actually I just solved this, but I figured I'd put the solution up anyhow. Basically I add some code which created a new collision sensor using the standard approach:

1
physics.addBody(img,{isSensor=true, radius=10})

Hey there
I have never gotten this so I feel it all started when I downloaded the latest nightly builds but on the other hand I am not an experienced game coder so it could be my lousy coding :)

I am getting this
/Applications/CoronaSDK/Corona Terminal: line 9: 6593 Bus error "$path/Corona Simulator.app/Contents/MacOS/Corona Simulator" $*

and the numbers keep changing all the time. The most common place this happens is when the director class is about to load a new new screen.

I tried your tip on never ever add something to the psyhics engine while in collisionstate but that didn't do the trick.

Anyone? Coronastaff?

I get this kind of error a lot when I call physics.stop(), but not all the time, which made it difficult to track down. Do you have a physics.stop() somewhere in the new scene called by director?

Not in the one that loads but in the one that unloads

Try a test and comment out the line, or changing it to physics.pause() just to see if you continue to get the error or not.

If your crash is indeed due to the physic.stop() bug, it was reported at least 9 months ago so I don't know if Ansca intends to ever fix it, but hopefully you can at least find a work around.

views:1565 update:2011/9/29 9:22:17
corona forums © 2003-2011