cuneiform segfaults with png and produces no output with jpeg

Bug #326635 reported by post-factum
4
Affects Status Importance Assigned to Milestone
Cuneiform for Linux
New
Undecided
Unassigned

Bug Description

Starting program: /usr/bin/cuneiform out0001.png
[Thread debugging using libthread_db enabled]
Cuneiform for Linux 0.6.0
[New Thread 0xb6dba6f0 (LWP 28641)]
The image depth is 8 at this point.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6dba6f0 (LWP 28641)]
0xb728f996 in memcpy () from /lib/i686/cmov/libc.so.6

Debian Unstable, 2.6.28.4+bfq+tuxonice

libc 2.8+20080809-1

description: updated
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

Please attach the problematic image as an attachment to this bug.

If you can't do that because the document is secret, then unfortunately there's little we can do for you.

Revision history for this message
post-factum (post-factum) wrote :

There's no secret. Take it from attach.

Revision history for this message
Kuzemko Aleksandr (kuzemkoa-rambler) wrote :

I try this image on my Gentoo amd64 system and it segfault.
I convert image to 1-bit, after this it recognize it without segfault.

Revision history for this message
Polevoy Dmitry (openocr-polevoy) wrote : Re: [Bug 326635] Re: cuneiform segfaults with png and produces no output with jpeg

I convert image to bmp with 24, 8 and 1 bit per pixel. After that my version
(Win32 + MSVC9) recognize it without any problems.
1. You can try convert image to plain 24 bpp bmp and recog it without
ImageMagic. If it fails the problem can be in 64 version.
2. You can convert image to any format with ImageMagic and if it fails, the
problem can be in ImageMagic. Some time ago I have troubles (Win32, MSVC)
with gray images in ImageMagic.

2009/2/8 Kuzemko Aleksandr <email address hidden>

> I try this image on my Gentoo amd64 system and it segfault.
> I convert image to 1-bit, after this it recognize it without segfault.
>
> --
> cuneiform segfaults with png and produces no output with jpeg
> https://bugs.launchpad.net/bugs/326635
> You received this bug notification because you are a member of Cuneiform
> Linux, which is the registrant for Cuneiform for Linux.
>
> Status in Linux port of Cuneiform: New
>
> Bug description:
> Starting program: /usr/bin/cuneiform out0001.png
> [Thread debugging using libthread_db enabled]
> Cuneiform for Linux 0.6.0
> [New Thread 0xb6dba6f0 (LWP 28641)]
> The image depth is 8 at this point.
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb6dba6f0 (LWP 28641)]
> 0xb728f996 in memcpy () from /lib/i686/cmov/libc.so.6
>
> Debian Unstable, 2.6.28.4+bfq+tuxonice
>
> libc 2.8+20080809-1
>

Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

On OSX the image does not segfault, but produces empty output. Converting it to 1-bit png and recognizing that works just fine.

Revision history for this message
Yury V. Zaytsev (zyv) wrote :

MSVC 2008 SP1 build: works fine for 1bit PNG (converted with Gimp, but crashes for RGB and original image).

For original image:

Problem signature:
  Problem Event Name: APPCRASH
  Application Name: cuneiform.exe
  Application Version: 0.0.0.0
  Application Timestamp: 49919957
  Fault Module Name: MSVCR90.dll
  Fault Module Version: 9.0.30729.1
  Fault Module Timestamp: 488ef6c5
  Exception Code: c0000005
  Exception Offset: 0003aca0
  OS Version: 6.0.6001.2.1.0.768.2
  Locale ID: 1049
  Additional Information 1: ac9d
  Additional Information 2: 9c8388b76632655305bc03d36e9fd338
  Additional Information 3: 8ab0
  Additional Information 4: 8fa4716783875f6f5470587480d4244b

For 32bit image, I get no crash report, but just that:

C:\Users\ZYV\Documents\test\cuneiform-linux\test>"./../test.msvc/cuneiform.exe" -l eng -f smarttext -o "./../t
est/test.msvc"/out0001-rgb.txt out0001-rgb.png
Cuneiform for Linux 0.6.0
The image depth is 32 at this point.

PUMA_XFinalrecognition failed.

Revision history for this message
Serge Poltavsky (serge-uliss) wrote :

Fixed in my branch, rev. 938 by converting image to 24bpp via ImageMagick

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.