QueryAABB random?

I'm using QueryAABB (for an explosion, triggered by a post solve contact event) and it works successfully in all regards EXCEPT that it randomly does not report objects that are inside the bounds. I can trigger the same situation of objects over and over with the objects in the exact same positions, and it randomly leaves objects out. Sometimes it will report everything in the callbacks, and other times it will only report 1 callback (of over 10 items that are in the area).

Does anyone have any ideas why this might be? Should QueryAABB only be called at a certain phase in a step, or something similar?

Thanks!
Make sure there are no errors in your query callback function. If there are errors I think alchemy will swallow them up and you wont even see them in the debugger. Maybe wrap the inside of your callback in a try/catch block to see if anything is happening. That's my first thought... If there are indeed no errors we can go from there.
mayobutter... you're awesome!!!

You hit the nail square on the head. The alchemy code was swallowing my error, until I wrapped it in a try catch!! You're brilliant! Thanks so much man!

How can I thank you? I just made a small donation as a token of my gratitude. 🙂

How did you figure this out by the way? I don't think I would have figured this out on my own. Ran into similar trouble your self?

Thanks!!
Jacob
Thanks! Yeah basically someone ran into the same problem, posted their code, and there was a way obvious error in it.

Original thread: https://box2d.org/forum/viewtopic.php?t=7446