2

Windows での NDK スタック トレース ツールの実行に問題があります。おそらくかなりばかげた間違いなので、私が試しているのは次のとおりです。

...\android-ndk-r8d\ndk-stack.exe -sym ".../JNITest/obj/local/x86/" -dump ".../crash.txt"

私が受け取るメッセージは次のとおりです。

********** Crash dump: **********
...

Stack frame #00  eip: 30303030: Unable to open symbol file .../JNITest/obj/local/x86//☺. Error (123): Unknown error

したがって、このフォルダーにはシンボルを含む必要がある .so ファイルがあります (ところで、そうであるかどうかを確認するにはどうすればよいですか?)

4

2 に答える 2

1

When you build the native library with ndk-build, it creates an .so file with all debug information, usually in the directory <proj>/obj/local/armeabi, and after that installs this file into <proj>/lib/armeabi by stripping off the debug symbols. The latter is packed into the APK.

armeabi above is used most often because most Android devices out there use ARM CPU. Your post refers to x86 subdirectory. Did you really use an Intel-powered device for this project? Did you build your native library for x86? If you did, can you find this file in your <proj>\obj\local\x86 directory?

于 2013-03-16T19:35:55.040 に答える
0

Windows 7 で Android NDK リリース 9、64 ビットを使用しているときに、ndk-stack.exe で同じクラッシュが発生しました。新しい NDK バージョン、リリース 9c、64 ビットに更新すると、問題はなくなりました。NDK の以前のリリースのバグのようです。

グレッグ

于 2014-01-10T14:46:04.383 に答える