我正在实施使用Tesseract API的OCR应用。当我按下Android主页按钮时,会出现弹出窗口“不幸停止”。我在OCR线程中多次运行TessbaseAPI并定义了处理程序。我发送带有图像的消息用于OCR目的并进行线程处理。
在每张图片之后,我调用Tessbase的clear()
和活动的onPause()
方法end()
。在处理图像时调用end()
可能存在问题。有没有人有建议如何解决这个问题?提前谢谢。
Logcat错误:
03-13 13:18:56.882: A/libc(24730): Fatal signal 11 (SIGSEGV) at 0x00000010 (code=1), thread 24756 (Thread-6411)
ndk-stack输出:
********** Crash dump: **********
Build fingerprint: 'google/yakju/maguro:4.3/JWR66Y/776638:user/release-keys'
pid: 24730, tid: 24756, name: Thread-6411 >>> cz.skywall.dp <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000010
Stack frame #00 pc 000cb132 /data/app-lib/cz.skywall.dp-1/libtess.so (ExtractIntFeat(TBLOB*, DENORM const&, INT_FEATURE_STRUCT*, INT_FEATURE_STRUCT*, INT_FX_RESULT_STRUCT*, int*)+49): Unable to open symbol file /home/lukas/Stažené/tess-two- master/tess-two/libs/armeabi/libtess.so. Error (9): Bad file descriptor
Stack frame #01 pc 000c1715 /data/app-lib/cz.skywall.dp-1/libtess.so (tesseract::Classify::GetCharNormFeatures(TBLOB*, DENORM const&, INT_TEMPLATES_STRUCT*, INT_FEATURE_STRUCT*, unsigned char*, unsigned char*, int*, int*)+56): Unable to open symbol file /home/lukas/Stažené/tess-two-master/tess-two/libs/armeabi/libtess.so. Error (9): Bad file descriptor
Stack frame #02 pc 000c1e3d /data/app-lib/cz.skywall.dp-1/libtess.so (tesseract::Classify::CharNormClassifier(TBLOB*, DENORM const&, INT_TEMPLATES_STRUCT*, ADAPT_RESULTS*)+84): Unable to open symbol file /home/lukas/Stažené/tess-two-master/tess-two/libs/armeabi/libtess.so. Error (9): Bad file descriptor
Stack frame #03 pc 000c27a1 /data/app-lib/cz.skywall.dp-1/libtess.so (tesseract::Classify::DoAdaptiveMatch(TBLOB*, DENORM const&, ADAPT_RESULTS*)+100): Unable to open symbol file /home/lukas/Stažené/tess-two-master/tess-two/libs/armeabi/libtess.so. Error (9): Bad file descriptor
Stack frame #04 pc 000c285b /data/app-lib/cz.skywall.dp-1/libtess.so (tesseract::Classify::AdaptiveClassifier(TBLOB*, DENORM const&, BLOB_CHOICE_LIST*, CP_RESULT_STRUCT*)+90): Unable to open symbol file /home/lukas/Stažené/tess-two-master/tess-two/libs/armeabi/libtess.so. Error (9): Bad file descriptor