Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1366860 - UFRaw needs a BuildRequires on lensfun-devel
Summary: UFRaw needs a BuildRequires on lensfun-devel
Keywords:
Status: CLOSED DUPLICATE of bug 1350210
Alias: None
Product: Fedora
Classification: Fedora
Component: ufraw
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-13 15:38 UTC by Deepak Bhole
Modified: 2016-10-25 17:40 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-25 17:40:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Deepak Bhole 2016-08-13 15:38:31 UTC
UFRaw currently does not have a BuildRequires on lensfun-devel, and as a result, gets built without lensfun support. This can be verified by looking at the build log[1] where it says:
configure: lens defects correction support using lensfun: no

Without lensfun support, there is no apply lens correction.

Please add the BR and rebuild -- I tried a rebuild locally with lensfun-devel on the system and ufraw builds with lens correction support and works fine.


1: https://kojipkgs.fedoraproject.org//packages/ufraw/0.22/2.fc24/data/logs/x86_64/build.log

Comment 1 Deepak Bhole 2016-08-13 15:39:23 UTC
s/there is no apply lens correction/there is no way to apply lens correction

Comment 2 Sergio Basto 2016-08-14 00:17:36 UTC
Please read : https://bugzilla.redhat.com/show_bug.cgi?id=1350210 
as workaround I'm building officially without lensfun 
  
This is temporary fix "until we find a fix". 
From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787569 and other reports is not just a crash also result in artifacts in some images ... so shouldn't be so easy to fix . 

I just report it upstream: https://sourceforge.net/p/ufraw/bugs/406/

Comment 3 Deepak Bhole 2016-08-16 14:15:17 UTC
(In reply to Sergio Monteiro Basto from comment #2)
> Please read : https://bugzilla.redhat.com/show_bug.cgi?id=1350210 
> as workaround I'm building officially without lensfun 
>   
> This is temporary fix "until we find a fix". 
> From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787569 and other
> reports is not just a crash also result in artifacts in some images ... so
> shouldn't be so easy to fix . 
> 
> I just report it upstream: https://sourceforge.net/p/ufraw/bugs/406/

Ah, I did not realize that this was done intentionally. It is unfortunate that there is no fix yet; I did not encounter a single crash when I processed 100+ raw photos over the weekend.

Thanks for the pointer; please feel free to close this issue. I will continue to use my local ufraw build in the mean time.

Comment 4 Sergio Basto 2016-08-16 14:39:37 UTC
(In reply to Deepak Bhole from comment #3)

> Ah, I did not realize that this was done intentionally. It is unfortunate
> that there is no fix yet; I did not encounter a single crash when I
> processed 100+ raw photos over the weekend.

so you could use ufraw-0.22-1.fc24 [1] without crashes? 

[1] http://koji.fedoraproject.org/koji/buildinfo?buildID=766945

or you use ufraw-0.21 ?  ufraw-0.22-1.fc24 and your local build have any difference ? 

> Thanks for the pointer; please feel free to close this issue. I will
> continue to use my local ufraw build in the mean time.

Thanks for the report ...

Comment 5 Deepak Bhole 2016-08-16 22:03:59 UTC
(In reply to Sergio Monteiro Basto from comment #4)
> (In reply to Deepak Bhole from comment #3)
> 
> > Ah, I did not realize that this was done intentionally. It is unfortunate
> > that there is no fix yet; I did not encounter a single crash when I
> > processed 100+ raw photos over the weekend.
> 
> so you could use ufraw-0.22-1.fc24 [1] without crashes? 
> 
> [1] http://koji.fedoraproject.org/koji/buildinfo?buildID=766945
> 
> or you use ufraw-0.21 ?  ufraw-0.22-1.fc24 and your local build have any
> difference ? 
> 

I am using ufraw 0.22-2, which I rebuilt on my F24 system with lensfun-devel installed. Here are the versions:

$ rpm -q ufraw lensfun
ufraw-0.22-2.fc24.x86_64
lensfun-0.3.2-2.fc24.x86_64

No changes were made to the code or to the spec file. I just downloaded the srpm from koji and ran 'rpmbuild --rebuild ufraw-0.22-2.fc24.src.rpm' after making sure that I had lensfun-devel installed.

FWIW, I am using raw images in ARW format from a Sony RX-100 (first gen) camera.

Comment 6 Sergio Basto 2016-08-16 22:43:18 UTC
So your package should be equal to ufraw-0.22-1.fc24 [1] the commit for release 2 was [2] , can you test if  ufraw-0.22-1.fc24 works for you ? :/
 

[1] http://koji.fedoraproject.org/koji/buildinfo?buildID=766945

[2] 
https://pkgs.fedoraproject.org/cgit/rpms/ufraw.git/commit/?id=87b7b32e620ba0e33cd65ae9e125b68b26d3170c

Comment 7 Deepak Bhole 2016-08-17 14:45:46 UTC
(In reply to Sergio Monteiro Basto from comment #6)
> So your package should be equal to ufraw-0.22-1.fc24 [1] the commit for
> release 2 was [2] , can you test if  ufraw-0.22-1.fc24 works for you ? :/
>  
> 
> [1] http://koji.fedoraproject.org/koji/buildinfo?buildID=766945
> 

I just tried the above packages and processing a couple of images (adjusting lens distortion, WB, Exposure, temperature, gamma, linearity, saturation, contrast and cropping the image) and then saving to jpg. Everything seems to work perfectly fine for me.

Is there anything specific I can try to trigger a crash?

Comment 8 Nils Philippsen 2016-10-10 07:13:57 UTC
Hey Sergio, I'll second Deepak's question: Do you know of a way to fairly reliably trigger the crash or cause the artifacts? Might involve a certain raw image file, certain lensfun parameters... I don't see any progress upstream or in the Debian bug report and we shouldn't just let this linger.

Comment 9 Sergio Basto 2016-10-10 16:48:13 UTC
May we close this bug as duplicated of 1350210 , to me doesn't make sense have 2 bugs discuss the same thing ? 

I don't know what to do , I just want update UFRaw , to fix security issues IIRC 
we have ufraw-0.22-1.fc24 with lensfun and ufraw-0.22-2.fc24 without lensfun , so user can choose , I prefer have less functionalities and less crashes than more functionalities but more issues. 

Deepak could try follow Moravcik usage, of bug #1350210 , to see if can reproduce the bug. 

Anyway feel free to do whatever you want .

Thanks.

Comment 10 Deepak Bhole 2016-10-11 21:41:57 UTC
(In reply to Sergio Monteiro Basto from comment #9)
> May we close this bug as duplicated of 1350210 , to me doesn't make sense
> have 2 bugs discuss the same thing ? 
> 
> I don't know what to do , I just want update UFRaw , to fix security issues
> IIRC 
> we have ufraw-0.22-1.fc24 with lensfun and ufraw-0.22-2.fc24 without lensfun
> , so user can choose , I prefer have less functionalities and less crashes
> than more functionalities but more issues. 
> 
> Deepak could try follow Moravcik usage, of bug #1350210 , to see if can
> reproduce the bug. 
> 
> Anyway feel free to do whatever you want .
> 
> Thanks.

Hi Sergio,

I just tried it (with an NEF no less, as mentioned in the bug, as I recently bought a new camera :))

Anyway, I am not able to reproduce a crash. I can use ufraw normally and when I hit the gimp button, ufraw closes gracefully and gimp opens. Gimp however does not work as it is unable to load the temporary svg that ufraw creates. On cmdline, I see:

(file-svg:29790): GLib-WARNING **: (gerror.c:405):g_error_new_valist: runtime check failed: (domain != 0)

I don't think that this is related to the ufraw crash though as ufraw seems to exit properly (even when running in gdb, no errant signals detected).

Comment 11 Sergio Basto 2016-10-11 22:33:05 UTC
Did you press on cancel ?  seems to me a problem on cancel

Comment 12 Deepak Bhole 2016-10-12 12:36:35 UTC
Do you mean press cancel at the bottom right? Just tried it, no crash. It exits gracefully.

Comment 13 Nils Philippsen 2016-10-15 00:40:01 UTC
(In reply to Deepak Bhole from comment #10)
> (In reply to Sergio Monteiro Basto from comment #9)
> > May we close this bug as duplicated of 1350210 , to me doesn't make sense
> > have 2 bugs discuss the same thing ? 
> > 
> > I don't know what to do , I just want update UFRaw , to fix security issues
> > IIRC 
> > we have ufraw-0.22-1.fc24 with lensfun and ufraw-0.22-2.fc24 without lensfun
> > , so user can choose , I prefer have less functionalities and less crashes
> > than more functionalities but more issues. 
> > 
> > Deepak could try follow Moravcik usage, of bug #1350210 , to see if can
> > reproduce the bug. 
> > 
> > Anyway feel free to do whatever you want .
> > 
> > Thanks.
> 
> Hi Sergio,
> 
> I just tried it (with an NEF no less, as mentioned in the bug, as I recently
> bought a new camera :))
> 
> Anyway, I am not able to reproduce a crash. I can use ufraw normally and
> when I hit the gimp button, ufraw closes gracefully and gimp opens. Gimp
> however does not work as it is unable to load the temporary svg that ufraw
> creates. On cmdline, I see:
> 
> (file-svg:29790): GLib-WARNING **: (gerror.c:405):g_error_new_valist:
> runtime check failed: (domain != 0)
> 
> I don't think that this is related to the ufraw crash though as ufraw seems
> to exit properly (even when running in gdb, no errant signals detected).

Hmm that sounds dubious to me, ufraw shouldn't produce SVG files, a vector format. I guess it could rather be that ufraw produces some XML, passes that onto GIMP which wrongly guesses this to be SVG (which is an XML format, too). I'll have to mull over this a bit.

Sergio, yes let's handle the lensfun issue in the other bug.

Comment 14 Deepak Bhole 2016-10-15 02:29:24 UTC
(In reply to Nils Philippsen from comment #13)
> 
> Hmm that sounds dubious to me, ufraw shouldn't produce SVG files, a vector
> format. I guess it could rather be that ufraw produces some XML, passes that
> onto GIMP which wrongly guesses this to be SVG (which is an XML format,
> too). I'll have to mull over this a bit.
> 

I think that is exactly what is happening. Ufraw produces a *.ufraw file in /tmp and the content of it is an xml file (though a custom one, not an svg). Gimp seems to think that this is an svg for some reason; I am not sure if gimp is expected to know the ufraw xml format at all though.

> Sergio, yes let's handle the lensfun issue in the other bug.

Comment 15 Nils Philippsen 2016-10-19 09:08:25 UTC
(In reply to Deepak Bhole from comment #14)
> Gimp seems to think that this is an svg for some reason; I am not sure if
> gimp is expected to know the ufraw xml format at all though.

Do you have the ufraw gimp plug-in installed? I guess that would need to be present for this process to work.

Comment 16 Deepak Bhole 2016-10-19 20:19:44 UTC
(In reply to Nils Philippsen from comment #15)
> (In reply to Deepak Bhole from comment #14)
> > Gimp seems to think that this is an svg for some reason; I am not sure if
> > gimp is expected to know the ufraw xml format at all though.
> 
> Do you have the ufraw gimp plug-in installed? I guess that would need to be
> present for this process to work.

I don't think I do. I tried doing a dns search for it but I cannot find a package that seems to provide it. Does Fedora have the plug-in?

Comment 17 Sergio Basto 2016-10-20 23:06:03 UTC
(In reply to Deepak Bhole from comment #16)
> (In reply to Nils Philippsen from comment #15)
> > (In reply to Deepak Bhole from comment #14)
> > > Gimp seems to think that this is an svg for some reason; I am not sure if
> > > gimp is expected to know the ufraw xml format at all though.
> > 
> > Do you have the ufraw gimp plug-in installed? I guess that would need to be
> > present for this process to work.
> 
> I don't think I do. I tried doing a dns search for it but I cannot find a
> package that seems to provide it. Does Fedora have the plug-in?

ufraw-gimp package 

dnf repoquery -i ufraw-gimp 
Summary     : GIMP plugin to retrieve raw image data from digital cameras
Description :
The ufraw-gimp package contains a GIMP plugin for opening raw format images of
digital cameras.


Deepak Bhole, so you use another ufraw-gimp plugin than fedora provides ?

Comment 18 Deepak Bhole 2016-10-21 14:00:13 UTC
(In reply to Sergio Monteiro Basto from comment #17)
> (In reply to Deepak Bhole from comment #16)
> > (In reply to Nils Philippsen from comment #15)
> > > (In reply to Deepak Bhole from comment #14)
> > > > Gimp seems to think that this is an svg for some reason; I am not sure if
> > > > gimp is expected to know the ufraw xml format at all though.
> > > 
> > > Do you have the ufraw gimp plug-in installed? I guess that would need to be
> > > present for this process to work.
> > 
> > I don't think I do. I tried doing a dns search for it but I cannot find a
> > package that seems to provide it. Does Fedora have the plug-in?
> 
> ufraw-gimp package 
> 
> dnf repoquery -i ufraw-gimp 
> Summary     : GIMP plugin to retrieve raw image data from digital cameras
> Description :
> The ufraw-gimp package contains a GIMP plugin for opening raw format images
> of
> digital cameras.
> 
> 
> Deepak Bhole, so you use another ufraw-gimp plugin than fedora provides ?


I don't have a ufraw/gimp plugin installed atm. I am also unable to find a package for ufraw-gimp:

$ rpm -qa | grep ufraw
ufraw-0.22-1.fc24.x86_64
ufraw-common-0.22-1.fc24.x86_64


$ dnf repoquery -i ufraw-gimp
Last metadata expiration check: 0:00:12 ago on Fri Oct 21 09:57:45 2016.
<nothing else was shown>


$ dnf search ufraw-gimp
Last metadata expiration check: 0:00:27 ago on Fri Oct 21 09:57:45 2016.
Error: No matches found.

Comment 19 Sergio Basto 2016-10-21 18:10:26 UTC
Weird

repoquery --qf "%{repoid} %{sourcerpm} %{name}" --releasever=24 --available ufraw-gimp
fedora ufraw-0.22-1.fc24.src.rpm ufraw-gimp
updates ufraw-0.22-2.fc24.src.rpm ufraw-gimp

Comment 20 Deepak Bhole 2016-10-21 18:53:30 UTC
(In reply to Sergio Monteiro Basto from comment #19)
> Weird
> 
> repoquery --qf "%{repoid} %{sourcerpm} %{name}" --releasever=24 --available
> ufraw-gimp
> fedora ufraw-0.22-1.fc24.src.rpm ufraw-gimp
> updates ufraw-0.22-2.fc24.src.rpm ufraw-gimp

Sorry, it was a dnf config issue on my side :/ I am able to see/install it now.

So after installing, I can still use ufraw+lensfun, and I can launch gimp from ufraw. There are no crashes and gimp now loads the image as expected.

Comment 21 Nils Philippsen 2016-10-25 15:15:47 UTC
Sergio, Deepak, should or shouldn't this bug be closed as a duplicate of bug #1350210 now?

Comment 22 Deepak Bhole 2016-10-25 16:30:30 UTC
Bug #1350210 states that a fix patch may be applied soon and lensfun re-enabled. If that is indeed the plan, +1 to closing this as a dupe.

Comment 23 Sergio Basto 2016-10-25 17:40:49 UTC

*** This bug has been marked as a duplicate of bug 1350210 ***


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