PUMA_Init failed.

Bug #362224 reported by Barser
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cuneiform for Linux
Invalid
Undecided
Unassigned

Bug Description

Hello!
I've compiled cuneiform 0.6.0 on amd64 debian lenny.
And always when I try to recognize something it write:
"PUMA_Init failed."
and exit.

Here is end of strace output for:

open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=109138, ...}) = 0
mmap(NULL, 109138, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f61a74b8000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
munmap(0x7f61a74b8000, 109138) = 0
open("/home/barser/p/cuneiform/builddir/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/barser/p/cuneiform/builddir/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=109138, ...}) = 0
mmap(NULL, 109138, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f61a74b8000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
munmap(0x7f61a74b8000, 109138) = 0
unlink("crossed.txt") = -1 ENOENT (No such file or directory)
open("/home/barser/p/cuneiform/builddir/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/barser/p/cuneiform/builddir/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=109138, ...}) = 0
mmap(NULL, 109138, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f61a74b8000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
munmap(0x7f61a74b8000, 109138) = 0
open("/home/barser/p/cuneiform/builddir/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/barser/p/cuneiform/builddir/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=109138, ...}) = 0
mmap(NULL, 109138, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f61a74b8000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
munmap(0x7f61a74b8000, 109138) = 0
open("/home/barser/p/cuneiform/builddir/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/barser/p/cuneiform/builddir/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=109138, ...}) = 0
mmap(NULL, 109138, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f61a74b8000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/DPUMA.DLL", O_RDONLY) = -1 ENOENT (No such file or directory)
munmap(0x7f61a74b8000, 109138) = 0
mmap(NULL, 659456, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f61a7432000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f61a73f1000
mmap(NULL, 331776, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f61a73a0000
chdir(".") = 0
brk(0x24e1000) = 0x24e1000
brk(0x2504000) = 0x2504000
mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f61a737f000
stat("C:\\method.txt", 0x7fffb74c9950) = -1 ENOENT (No such file or directory)
open("", O_RDONLY) = -1 ENOENT (No such file or directory)
open("", O_RDONLY) = -1 ENOENT (No such file or directory)
open("", O_RDONLY) = -1 ENOENT (No such file or directory)
open("", O_RDONLY) = -1 ENOENT (No such file or directory)
write(1, " \n"..., 3
) = 3
munmap(0x7f61a74d3000, 2297856) = 0
munmap(0x7f61a7432000, 659456) = 0
munmap(0x7f61a73f1000, 266240) = 0
munmap(0x7f61a73a0000, 331776) = 0
munmap(0x7f61a737f000, 135168) = 0
munmap(0x7f61af3c4000, 163840) = 0
write(2, "PUMA_Init failed.\n"..., 18PUMA_Init failed.
) = 18
exit_group(1) = ?

Revision history for this message
Barser (baraserg) wrote :

it tries to open PUMA.dll, but i don't have such library. Have libpuma.so instead.... ?

Revision history for this message
deleted (to-delete) wrote : Re: [Bug 362224] [NEW] PUMA_Init failed.

On Thursday 16 April 2009 11:46:48 Barser wrote:
> Public bug reported:
>
> Hello!
> I've compiled cuneiform 0.6.0 on amd64 debian lenny.
> And always when I try to recognize something it write:
> "PUMA_Init failed."
> and exit.
Have you tried to use the package from
http://gitorious.org/projects/cuneiform-deb-pkg or did you just use the
official sources?
--
Robert Wohlrab

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

If you don't run "make install" you have to point Cuneiform to its data files with the environment variable CF_DATADIR. Something like this

export CF_DATADIR=/home/barser/p/cuneiform/datafiles
./cuneiform <blaa blaa>

Revision history for this message
Barser (baraserg) wrote :

I used official sources.... Just didn't know about that package, want to try it now, thanks )

Here is one interesting thing I just found, maybe it's bug...
If i enter following before compiling:

cmake -DCMAKE_BUILD_TYPE=Debug ../cuneiform-0.6.0
or
cmake -DCMAKE_BUILD_TYPE=Release ../cuneiform-0.6.0
then make then optionally make install
I recieve the bug from the top of this thread.

BUT

if i enter this:
cmake ../cuneiform-0.6.0
i.e. without any definition of CMAKE_BUILD_TYPE variable, it's ok!
strace tells that cuneiform now tries to open libpuma.so instead of PUMA.DLL.

Btw, thanks guys for your support!

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

Is this still an issue?

Revision history for this message
Hanky (hankschwie) wrote :

Hi!

I have the same problem trying to use version 0.8.0 on an ubutu-jaunty-32-bit machine. I was able to build a package without libmagick++, and it worked, but wanted to use other formats beside .bmp, version 3.

The suggestion made by Barser doesn't work for me; how would I produce a "strace"?

so long
hank

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

man strace

Revision history for this message
Hanky (hankschwie) wrote :

Thanks - similar thing here: a file called "DPUMA.DLL" is searched for, but not existing... Need the strace-output?

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

That should not matter. If you can run strace with Imagemagick enabled and disabled and post the difference, that might help.

Revision history for this message
Hanky (hankschwie) wrote :

This is strange - I played around a bit: copied libpuma.so and called in DPUMA.DLL (in /user/lib), created a folder /usr/locale/share/cuneiform and moved all files from /datafiles there (in the strace i found this:

open("/usr/local/share/cuneiform/rec4cour.dat", O_RDONLY) = -1 ENOENT (No such file or directory)
open("", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/cuneiform/rec4inc.dat", O_RDONLY) = -1 ENOENT (No such file or directory)

and now it works! I can use .png-files as input...

I compiled the programm using -DCMAKE_INSTALL_PREFIX=/usr swich;
I'll try again without...

Revision history for this message
Hanky (hankschwie) wrote :

Yep, that solved it - so don't use -DCMAKE_INSTALL_PREFIX=/usr, and everything is fine :-)
/usr/local/share/cuneiform/ is created with all the files from /datafiles in it, no DPUMA.DLL seems to be needed...

Very cool program, I'm just writing an article for the german ubuntuusers-wiki about it.

http://wiki.ubuntuusers.de/Baustelle/Cuneiform ,

it's in german, I'm afraid, and not done yet, but in a few days it should be readable ...
Does anyone know if and how cuneiform could be integrated into XSane? Well, I'll try, I thing it should be possible like it is for tesseract. (see http://wiki.ubuntuusers.de/XSane)

so long
hank

Revision history for this message
yaleks (yaleks) wrote :

> Does anyone know if and how cuneiform could be integrated into XSane?

Already done - https://lists.launchpad.net/cuneiform/msg00349.html (YAGF).

Revision history for this message
Hanky (hankschwie) wrote :

@ yaleks: Pretty cool, thanks! Will other formats be possible, as well? I like the rtf-outputs of cuneiform, and smarttext is usefull, too.

I'll have a look at the sourcecode, perhaps I can figure something to that effect.

Changed in cuneiform-linux:
status: New → Invalid
Revision history for this message
MaxiPunkt (maxantispam) wrote :

This bug is still valid for me (using Mandriva-Linux 2010.0).

$ cuneiform -l ger -f html -o test.html test.tiff
Cuneiform for Linux 0.8.0
PUMA_Init failed.

I built an RPM of cuneiform 0.8.0 source-code myself.

Doing this means using Mandriva's %cmake RPM-macro. I'll attach all cmake-options of this macro to make things more clearly.

Beside the main problem "PUMA_Init" I could see that cuneiform has issues with CFLAG "-Werror=format-security" which is used by default with Mandriva's %cmake-macro - the build breaks with several "format not a string literal and no format arguments"-erros unless I disable this specific (but default) CFLAG!

Regarding "PUMA_Init"-error I'll attach a strace-output as well.

Revision history for this message
MaxiPunkt (maxantispam) wrote :
Revision history for this message
MaxiPunkt (maxantispam) wrote :
Revision history for this message
obgr_seneca (oliver-mandrivauser) wrote :

Still valid with cuneiform-0.9.0 using Mandriva-2010.0 and an rpm package built by myself.

Revision history for this message
Yury V. Zaytsev (zyv) wrote :
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.