天之蓝的学习博客

仅供学习参考

ndk-stack使用

1. so库要改成debug模式,在application.apk下加入APP_OPTIM := debug,然后重新编译so库

2 cmd下进入ndk的安装目录,必须进入

3. 执行命令

adb logcat -d > E:/1.log

4. 执行命令

ndk-stack -sym D:\Tools\cocos2dx\cocos2dx-classical\samples\Cpp\TestCpp\proj.android\obj\local\armeabi -dump E:/1.log

5. 结果输出如下

D:\Tools\android\ndk\android-ndk-r9d>ndk-stack -sym D:\Tools\cocos2dx\cocos2dx-classical\samples\Cpp\TestCpp\proj.android\obj\local\armeabi -dump E:/1.log
********** Crash dump: **********
Build fingerprint: 'vivo/bbk6735_65c_l/bbk6735_65c_l:5.0/LRX21M/1458027575:user/release-keys'
pid: 19603, tid: 19642, name: GLThread 689  >>> org.cocos2dx.testcpp <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Stack frame I/AEE/AED (19708):     #00 pc 0024253c  /data/app/org.cocos2dx.testcpp-2/lib/arm/libtestcpp.so (Gift_sendLayer::initView()+1140): Routine Gift_sendLayer::initView() at D:\Tools\cocos2dx\cocos2dx-classical\samples\Cpp\TestCpp\proj.android/jni/chatClasses/Gift_sendLayer.cpp:65
Stack frame I/AEE/AED (19708):     #01 pc 0023a378  /data/app/org.cocos2dx.testcpp-2/lib/arm/libtestcpp.so (ChatLayer::initView(char*)+3508): Routine ChatLayer::initView(char*) at D:\Tools\cocos2dx\cocos2dx-classical\samples\Cpp\TestCpp\proj.android/jni/chatClasses/ChatScene.cpp:76
Stack frame I/AEE/AED (19708):     #02 pc 00235df0  /data/app/org.cocos2dx.testcpp-2/lib/arm/libtestcpp.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit+584): Routine Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit at D:\Tools\cocos2dx\cocos2dx-classical\samples\Cpp\TestCpp\proj.android/jni/testcpp/main.cpp:39
Stack frame I/AEE/AED (19708):     #03 pc 0007f299  /data/dalvik-cache/arm/data@app@org.cocos2dx.testcpp-2@base.apk@classes.dex

阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jdksym/article/details/51068459
个人分类: cocos2d
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭