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:
physics.addBody(img,{isSensor=true, radius=10})
There was a lot of code around that involving timers, removing the sensor again, so it took me a while to track down. Every time I ran the simulation, when the above code executed I got:
/Applications/CoronaSDK/Corona Terminal: line 9: 1188 Bus error ...
In fact the actual number kept changing, but never mind.
Eventually I figured out what was going on, the code was getting called during a collision event. Never ever try to modify the physics engine (by adding or removing objects) during a collision event. Number 1 rule.
Adding a quick timer.performWithDelay(1, dangerousCode) fixed the issue. However it would have been nice if Corona had output an error. [import]uid: 11757 topic_id: 10522 reply_id: 310522[/import]
