hasshole / photivo

Automatically exported from code.google.com/p/photivo
GNU General Public License v3.0
0 stars 0 forks source link

Photivo can't save jpg and crashs (version sergeyopensuse) #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
version may 2011 had worked fine
error since version sergeyopensuse 427-17.1, the also in newer factory-version
1. save a raw-picture as jpeg, png or tiff
2. photivo crashs

output: (../Sources/ptProcessor.cpp, 2098): Done conversion to RGB at 27889 ms.
(../Sources/ptProcessor.cpp, 2498): Done pipe processing at 27893 ms.
Progress : Bereit
Progress : Konvertiere zum Ausgaberaum
Progress : RGB-Kontrast anwenden
Progress : Schreibe Ausgabe
Progress : Schreibe Ausgabe (exif)
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'Exiv2::BasicError<char>'
  what():  /media/HITACHI/photivo/IMG_3513.tif: Die Datenquelle konnte nicht geöffnet werden:  (errno = 2)

System: 
Opensuse 11.4, Gnome 2 aktuell and gnome3, qnotify is installed

Original issue reported on code.google.com by chriskoh...@gmail.com on 7 Jul 2011 at 9:17

GoogleCodeExporter commented 8 years ago
Well, current Photivo version (427) works for me.

It seems that EXIF can't be written to the output file. Does the output file 
exist after Photivo crash? If yes, the problem can be in exiv2. Have you 
installed libexiv2 from my repository, or used earlier version?

Original comment by salser...@gmail.com on 8 Jul 2011 at 4:48

GoogleCodeExporter commented 8 years ago
Today i compiled photivo from the sources. The problem is the same.
Photivo version 2011-07-02 (rev 729c0c4dc075)
Progress : Schreibe Ausgabe
Progress : Schreibe Ausgabe (exif)
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'Exiv2::BasicError<char>'
  what():  /media/HITACHI/Fotos und Reisen/2011/Test/2011_06_19/photivo/IMG_3684.jpg: Die Datenquelle konnte nicht geöffnet werden:  (errno = 2)

There is no outputfile, no pts and no jpg. With the rpm-version photivo made a 
pts-file but no jpg or png.
libexiv2-devel is version 0.21.1-20.10

Christian

Original comment by chriskoh...@gmail.com on 8 Jul 2011 at 6:05

GoogleCodeExporter commented 8 years ago
Does every image crash Photivo? If no, can you provide a RAW image that crashes 
Photivo?

Can you try to save pipe size output?

Original comment by salser...@gmail.com on 8 Jul 2011 at 10:44

GoogleCodeExporter commented 8 years ago
Yes, every image crashs Photivo. Change of pipe size has no effect. Only the 
export to gimp is ok.
My camera is Canon Powershot G12.
I try 2 computers with same result. Under XP Version 2011-06-24 is ok.
Thank you for your help, Christian

Original comment by chriskoh...@gmail.com on 8 Jul 2011 at 11:13

GoogleCodeExporter commented 8 years ago
I have downloaded a Canon G12 RAW from www.imaging-resource.com and tried to 
open it in Photivo. I see a black rectangle! While all other RAW convertors 
open it properly.

Original comment by salser...@gmail.com on 8 Jul 2011 at 2:47

GoogleCodeExporter commented 8 years ago
I think, the icc- profile for Canon G12 has a bug.  I work with the profil 
Canon G11 or Adobe Matrix. 
But this is not the problem, because the version from may worked fine with the 
G12 (with g11--.icc) and also the Windows- Version.
Christian

Original comment by chriskoh...@gmail.com on 8 Jul 2011 at 3:04

GoogleCodeExporter commented 8 years ago
I made some changes, so exif writing errors should not crash the program any 
further. It's now also possible to write exif for PNG. 

But your problems sounds different. How and on which system did you compile. I 
guess it's related to GraphicsMagick, please follow the installation steps for 
GraphicsMagick in our wiki and look if 'configure' found libjpeg and libtiff, 
if not install the corresponding devel packages and restart.

Greets mike

Original comment by m...@mm-log.com on 8 Jul 2011 at 4:30

GoogleCodeExporter commented 8 years ago
Thank you for the changes. Now photivo has no crash, but also no jpg's.
I installed GraphisMagick from the sources, also lsms2 and Liquid rescale.

Here are the output from ./configure GraphisMagick

Host system type : x86_64-unknown-linux-gnu
   (Opensuse 11.4 64Bit, Gnome2)
Build system type : x86_64-unknown-linux-gnu
  (Opensuse 11.4 64Bit, Gnome2)

Option            Configure option              Configured value

-----------------------------------------------------------------

Shared libraries  --enable-shared=yes       yes

Static libraries  --enable-static=yes       yes

GNU ld            --with-gnu-ld=yes         yes

Quantum depth     --with-quantum-depth=16   16

Delegate Configuration:

BZLIB             --with-bzlib=yes              yes

DPS               --with-dps=yes                no

FlashPIX          --with-fpx=no                 no

FreeType 2.0      --with-ttf=yes            yes

Ghostscript       None                      gs (9.00)

Ghostscript fonts --with-gs-font-dir=default    /usr/share/ghostscript/fonts/

Ghostscript lib   --with-gslib=no           no

JBIG              --with-jbig=yes           yes

JPEG v1           --with-jpeg=yes           yes

JPEG-2000         --with-jp2=yes            yes

LCMS              --with-lcms=yes           yes

Magick++          --with-magick-plus-plus=yes   yes

PERL              --with-perl=no                no

PNG               --with-png=yes            yes

TIFF              --with-tiff=yes           yes

TRIO              --with-trio=yes           no

Windows fonts     --with-windows-font-dir=  none

WMF               --with-wmf=yes            no

X11               --with-x=                 yes

XML               --with-xml=yes            yes

ZLIB              --with-zlib=yes           yes

X11 Configuration:

  X_CFLAGS     = 

  X_PRE_LIBS   = -lSM -lICE

  X_LIBS       = 

  X_EXTRA_LIBS = 

Options used to compile and link:

  CC       = gcc -std=gnu99

  CFLAGS   = -fopenmp -g -O2 -Wall -pthread

  CPPFLAGS = -I/usr/include/freetype2 -I/usr/include/libxml2

  CXX      = g++

  CXXFLAGS = -pthread

  DEFS     = -DHAVE_CONFIG_H

  LDFLAGS  = -L/usr/lib -L/usr/lib

  LIBS     = -ljbig -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -lXext -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread

I think, it´s ok?. But the result is the same: no jpg / png / tiff. "No 
exif-Data written". But now Photivo save the pts- file.
The connection with gimp is possible.
Christian

Original comment by chriskoh...@gmail.com on 8 Jul 2011 at 6:43

GoogleCodeExporter commented 8 years ago
Well, that looks ok. Currently I don't know what's wrong, but I would still 
tend to blame GraphicsMagick. I don't know how you could test without debugging 
it :-( Are you sure Photivo links against the correct library?

The gimp export doesn't use GraphicsMagick but writes a ppm directly... 

Sergey, any ideas?

GReets mike

Original comment by m...@mm-log.com on 8 Jul 2011 at 8:19

GoogleCodeExporter commented 8 years ago
Please check my latest changes.

greets mike

Original comment by m...@mm-log.com on 8 Jul 2011 at 8:37

GoogleCodeExporter commented 8 years ago
On this time i must try Photivo with my notebook.
Opensuse 11.4 64 Bit, Gnome 3,
The errormessage is now: GraphicsMagick error No outputfile written.
On this machine GraphicsMagick is from Suse repos, Sergey has the same versions.
brandnew Version:  GraphicsMagick Ver 1..12...6-41.5 (SuSE: This package is 
compiled with Q16, which means that it provides better performance on 16 bit 
images and less.)
libGraphicsMagick++-devel Ver 1.3.12...6-41.5
libGraphicsMagick++3 Ver 1.3.12...6-41.5
libGraphicsMagick3 Ver 1.3.12-9.1
libGraphicsMagickWand2++-devel Ver 1.3.12...6-41.5

Photivo- qmake, make and make install works without errors.
Christian

Original comment by chriskoh...@gmail.com on 8 Jul 2011 at 10:06

GoogleCodeExporter commented 8 years ago
Hi, i changed libGraphicsMagick3 Ver 1.3.12-9.1 with the newest version 
libGraphicsMagick3 Ver 1.3.12..6-41.5 and now works Photivo without 
MagickGraphics error. Photivo saves the jpegs korrekt. But then crashes with 
segmentation fault.
The Exiv-informations in the jpeg-files fails.
Output from console:
Progress : Applying RGB Contrast
Progress : Writing output
Progress : Writing output (exif)
Speicherzugriffsfehler

with many greetings 
Christian

Original comment by chriskoh...@gmail.com on 8 Jul 2011 at 10:30

GoogleCodeExporter commented 8 years ago
Dear Mike,
Thank you for your help and the wonderfull Photivo.
I reinstalled exiv2 from Sergeys repositories, build new Photivo and now 
Photivo works fine.
I tested Rawtherapee, darktable and Photivo and i think, that Photivo (with 
digikam) is the best solution for me.
greets Christian   

Original comment by chriskoh...@gmail.com on 9 Jul 2011 at 5:23

GoogleCodeExporter commented 8 years ago

Original comment by m...@mm-log.com on 21 Aug 2011 at 10:39