After I sent my note, I realized that the real problem wasn't that it was
pointing to the wrong place, but rather that it was pointing to a place
with an invalid/corrupt (ie from a different version) tessdata file. Any
chance you've got a mismatched language file or that it got
corrupted/truncated during the download?

Tom

On Mon, Mar 14, 2016 at 9:35 PM, MiguelArmas <[email protected]>
wrote:

> Thanks Tom,
>
> TESSDATA_PREFIX is set to point to tessdata parent:
>
> [user@server ~]$ echo $TESSDATA_PREFIX
> /usr/local/share/
> [user@server ~]$ tesseract --list-langs
> fseek(data_file_, static_cast<size_t>(offset_table_[tessdata_type]),
> SEEK_SET) == 0:Error:Assert failed:in file ../ccutil/tessdatamanager.h,
> line 173
> Segmentation fault
>
> I haven't been able to find what the problem is and nothing comes when
> googling the error on line 173.
> That's why I decided to post here and hope someone can help.
>
> Thanks again,
>
> Miguel
>
>
> On Monday, 14 March 2016 12:53:41 UTC-4, Tom Morris wrote:
>>
>> On Monday, March 14, 2016 at 3:25:16 AM UTC-4, MiguelArmas wrote:
>>>
>>>
>>> I'm getting the following error when running tesseract --list-langs
>>>
>>> fseek(data_file_, static_cast<size_t>(offset_table_[tessdata_type]),
>>> SEEK_SET) == 0:Error:Assert failed:in file ../ccutil/tessdatamanager.h,
>>> line 173
>>> Segmentation fault
>>>
>>> I have compiled tesseract 3.04.01 and leptonica 1.73 on Amazon EC2
>>> linux. eng.trainneddata downloaded from
>>> https://github.com/tesseract-ocr/tessdata is placed inside tessdata/
>>>
>>> Any idea what's wrong?
>>>
>>
>> I'd double check where your TESSDATA_PREFIX points to. It should be the
>> *parent* of the tessdata directory. I get a similar symptom if I run
>> tesseract --list-langs with the variable set wrong (which is a bug, but one
>> that's on a pretty rare path).
>>
>> Tom
>>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAE9vqEG0P%3DtT1q7RA0VA9k6QOOa7BcDonS%2BJUvYFdESxSHqUiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to