tesseract: Error while running on PC - DotProductAVX can't be used on Android

(gdb) run
Starting program: /usr/local/bin/tesseract phototest.tif phototest -l eng
warning: Error disabling address space randomization: Success
warning: linux_ptrace_test_ret_to_nx: PTRACE_KILL waitpid returned -1: Interrupted system call
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Tesseract Open Source OCR Engine v4.00.00alpha-221-g34e4003 with Leptonica
Page 1
[New Thread 0x7fd8a83a0700 (LWP 17843)]
[New Thread 0x7fd8a5e20700 (LWP 17844)]
[New Thread 0x7fd8a5610700 (LWP 17845)]
Found AVX
Found SSE
DotProductAVX can't be used on Android
DotProductAVX can't be used on Android

Program received signal SIGABRT, Aborted.
0x00007fd8a9aa6c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) backtrace
#0  0x00007fd8a9aa6c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007fd8a9aaa028 in __GI_abort () at abort.c:89
#2  0x00007fd8aa9f5e86 in tesseract::DotProductAVX (u=<optimized out>, v=<optimized out>, n=<optimized out>) at dotproductavx.cpp:30
#3  0x00007fd8aaa30a5a in tesseract::WeightMatrix::MatrixDotVectorInternal (w=..., add_bias_fwd=add_bias_fwd@entry=true, skip_bias_back=skip_bias_back@entry=false,
    u=u@entry=0x33e3430, v=v@entry=0x33e3370) at weightmatrix.cpp:435
#4  0x00007fd8aaa30aea in tesseract::WeightMatrix::MatrixDotVector (this=this@entry=0x22196e8, u=u@entry=0x33e3430, v=v@entry=0x33e3370) at weightmatrix.cpp:235
#5  0x00007fd8aa9f9cdc in tesseract::FullyConnected::ForwardTimeStep (this=this@entry=0x22196a0, d_input=0x33e3430, i_input=<optimized out>, t=t@entry=0,
    output_line=output_line@entry=0x33e3370) at fullyconnected.cpp:180
#6  0x00007fd8aa9fa667 in tesseract::FullyConnected::Forward () at fullyconnected.cpp:141
#7  0x00007fd8aa9fbe01 in tesseract::FullyConnected::Forward (this=0x22196a0, debug=<optimized out>, input=..., input_transpose=<optimized out>, scratch=0x2208908,
    output=0x3086ad0) at fullyconnected.cpp:123
#8  0x00007fd8aaa2c30c in tesseract::Series::Forward (this=0x2219500, debug=<optimized out>, input=..., input_transpose=0x0, scratch=0x2208908, output=0x3086ad0)
    at series.cpp:107
#9  0x00007fd8aaa2c30c in tesseract::Series::Forward (this=0x2219350, debug=<optimized out>, input=..., input_transpose=0x0, scratch=0x2208908, output=0x7ffff3028a70)
    at series.cpp:107
#10 0x00007fd8aaa0b25b in tesseract::LSTMRecognizer::RecognizeLine (this=this@entry=0x22084e0, image_data=..., invert=invert@entry=true, debug=debug@entry=false,
    re_invert=re_invert@entry=false, label_threshold=label_threshold@entry=0.75, scale_factor=scale_factor@entry=0x7ffff3028a0c, inputs=inputs@entry=0x7ffff3028b00,
    outputs=outputs@entry=0x7ffff3028a70) at lstmrecognizer.cpp:277
#11 0x00007fd8aaa0d136 in tesseract::LSTMRecognizer::RecognizeLine (this=0x22084e0, image_data=..., invert=invert@entry=true, debug=false,
    worst_dict_cert=worst_dict_cert@entry=-3.5714285373687744, use_alternates=<optimized out>, target_unicharset=target_unicharset@entry=0x21cfc60, line_box=...,
    score_ratio=score_ratio@entry=2, one_word=one_word@entry=false, words=words@entry=0x7ffff3028d30) at lstmrecognizer.cpp:153
#12 0x00007fd8aa8b28f3 in tesseract::Tesseract::LSTMRecognizeWord (this=this@entry=0x21cfb70, block=..., row=row@entry=0x2fca520, word=<optimized out>,
    words=words@entry=0x7ffff3028d30) at linerec.cpp:245
#13 0x00007fd8aa897f03 in tesseract::Tesseract::classify_word_pass1 (this=0x21cfb70, word_data=..., in_word=0x2fdf7e0, out_words=0x7ffff3028d30) at control.cpp:1362
#14 0x00007fd8aa899240 in tesseract::Tesseract::RetryWithLanguage (this=0x21cfb70, word_data=..., recognizer=
    (void (tesseract::Tesseract::*)(tesseract::Tesseract * const, const tesseract::WordData &, WERD_RES **, tesseract::PointerVector<WERD_RES> *)) 0x7fd8aa897d40 <tess
eract::Tesseract::classify_word_pass1(tesseract::WordData const&, WERD_RES**, tesseract::PointerVector<WERD_RES>*)>, in_word=0x2fdf7e0,
    best_words=best_words@entry=0x7ffff3028df0) at control.cpp:888
#15 0x00007fd8aa899959 in tesseract::Tesseract::classify_word_and_language (this=this@entry=0x21cfb70, pass_n=pass_n@entry=1, pr_it=pr_it@entry=0x7ffff3028f50,
    word_data=word_data@entry=0x2fdf5d8) at control.cpp:1303
#16 0x00007fd8aa89d92b in tesseract::Tesseract::RecogAllWordsPassN (this=this@entry=0x21cfb70, pass_n=pass_n@entry=1, monitor=monitor@entry=0x0,
    pr_it=pr_it@entry=0x7ffff3028f50, words=words@entry=0x7ffff3028f30) at control.cpp:265
#17 0x00007fd8aa89e6b3 in tesseract::Tesseract::recog_all_words (this=0x21cfb70, page_res=0x2fad7b0, monitor=monitor@entry=0x0,
    target_word_box=target_word_box@entry=0x0, word_config=word_config@entry=0x0, dopasses=dopasses@entry=0) at control.cpp:352
#18 0x00007fd8aa887359 in tesseract::TessBaseAPI::Recognize (this=this@entry=0x7ffff3029380, monitor=0x0) at baseapi.cpp:852
#19 0x00007fd8aa8876fd in tesseract::TessBaseAPI::ProcessPage (this=this@entry=0x7ffff3029380, pix=0x22069a0, page_index=page_index@entry=0,
    filename=filename@entry=0x7ffff3029739 "phototest.tif", retry_config=retry_config@entry=0x0, timeout_millisec=timeout_millisec@entry=0, renderer=renderer@entry=
    0x2e70640) at baseapi.cpp:1164
#20 0x00007fd8aa887cc9 in tesseract::TessBaseAPI::ProcessPagesMultipageTiff (this=this@entry=0x7ffff3029380, data=data@entry=0x0, size=0,
    filename=filename@entry=0x7ffff3029739 "phototest.tif", retry_config=retry_config@entry=0x0, timeout_millisec=timeout_millisec@entry=0,
    renderer=renderer@entry=0x2e70640, tessedit_page_number=-1) at baseapi.cpp:1010
#21 0x00007fd8aa888018 in tesseract::TessBaseAPI::ProcessPagesInternal (this=this@entry=0x7ffff3029380, filename=<optimized out>,
---Type <return> to continue, or q <return> to quit---

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 39 (6 by maintainers)

Most upvoted comments

But how to uninstall the already installed tesseract and liptonica .These two i have installed from source

On Fri, Feb 24, 2017 at 8:33 PM, Shreeshrii notifications@github.com wrote:

Use the ppa from https://launchpad.net/~alex-p/ +archive/ubuntu/tesseract-ocr

sudo add-apt-repository ppa:alex-p/tesseract-ocr -y sudo apt-get update -q sudo apt-get install tesseract-ocr -y

tesseract -v tesseract --list-langs

sudo apt-get install tesseract-ocr-hin -y (if you want to install Hindi, similarly for other languages)

ShreeDevi


भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

On Fri, Feb 24, 2017 at 7:36 PM, Vidushi12 notifications@github.com wrote:

Hello sir,

Sorry for the inconvenience caused.I will not repeat my mistake.I have installed tesseract on Ubuntu 16.04 32 bit os with the help of this site. https://www.linux.com/blog/using-tesseract-ubuntu

Yes I can use tesseract 3.05 but i would you be highly obliged if you would tell me the steps of properly uninstalling tesseract. And from where to install tesseract 3.05 and which leptonica version to use.

Thank You for your help and guidance

Regards: Vidushi Gupta Student(M.Tech)(NSIT Delhi)

On Fri, Feb 24, 2017 at 4:35 PM, Stefan Weil notifications@github.com wrote:

@Vidushi12 https://github.com/Vidushi12, please don’t post your question on several places (even if it is urgent for you).

Did you compile Tesseract yourself or do you use a pre-build version? Can you use Tesseract 3.05 or an earlier version? Tesseract 4.x is experimental and not for end users currently.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/tesseract-ocr/tesseract/issues/610# issuecomment-282265686>, or mute the thread <https://github.com/notifications/unsubscribe- auth/AOjjm8EWPhgNLL66P31ILvo3-Ys-Z8-Bks5rfrmEgaJpZM4LVjQA> .

– Vidushi

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/tesseract-ocr/tesseract/issues/610# issuecomment-282298890>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AE2_ o1gQTwf9MdAIA76EQZl14a17qt4Gks5rfuPkgaJpZM4LVjQA>

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tesseract-ocr/tesseract/issues/610#issuecomment-282312789, or mute the thread https://github.com/notifications/unsubscribe-auth/AOjjm0ard3uXWnJH9HxOEb9NB7BKBIcGks5rfvEmgaJpZM4LVjQA .

– Vidushi