Bug 3683 - ufraw does not work
Summary: ufraw does not work
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords: validated_update
: 4137 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-09 21:18 CET by Colegota El Villano
Modified: 2012-03-11 01:56 CET (History)
6 users (show)

See Also:
Source RPM: lensfun-0.2.5-1.1.mga1.src.rpm
CVE:
Status comment:


Attachments
liblensfun0-0.2.5-2.mga2.i586.rpm (40.74 KB, application/x-rpm)
2011-12-12 02:16 CET, Funda Wang
Details

Description Colegota El Villano 2011-12-09 21:18:38 CET
Hi!

I've installed ufraw rpm but when tryin to execute it gives a segment violation error (if you launch it from konsole).

Complete rpm info it's 

        Versión: 0.18-1.mga1
        Grupo: Gráficos
        Arquitectura: i586
        Tamaño: 2423 KB
        Medio: Core Release

Just checked to compile from source downloaded from ufraw.sourceforge.net and it works, but not the rpm version.

Regards,
Colegota
Comment 1 Manuel Hiebel 2011-12-09 21:29:33 CET
Hi, thanks for reporting this bug.

please attach the error
Comment 2 Colegota El Villano 2011-12-10 17:11:02 CET
Sorry, I believed that was explained...

When you launch ufraw, first action that program does it's show you a file dialog to choose a raw image to work. 
When you select a file, program crashes. If you've launched from a c/konsole then the text "Segment violation" ("Violación de segmento" in Spanish) it's the only output.

Not sure if it helps... but I did compiled and installed from ufraw site and it works.
There is a big different size between executables:

[colegota@localhost ~]$ ls -l /usr/bin/ufraw
-rwxr-xr-x 1 root root 939028 feb 26  2011 /usr/bin/ufraw*
[colegota@localhost ~]$ ls -l /usr/local/bin/ufraw
-rwxr-xr-x 1 root root 2623493 dic  6 18:48 /usr/local/bin/ufraw*

First one it's from Mageia rpm. Feb 26 must be package date, but was installed on Dic 6.

BTW I use Canon's .CR2 raw files.

Please let me know if you need any additional information.

Regards,
Colegota
Comment 3 Manuel Hiebel 2011-12-10 17:49:02 CET
ok sorry also misunderstand in my part.. :)

So you can use gdb to debug:
1) enable the "core release debug"
2) install the following packages: gdb ufraw-debug
3) run the following command from a terminal:
   gdb -q ufraw
4) then type "run"
5) when it segfaults, type "bt" and copy back the stack trace in a file you'll
attach (not paste) to this bug report
Thanks

maybe related to  bug 2380

Keywords: (none) => Triaged
CC: (none) => fundawang, pterjan

Comment 4 Pascal Terjan 2011-12-10 18:50:33 CET
It works fine here.
Does it also crash if you open a file with "ufraw foo.CR2" or is it related to using the file chooser?
Does it happen only under kde?
Comment 5 Pascal Terjan 2011-12-10 19:00:52 CET
Oh sorry I thought it was a cauldron bug, I'll try on 1 later.
Comment 6 Pascal Terjan 2011-12-10 19:11:38 CET
It works fine for me on 1 too.
Comment 7 Colegota El Villano 2011-12-11 13:33:53 CET
Pascal, I'm on Mageia 1 KDE, don't know about other configurations.
The only way to launch ufraw passes by use the file chooser, and did test with many different CR2 files.

Manuel, sorry, I'm not a developer, just an user reporting a problem. Can't follow your instructions.

Regards,
Colegota
Comment 8 Pascal Terjan 2011-12-11 14:37:12 CET
No, this is not the only way to open it.
You can open konsole and type ufraw File.CR2 to open that file (I don't use konsole but I guess you can also type ufraw, a space, and then drag the file onto the konsole).
Comment 9 Colegota El Villano 2011-12-11 23:07:01 CET
You are right Pascal, there is more ways to launch it but with the same result.

From console specifying %f:
[colegota@localhost 01-ktm]$ ufraw IMG_7004.CR2
Violación de segmento (segment violation)


From gqview->Editing in gimp (gimp %f)->then Gimp try to call ufraw and gives this error:
"La apertura de «/media/labora/labo/mapamundi/nepal-2011/01-ktm/IMG_6835.CR2» ha fallado: El procedimiento «file-ufraw-load» no devolvió ningún valor"

Translation is more or less "Open xxxx/file.CR2 has failed. «file-ufraw-load» does not returned any value."

Same answer if you try to open a .CR2 file directly from gimp's file open dialog.

Regards,
Colegota
Comment 10 Pascal Terjan 2011-12-11 23:12:32 CET
Thanks, so it is related to loading the file itself and not the file dialog.
Comment 11 Funda Wang 2011-12-11 23:15:31 CET
Is it the same with this one?
https://bugzilla.redhat.com/show_bug.cgi?id=631674
Comment 12 Funda Wang 2011-12-12 02:16:49 CET
Created attachment 1226 [details]
liblensfun0-0.2.5-2.mga2.i586.rpm

Reporter, would you mind to check if liblensfun0 from cauldron works for you? Or, just install the attached pacakge.
Funda Wang 2011-12-12 02:17:23 CET

Attachment 1226 mime type: audio/x-pn-realaudio-plugin => application/x-rpm

Comment 13 Colegota El Villano 2011-12-18 20:39:56 CET
Sorry to spend some days to answer but I'm not at home and with enough time everyday.

Funda, yes, it seems the same bug that you link in Red Hat's bugzilla. In fact, if I launch it as

$ ufraw --lensfun=none

It works. But don't know how to get the same effect if called from GIMP. My usual work flow it's watching pictures in gqview, then right click and Edit in... The gimp. gqview call gimp with 'gimp %f' for .CR2 file and then gimp calls ufraw giving back an error.

At this moment I can't install Cauldron.

BTW I did installed Mageia 1 Live CD instead of full DVD. Should I miss some package perhaps?

Regards,
Colegota
Comment 14 Marja Van Waes 2012-02-01 08:51:29 CET
bug 4137 might be a duplicate of this one

CC: (none) => marja11

Comment 15 Funda Wang 2012-02-01 11:34:57 CET
*** Bug 4137 has been marked as a duplicate of this bug. ***

CC: (none) => alainderaedt

Comment 16 Funda Wang 2012-02-01 11:38:23 CET
Advisory text:

lensfun package shipped in Mageia 1 contains a bug, which will make downstream pacakge such as ufraw to crash. The updated packages fixed this bug.

Status: NEW => ASSIGNED
Assignee: bugsquad => qa-bugs
Source RPM: ufraw 0.18-1.mga1 => lensfun-0.2.5-1.1.mga1.src.rpm

Comment 17 claire robinson 2012-02-01 16:57:26 CET
I've not been able to reproduce the segfault so far on x86_64

I downloaded some sample raw images from http://www.rawsamples.ch/index_en.php in canon format and nikon format.

Does this only affect i586 possibly?
Comment 18 claire robinson 2012-02-01 17:14:48 CET
Confirmed the segfault, every time i586.
Comment 19 claire robinson 2012-02-01 17:20:12 CET
Tested OK x86_64 and i586

I changed the lenses and camera in the lens tab also. It seems to have cured it :)

lensfun doesn't require liblensfun0 is that intentional?
Comment 20 claire robinson 2012-02-05 16:59:54 CET
ping Funda
Comment 21 Funda Wang 2012-02-05 22:57:57 CET
(In reply to comment #19)
> Tested OK x86_64 and i586
> 
> I changed the lenses and camera in the lens tab also. It seems to have cured it
> :)
> 
> lensfun doesn't require liblensfun0 is that intentional?
Yes, because lensfun package only contains some data files, there is nothing with it. And, we have already make liblensfun0 requiring lensfun for data files.
Comment 22 claire robinson 2012-02-05 23:37:03 CET
Thanks Funda, validating then.

Advisory text:
-----------------
lensfun package shipped in Mageia 1 contains a bug which causes downstream
packages such as ufraw to crash. The updated packages fix this bug.
-----------------

SRPM: lensfun-0.2.5-1.1.mga1.src.rpm


Could sysadmin please push from core/updates_testing to core/updates

Thankyou!

Keywords: Triaged => validated_update
CC: (none) => sysadmin-bugs

Comment 23 Thomas Backlund 2012-02-07 12:57:16 CET
update pushed

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED

Comment 24 Colegota El Villano 2012-03-10 19:38:55 CET
Hi again,

when I reported this two months ago I've finished working by compiling from source. RPM never worked for me.

Today, after some weeks without use ufraw, it gives me also segment violation ("violación de segmento" in Spanish) for the compiled version. Also for rpm with last lensfun package.

Since I didn't updated nor upgraded compiled version I suppose that some other software upgrade can be the reason, but I don't know.

I'm using Mageia 1 (up to date) and ufraw 0.18 (1.mga1 for rpm).

Can someone take a look?

Thanks,
Colegota

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 25 claire robinson 2012-03-10 19:59:21 CET
ufraw still works for me here i586 opening a CR2 file.

$ rpm -q ufraw
ufraw-0.18-1.mga1


$ rpm -qa | grep lensfun
liblensfun-devel-0.2.5-1.1.mga1
liblensfun0-0.2.5-1.1.mga1
lensfun-0.2.5-1.1.mga1


What are you doing when it segfaults?
Comment 26 Colegota El Villano 2012-03-10 21:47:02 CET
I'm trying to open CR2 and dng files.
Ufraw gui appears, it loads the file and when it finish to load it crashes.

My otputs:

$ rpm -q ufraw
ufraw-0.18-1.mga1

$ rpm -qa | grep lensfun
lensfun-0.2.5-1.1.mga1
liblensfun0-0.2.5-1.1.mga1
Comment 27 claire robinson 2012-03-10 21:58:06 CET
If you create a new user on your system and log in as that new user, does it still crash?
Comment 28 Colegota El Villano 2012-03-11 01:56:43 CET
Claire thanks, I'm feel little stupid now...

I did try with superuser and it worked, then I tried with xguest user and works too, so then I tried again with my normal user and then it worked!

I suppose there have been some moment or session problem, don't know why the errors and did not tried to open a new session or restart my computer...

Well, I changed the status to solved again and thanks for the help.

Best regards!
Colegota

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.