Hi Everyone

I am getting segmentation fault core dumped again.
 gdb error I am getting is as follows:

Thread 1 "lstmtraining" received signal SIGSEGV, Segmentation fault.
0x00007ffff7801a34 in ?? () from /usr/lib/x86_64-linux-gnu/libtesseract.so.4
(gdb) bt
#0  0x00007ffff7801a34 in ?? () from
/usr/lib/x86_64-linux-gnu/libtesseract.so.4
#1  0x00007ffff604d30c in *GOMP_parallel_sections* () from
/usr/lib/x86_64-linux-gnu/libgomp.so.1
#2  0x00007ffff780786e in tesseract::LSTM::Forward(bool,
tesseract::NetworkIO const&, tesseract::TransposedArray const*,
tesseract::NetworkScratch*, tesseract::NetworkIO*) () from
/usr/lib/x86_64-linux-gnu/libtesseract.so.4
#3  0x00007ffff781e50b in tesseract::Parallel::Forward(bool,
tesseract::NetworkIO const&, tesseract::TransposedArray const*,
tesseract::NetworkScratch*, tesseract::NetworkIO*) () from
/usr/lib/x86_64-linux-gnu/libtesseract.so.4
#4  0x00007ffff7827fe1 in tesseract::Reversed::Forward(bool,
tesseract::NetworkIO const&, tesseract::TransposedArray const*,
tesseract::NetworkScratch*, tesseract::NetworkIO*) () from
/usr/lib/x86_64-linux-gnu/libtesseract.so.4
#5  0x00007ffff78299f3 in tesseract::Series::Forward(bool,
tesseract::NetworkIO const&, tesseract::TransposedArray const*,
tesseract::NetworkScratch*, tesseract::NetworkIO*) () from
/usr/lib/x86_64-linux-gnu/libtesseract.so.4
#6  0x00007ffff780bbe0 in
tesseract::LSTMRecognizer::RecognizeLine(tesseract::ImageData const&, bool,
bool, bool, bool, float*, tesseract::NetworkIO*, tesseract::NetworkIO*) ()
from /usr/lib/x86_64-linux-gnu/libtesseract.so.4
#7  0x00007ffff781212c in
tesseract::LSTMTrainer::PrepareForBackward(tesseract::ImageData const*,
tesseract::NetworkIO*, tesseract::NetworkIO*) ()
   from /usr/lib/x86_64-linux-gnu/libtesseract.so.4
#8  0x00007ffff781284d in
tesseract::LSTMTrainer::TrainOnLine(tesseract::ImageData const*, bool) ()
from /usr/lib/x86_64-linux-gnu/libtesseract.so.4
#9  0x00007ffff7813a54 in
tesseract::LSTMTrainer::ReduceLayerLearningRates(double, int,
tesseract::LSTMTrainer*) ()
   from /usr/lib/x86_64-linux-gnu/libtesseract.so.4
#10 0x00007ffff7813e85 in
tesseract::LSTMTrainer::ReduceLearningRates(tesseract::LSTMTrainer*,
STRING*) () from /usr/lib/x86_64-linux-gnu/libtesseract.so.4
#11 0x00007ffff781418e in tesseract::LSTMTrainer::StartSubtrainer(STRING*)
() from /usr/lib/x86_64-linux-gnu/libtesseract.so.4
#12 0x00007ffff78146fb in
tesseract::LSTMTrainer::MaintainCheckpoints(TessResultCallback4<STRING,
int, double const*, tesseract::TessdataManager const&, int>*, STRING*) ()
from /usr/lib/x86_64-linux-gnu/libtesseract.so.4
#13 0x000055555555ace7 in main ()
(gdb) Quit

Can somebody please help with this?

Thanks
Shubham

On Fri, Oct 18, 2019 at 3:53 PM Shree Devi Kumar <[email protected]>
wrote:

> Check your netspec. Does it meet the required vgsl specs. See wiki for
> details and netspec used for various languages.
>
> On Fri, Oct 18, 2019, 15:07 Shubham Gupta <[email protected]> wrote:
>
>> Hi All
>>
>> I am training Tesseract for Perso-Arabic languages using my custom
>> dataset. I get *Segmentation fault-core dumped* error and training gets
>> stopped. Net-spec used: net_spec '[1,0,0,1 Ct5,5,16 Ct3,3,8 Mp3,3 Lfys64
>> Lfx128 Lbx64 Lby64 Lrx128 Lfx128 O1c105]'.Attaching the terminal error
>> output below:
>>
>>
>> Thread 1 "lstmtraining" received signal SIGSEGV, Segmentation fault.
>> tesseract::Logistic (x=-nan(0x8000000000000)) at functions.h:90
>> 90  double l0 = LogisticTable[index];
>> (gdb) bt
>> #0  tesseract::Logistic (x=-nan(0x8000000000000)) at functions.h:90
>> #1  tesseract::FFunc::operator() (this=<synthetic pointer>,
>>     x=-nan(0x8000000000000)) at functions.h:98
>> #2  tesseract::FuncInplace<tesseract::FFunc> (inout=<optimized out>,
>>     n=<optimized out>) at functions.h:163
>> #3  tesseract::LSTM::Forward () at lstm.cpp:364
>> #4  0x00007ffff625d30c in GOMP_parallel_sections ()
>>    from /usr/lib/x86_64-linux-gnu/libgomp.so.1
>> #5  0x00007ffff7a3ccd6 in tesseract::LSTM::Forward (this=0x55555f713cd0,
>>     debug=<optimized out>, input=..., input_transpose=<optimized out>,
>>     scratch=0x7fffffffbf58, output=0x555562b56c00) at lstm.cpp:322
>> #6  0x00007ffff7a543eb in tesseract::Parallel::Forward
>> (this=0x555556504490,
>>     debug=false, input=..., input_transpose=<optimized out>,
>>     scratch=0x7fffffffbf58, output=0x555562b61460) at parallel.cpp:93
>> #7  0x00007ffff7a60d01 in tesseract::Reversed::Forward
>> (this=0x55556030af00,
>>     debug=<optimized out>, input=..., input_transpose=<optimized out>,
>>     scratch=0x7fffffffbf58, output=0x55555f715060) at reversed.cpp:60
>> #8  0x00007ffff7a6293f in tesseract::Series::Forward
>> (this=0x555560454110,
>>     debug=<optimized out>, input=..., input_transpose=<optimized out>,
>>     scratch=0x7fffffffbf58, output=0x7fffffffad80) at series.cpp:119
>> #9  0x00007ffff7a410ab in tesseract::LSTMRecognizer::RecognizeLine (
>>     this=this@entry=0x7fffffffbc18, image_data=..., invert=<optimized
>> out>,
>>     debug=debug@entry=false, re_invert=<optimized out>,
>> ---Type <return> to continue, or q <return> to quit---
>>
>>
>> Any help to solve this shall be highly appreciated.
>>
>> Thanks
>> Shubham
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "tesseract-ocr" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tesseract-ocr/CAOYxz4qiF5zhCggw-wkZt2VGMKMbx1G45xykhn%2BcarUbAito8Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/tesseract-ocr/CAOYxz4qiF5zhCggw-wkZt2VGMKMbx1G45xykhn%2BcarUbAito8Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduX0hLxaVizLY41OOF9uh_c2MR%2B%2BOq%3DY-0hGoz1mPHGYFg%40mail.gmail.com
> <https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduX0hLxaVizLY41OOF9uh_c2MR%2B%2BOq%3DY-0hGoz1mPHGYFg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAOYxz4pybRGmibUeUGpyz5AM5XbibsMcbi28oYVnLXg2jEq%2BnQ%40mail.gmail.com.

Reply via email to