Linux port of Cuneiform

cuneiform segfaults with png and produces no output with jpeg

Reported by post-factum on 2009-02-07
4
Affects Status Importance Assigned to Milestone
Cuneiform for Linux
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

post-factum (pfactum) on 2009-02-07
description: updated
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.

post-factum (pfactum) wrote :

There's no secret. Take it from attach.

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.

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
>

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.

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.

Serj Poltavskiy (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  Edit
Everyone can see this information.

Other bug subscribers