bug-ocrad
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-ocrad] internal error: character, index out of bounds


From: Tilman Hausherr
Subject: [Bug-ocrad] internal error: character, index out of bounds
Date: Wed, 11 Aug 2010 17:13:33 +0200 (CEST)

Hello Antonio,

I get this error:

ocrad: internal error: character, index out of bounds

This happens both with cygwin+gcc and Visual Studio. No command line
options are needed.

I can send you the test image if needed. All text has been
removed from it, there's only a bit of "noise" and a large black segment
at the left.

The problem is in Textblock::Textblock(), in
l.character( std::min( bi+1, l.characters() - 1 ) )

because l.characters() returns 0, the result of std::min is -1 and
Textline::character(i) has -1 as parameter.

The bitmap of blob b is full of ones, the dimensions are of that black
segment I mentioned. bi and mh are 0.

Thanks in advance,

Tilman





reply via email to

[Prev in Thread] Current Thread [Next in Thread]