How to detect the reason of crash?

Please keep this thread on topic, and use the linked topic for the “silent terminate - small face” issue.