Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tesseract crash in Recognize() #10

Closed
scubess opened this issue Oct 15, 2019 · 2 comments
Closed

Tesseract crash in Recognize() #10

scubess opened this issue Oct 15, 2019 · 2 comments

Comments

@scubess
Copy link

scubess commented Oct 15, 2019

Hi @rhardih,
I might need your help. I built the tesseract (libtesseract.so), leptonica (liblept.so) & tiff (libtiff.so) from the makefile. I tried in my sample app. As I got the tesseract version number (4.0.0), I think there is no problem in initialising the tesseract engine.
But when I try to recognise, I got this error thrown,

2019-10-15 13:37:43.296 29748-29748/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc
2019-10-15 13:37:43.296 29748-29748/? A/DEBUG: Cause: null pointer dereference
2019-10-15 13:37:43.296 29748-29748/? A/DEBUG:     x0  0000007a10b58400  x1  0000000000000001  x2  0000000000000000  x3  0000000000000000
2019-10-15 13:37:43.296 29748-29748/? A/DEBUG:     x4  0000007fead187d0  x5  0000000000000000  x6  0000000080000000  x7  6d7450ff63647260
2019-10-15 13:37:43.296 29748-29748/? A/DEBUG:     x8  0000000000000000  x9  0000000000000000  x10 0000000000000001  x11 0000000000000020
2019-10-15 13:37:43.296 29748-29748/? A/DEBUG:     x12 0000007a220ea330  x13 b760e692601a80b2  x14 0000000000000030  x15 aaaaaaaaaaaaaaab
2019-10-15 13:37:43.296 29748-29748/? A/DEBUG:     x16 0000007a108925b0  x17 0000007a1069accc  x18 0000000000000044  x19 0000000000000000
2019-10-15 13:37:43.296 29748-29748/? A/DEBUG:     x20 0000007a33f9c1a0  x21 0000007a22158e40  x22 0000000000000000  x23 0000000000000000
2019-10-15 13:37:43.296 29748-29748/? A/DEBUG:     x24 0000000000000000  x25 0000000000000047  x26 0000007a221fe000  x27 0000007a2046f030
2019-10-15 13:37:43.296 29748-29748/? A/DEBUG:     x28 0000007fead18b20  x29 0000007fead18940
2019-10-15 13:37:43.296 29748-29748/? A/DEBUG:     sp  0000007fead18750  lr  0000007a105f8abc  pc  0000007a105f8ad8
2019-10-15 13:37:43.468 29748-29748/? A/DEBUG: backtrace:
2019-10-15 13:37:43.468 29748-29748/? A/DEBUG:     #00 pc 00000000000a2ad8  /data/app/com.example.sample_adaptech_tess4android-CyBezkRI0S-FOpfPG0w6CQ==/lib/arm64/libtesseract.so (tesseract::Tesseract::recog_all_words(PAGE_RES*, ETEXT_DESC*, TBOX const*, char const*, int)+184)
2019-10-15 13:37:43.468 29748-29748/? A/DEBUG:     #01 pc 0000000000283840  /data/app/com.example.sample_adaptech_tess4android-CyBezkRI0S-FOpfPG0w6CQ==/lib/arm64/libtesseract.so (tesseract::TessBaseAPI::Recognize(ETEXT_DESC*)+1092)
2019-10-15 13:37:43.468 29748-29748/? A/DEBUG:     #02 pc 00000000002821dc  /data/app/com.example.sample_adaptech_tess4android-CyBezkRI0S-FOpfPG0w6CQ==/lib/arm64/libtesseract.so (tesseract::TessBaseAPI::GetUTF8Text()+48)
2019-10-15 13:37:43.468 29748-29748/? A/DEBUG:     #03 pc 0000000000003538  /data/app/com.example.sample_adaptech_tess4android-CyBezkRI0S-FOpfPG0w6CQ==/lib/arm64/libwhat3words-ocr-jni.so (Java_com_what3words_java_1wrapper_OCREngineImp_nativeReadBitmap+612)
2019-10-15 13:37:43.468 29748-29748/? A/DEBUG:     #04 pc 0000000000577fe0  /system/lib64/libart.so (art_quick_generic_jni_trampoline+144)```


@rhardih, is there anything I missed from the build, please? Also, i using tesseract 4.0.0 with 1.74.4 have any impacts to create this issue? 
@scubess scubess changed the title Hi @rhardih, Tesseract crash in recognise Oct 15, 2019
@scubess scubess changed the title Tesseract crash in recognise Tesseract crash in Recognize() Oct 15, 2019
@rhardih
Copy link
Owner

rhardih commented Oct 15, 2019

You should try the tesseract issue tracker for tesseract specific problems. Also, if you want help there, you are most likely to succeed, if you include a sample project or piece of code, that makes the error reproducible, for whoever decides to take a look. 👍

@scubess
Copy link
Author

scubess commented Oct 15, 2019

Thank you so much! I believe i post with an example in tesseract repo. Also, i close this issue too.

@scubess scubess closed this as completed Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants