Crash in cocos2d-1.0.1-x-0.9.1 - when calling CCUserDefault::sharedUserDefault()

Hello guys
I have build my app using the new cocos2dx version - (cocos2d-1.0.1-x-0.9.1) but now my app crashes when I call CCUserDefault::sharedUserDefault().
Do you know what could be wrong here?
regards

Hello again.
I found that the problem was located in the file cocos2dx/platform/android/CCFileUtils_android.cpp.

The function getWriteablePath() made my app crash.
Then I found that if i did not clean up the char array (tmp) (line 144) if fixed the problem. Don’t know what this means but for now I do not clean up tmp.

The other thing I found was that the function getPackageNameJNI (line 136) did not work for me, as it returns some crazy letters and signs. For now I have hard coded my app package name, which works fine, but I would be glad if you could tell me what is wrong?.

I guess your trouble is caused by the version compatibility of different android devices.
Can you tell me the type and version of your android phone?

Yes, it is a bug. It is resolved in #683.