-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
LSTM:Training - Error - ccutil/genericvector.h:696: core dumped #561
Comments
Can you provide a stack trace? |
gdb --args
|
Still getting this error with latest build with --enable-debug
|
Sorry fixed in
b86b4fa
Please try again. I could do with a test for that...
…On Mon, May 8, 2017 at 5:03 AM, Shreeshrii ***@***.***> wrote:
Still getting this error with latest build with --enable-debug
Iteration 699: ALIGNED TRUTH : नियन कुदकि के टपि जा ... हइऽऽऽयाँ ! पैदल तऽ हइयाँ, बकि
Iteration 699: BEST OCR TEXT : नियन कदक के पि जा हाल त हइया बकि
File /tmp/tmp.21BVvgsmzO/bih/bih.SakalBharati.exp0.lstmf page 28 :
Mean rms=4.633%, delta=42.555%, train=94.938%(98.768%), skip ratio=0%
[Thread 0x7f5cbb4d0700 (LWP 17917) exited]
[New Thread 0x7f5cbb4d0700 (LWP 17918)]
lstmtraining: ../ccutil/genericvector.h:697: T& GenericVector<T>::operator[](int) const [with T = char]: Assertion `index >= 0 && index < size_used_' failed.
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f5cbb4d0700 (LWP 17918)]
0x00007f5cc0486c37 in __GI_raise ***@***.***=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 0x00007f5cc0486c37 in __GI_raise ***@***.***=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007f5cc048a028 in __GI_abort () at abort.c:89
#2 0x00007f5cc047fbf6 in __assert_fail_base (fmt=0x7f5cc05d03b8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
***@***.***=0x7f5cc130e4a0 "index >= 0 && index < size_used_", ***@***.***=0x7f5cc130df28 "../ccutil/genericvector.h", ***@***.***=697,
***@***.***=0x7f5cc132f480 <_ZZNK13GenericVectorIcEixEiE19__PRETTY_FUNCTION__> "T& GenericVector<T>::operator[](int) const [with T = char]")
at assert.c:92
#3 0x00007f5cc047fca2 in __GI___assert_fail (assertion=0x7f5cc130e4a0 "index >= 0 && index < size_used_", file=0x7f5cc130df28 "../ccutil/genericvector.h", line=697,
function=0x7f5cc132f480 <_ZZNK13GenericVectorIcEixEiE19__PRETTY_FUNCTION__> "T& GenericVector<T>::operator[](int) const [with T = char]") at assert.c:101
#4 0x00007f5cc128fb63 in GenericVector<char>::operator[] (this=<optimized out>, this=<optimized out>, index=0) at ../ccutil/genericvector.h:697
#5 0x00007f5cc1290318 in operator[] (this=0x7fffd06bde40, this=0x7fffd06bde40, index=0) at lstmtrainer.cpp:920
#6 tesseract::LSTMTrainer::ReadTrainingDump ***@***.***=0x7f5cbb4cf640, data=..., ***@***.***=0x7f5cbb4cf640) at lstmtrainer.cpp:921
#7 0x000000000040b03e in tesseract::LSTMTester::RunEvalSync ***@***.***=0x7fffd06bddd0, iteration=0, training_errors=<optimized out>, model_data=...,
training_stage=0) at lstmtester.cpp:86
#8 0x000000000040b539 in tesseract::LSTMTester::ThreadFunc (lstmtester_void=0x7fffd06bddd0) at lstmtester.cpp:123
#9 0x00007f5cbe348184 in start_thread (arg=0x7f5cbb4d0700) at pthread_create.c:312
#10 0x00007f5cc054a37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb)
(gdb) frame 1
#1 0x00007f5cc048a028 in __GI_abort () at abort.c:89
89 abort.c: No such file or directory.
(gdb) frame 2
#2 0x00007f5cc047fbf6 in __assert_fail_base (fmt=0x7f5cc05d03b8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
***@***.***=0x7f5cc130e4a0 "index >= 0 && index < size_used_", ***@***.***=0x7f5cc130df28 "../ccutil/genericvector.h", ***@***.***=697,
***@***.***=0x7f5cc132f480 <_ZZNK13GenericVectorIcEixEiE19__PRETTY_FUNCTION__> "T& GenericVector<T>::operator[](int) const [with T = char]")
at assert.c:92
92 assert.c: No such file or directory.
(gdb) frame 3
#3 0x00007f5cc047fca2 in __GI___assert_fail (assertion=0x7f5cc130e4a0 "index >= 0 && index < size_used_", file=0x7f5cc130df28 "../ccutil/genericvector.h", line=697,
function=0x7f5cc132f480 <_ZZNK13GenericVectorIcEixEiE19__PRETTY_FUNCTION__> "T& GenericVector<T>::operator[](int) const [with T = char]") at assert.c:101
101 in assert.c
(gdb) frame 4
#4 0x00007f5cc128fb63 in GenericVector<char>::operator[] (this=<optimized out>, this=<optimized out>, index=0) at ../ccutil/genericvector.h:697
697 assert(index >= 0 && index < size_used_);
(gdb) frame 5
#5 0x00007f5cc1290318 in operator[] (this=0x7fffd06bde40, this=0x7fffd06bde40, index=0) at lstmtrainer.cpp:920
920 LSTMTrainer* trainer) {
(gdb) frame 6
#6 tesseract::LSTMTrainer::ReadTrainingDump ***@***.***=0x7f5cbb4cf640, data=..., ***@***.***=0x7f5cbb4cf640) at lstmtrainer.cpp:921
921 return trainer->ReadSizedTrainingDump(&data[0], data.size());
(gdb) frame 7
#7 0x000000000040b03e in tesseract::LSTMTester::RunEvalSync ***@***.***=0x7fffd06bddd0, iteration=0, training_errors=<optimized out>, model_data=...,
training_stage=0) at lstmtester.cpp:86
86 if (!trainer.ReadTrainingDump(model_data, &trainer)) {
(gdb) frame 8
#8 0x000000000040b539 in tesseract::LSTMTester::ThreadFunc (lstmtester_void=0x7fffd06bddd0) at lstmtester.cpp:123
123 lstmtester->test_result_ = lstmtester->RunEvalSync(
(gdb) frame 9
#9 0x00007f5cbe348184 in start_thread (arg=0x7f5cbb4d0700) at pthread_create.c:312
312 pthread_create.c: No such file or directory.
(gdb)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#561 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL056bih7QudDYsxtY8yGjr7FhdJIQxgks5r3wSDgaJpZM4LJ7Lz>
.
--
Ray.
|
Still getting the error
|
I tried with a different set of input files for training and eval, same error. Seems to happen at first checkpoint writing after train % falls below 100.
|
Checked with eng, same set of input files. fails when I give the --eval_listfile. Only train_listfile - NO ERROR
ERROR - even when using both train and eval with same set of files
|
Related #644 |
Latest code change has reverted the fix for this issue
|
… On Sat, Jul 15, 2017 at 1:04 AM, Shreeshrii ***@***.***> wrote:
@theraysmith <https://github.com/theraysmith>
Latest code change has reverted the fix for this issue
Iteration 99: ALIGNED TRUTH : च छ ज झ ञ उ ऊ ट ठ ड ढ ण ऋ ॠ त थ
Iteration 99: BEST OCR TEXT :
File /tmp/tmp.m82dWGBYZW/mar/mar.Aparajita.exp0.lstmf page 3 :
Mean rms=5.427%, delta=53.011%, train=110.2%(100%), skip ratio=0%
lstmtraining: genericvector.h:713: T& GenericVector<T>::operator[](int) const [with T = char]: Assertion `index >= 0 && index < size_used_' failed.
Aborted (core dumped)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#561 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL056YjQzLN_XVXLe8ENvek_1eABxTHTks5sOHJ2gaJpZM4LJ7Lz>
.
--
Ray.
|
Still getting the error, as of commit f4f66f8:
Version
Training command used
|
Error happens later with finetune command - same set of files
Error message - core dumped
|
There might be another call site. Can you generate a stack trace?
…On Sat, Jul 15, 2017 at 9:48 PM, Shreeshrii ***@***.***> wrote:
Error happens later with finetune command - same set of files
nice lstmtraining --train_listfile ~/tesstutorial/hintest/hin.training_files.txt --eval_listfile ~/tesstutorial/hineval/hin.training_files.txt --continue_from ~/tesstutorial/hintest/hin.lstm --model_output ~/tesstutorial/hintest/hintune --target_error_rate 0.01 --perfect_sample_delay 19 --debug_interval -1
Error message - core dumped
Iteration 199: ALIGNED TRUTH : मुद्राओं घुसपैठ व्हिटफोर्ड इंटरनेट
Iteration 199: BEST OCR TEXT : मुद्राओं घुसपैठ व्हिटफोर्ड इंटरनेट
File /tmp/tmp.7Z9YtK1Bru/hin/hin.FreeSans.exp0.lstmf page 905 (Perfect):
Mean rms=0.276%, delta=0.118%, train=0.285%(1.056%), skip ratio=2%
lstmtraining: ../ccutil/genericvector.h:713: T& GenericVector<T>::operator[](int) const [with T = char]: Assertion `index >= 0 && index < size_used_' failed.
Aborted (core dumped)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#561 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL056b9wIbO9wayBkXcecWY-qlLPdjx2ks5sOZYfgaJpZM4LJ7Lz>
.
--
Ray.
|
with finetune command
|
with replace top layer command
|
Did my most recent commit fix it?
45fb7dd
…On Sat, Jul 15, 2017 at 10:53 PM, Shreeshrii ***@***.***> wrote:
with replace top layer command
(gdb) backtrace
#0 0x00007ffff628bc37 in __GI_raise ***@***.***=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff628f028 in __GI_abort () at abort.c:89
#2 0x00007ffff6284bf6 in __assert_fail_base (fmt=0x7ffff63d9018 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
***@***.***=0x7ffff70f5be0 "index >= 0 && index < size_used_",
***@***.***=0x7ffff70f5668 "../ccutil/genericvector.h", ***@***.***=713,
***@***.***=0x7ffff7116d20 <_ZZNK13GenericVectorIcEixEiE19__PRETTY_FUNCTION__> "T& GenericVector<T>::operator[](int) const [with T = char]") at assert.c:92
#3 0x00007ffff6284ca2 in __GI___assert_fail (assertion=0x7ffff70f5be0 "index >= 0 && index < size_used_",
file=0x7ffff70f5668 "../ccutil/genericvector.h", line=713,
function=0x7ffff7116d20 <_ZZNK13GenericVectorIcEixEiE19__PRETTY_FUNCTION__> "T& GenericVector<T>::operator[](int) const [with T = char]") at assert.c:101
#4 0x00007ffff7071983 in GenericVector<char>::operator[] (this=<optimized out>, this=<optimized out>, index=0)
at ../ccutil/genericvector.h:713
#5 0x00007ffff7074dd5 in operator[] (this=<optimized out>, this=<optimized out>, index=<optimized out>) at lstmtrainer.cpp:1335
#6 tesseract::LSTMTrainer::UpdateErrorGraph ***@***.***=0x7fffffffd6d0, ***@***.***=100,
***@***.***=109.818, model_data=..., ***@***.***=0x845d00) at lstmtrainer.cpp:1272
#7 0x00007ffff70780e7 in tesseract::LSTMTrainer::MaintainCheckpoints ***@***.***=0x7fffffffd6d0, ***@***.***=0x845d00,
***@***.***=0x7fffffffd2a0) at lstmtrainer.cpp:338
#8 0x0000000000407712 in main (argc=1, argv=0x7fffffffe398) at lstmtraining.cpp:197
(gdb)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#561 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL056drHnXKXmXSALw-Y7CNl8ynuEGB5ks5sOaVhgaJpZM4LJ7Lz>
.
--
Ray.
|
Yes, it did. Thank you, @stweil and @theraysmith . |
The text was updated successfully, but these errors were encountered: