If you don't have the address already when it happens... I would also say recording a crash dump, then analysing it might give you hints on what/where the problem is.
I had one app once that would go in an "indefinite loop" coded by the dev, while reversing it, i found it like this
|