I have a game board with a couple different types of sprites. In my player sprite's collisionResponse, the player will either change direction or finish the level depending on what type of other sprite is detected. After the level is finished and the new level is loaded, I am getting the follow error in the debug console...
__gc metamethod
(
lua_release called on object with retainCount == 0
Without seeing code it's hard to say, but it sounds like you might be attempting to do too much in your collisionResponse function. As the docs mention:
This method should not attempt to modify the sprites in any way. While it might be tempting to deal with collisions here, doing so will have unexpected and undesirable results. Instead, this function should return one of the collision response values as quickly as possible. If sprites need to be modified as the result of a collision, do so elsewhere, such as by inspecting the list of collisions returned by moveWithCollisions().