Sometimes crashes or always crashes when deployed through the store?
If you want to rely on data instead of magic then check the crash reports as Abdul suggests. If you want magic then my crystal ball says that if it always crashes the app is trying to write to its install directory.
The install directory is writable for test deployed apps but not for apps deployed from the store.