[digikam] [Bug 400140] Digikam crash when exporting on google photos

2019-03-28 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=400140

Maik Qualmann  changed:

   What|Removed |Added

   Version Fixed In||6.1.0
 Resolution|--- |FIXED
 Status|REPORTED|RESOLVED

--- Comment #29 from Maik Qualmann  ---
The crash can no longer be reproduced with Exiv2-0.27. I close the bug.

Maik

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2019-03-20 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #28 from caulier.gil...@gmail.com ---
After 3 weeks of work, i finally completed the compilation of AppImage using Qt
5.11.3 + QWebkit 5.212.

New 6.1.0 pre-release AppImage bundle can be found here (64 bits only for the
moment) :

https://files.kde.org/digikam/

Please check if this bugzilla entry still valid.

Thanks in advance

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2019-03-06 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #27 from caulier.gil...@gmail.com ---
Good news,

After 2 weeks of works, the pre-release 6.1.0 bundles are now reconstructed
from scratch with:

- All OpenCV options for CUDA, OPenMP, and OPenCL disabled to prevent crashes
in face management.
- A large upgrade of Qt5 from 5.9.7 to 5.11.3.
- An upgrade to KF5 5.55.
- An upgrade to Ffmpeg 3.3.9
- The fontconfig/freetype integration in the bundle to reduce system
dependencies

Files can be downloaded here :

https://files.kde.org/digikam/

Please test and report.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-12-31 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #26 from caulier.gil...@gmail.com ---
Can you reproduce the dysfunction using the last digiKam 6.0.0-beta3 just
released ?

https://www.digikam.org/news/2018-12-30-6.0.0-beta3_release_announcement/

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-30 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

caulier.gil...@gmail.com changed:

   What|Removed |Added

   Platform|Other   |Appimage

--- Comment #25 from caulier.gil...@gmail.com ---
The new AppImage Linux bundle 64 bits is uploaded here :

https://files.kde.org/digikam/

It include the new Exiv2 code which much fix your problem. Please test and
report.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-27 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #24 from caulier.gil...@gmail.com ---
Ok, I found the problem. See my comment on UPSTREAM bug.

To resume : official Exiv2 0.27-RC1 just released today fix the crash. I will
rebuild the AppImage bundle accordingly next week.

Note : the unit test pass successfully now with Exiv2 0.27-RC1:

[gilles@localhost metadataengine (master)]$ ./patchPreviewTest
* Start testing of PatchPreviewTest *
Config: Using QtTest library 5.9.4, Qt 5.9.4 (x86_64-little_endian-lp64 shared
(dynamic) release build; by GCC 5.4.0)
PASS   : PatchPreviewTest::initTestCase()
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata() File to process:
"/mnt/data/GIT/6.x/core/tests/metadataengine/data/IMG_2520.CR2"
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata() KMemoryInfo:
Platform identified :  "LINUX"
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata() KMemoryInfo:
TotalRam:  8306032640
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata() digikam.general:
Allowing a cache size of 200 MB
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: index:  0
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: d->properties:  3
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC
profile.
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: Orientation => Exif.Image.Orientation => 1
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata() Temporary target
file: "/tmp/digikam-patchpreviewtest-7184/IMG_2520.jpg"
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: Exiv2 ( 2 ) :  Exif tag Exif.Photo.MakerNote not encoded

QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: Exiv2 ( 2 ) :  Exif tag Exif.Canon.0x4005 not encoded

QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: Exif.Image.Orientation tag set to: 1
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: MetaEngine::metadataWritingMode 0
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: Will write Metadata to file
"/tmp/digikam-patchpreviewtest-7184/IMG_2520.jpg"
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: wroteComment:  true
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: wroteEXIF:  true
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: wroteIPTC:  true
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: wroteXMP:  true
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: File time stamp restored
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata()
digikam.metaengine: Metadata for file "IMG_2520.jpg" written to file.
PASS   : PatchPreviewTest::testExtractPreviewAndFixMetadata()
PASS   : PatchPreviewTest::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 1284ms
* Finished testing of PatchPreviewTest *

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-27 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #23 from caulier.gil...@gmail.com ---
UPSTREAM bug : https://github.com/Exiv2/exiv2/issues/496

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-26 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #22 from caulier.gil...@gmail.com ---
Confirmed : Exiv2 CLI tool crash at exactly the same place when i want to
extract the Exif data from CR2:

(gdb) r
Starting program: /usr/bin/exiv2 -e e ./IMG_2520.CR2
Missing separate debuginfos, use: debuginfo-install glibc-2.22-29.mga6.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
exiv2: Overwrite `./IMG_2520.exv'? y
Warning: Exif tag Exif.Photo.MakerNote not encoded
Warning: Exif tag Exif.Canon.0x4005 not encoded

Program received signal SIGSEGV, Segmentation fault.
0x7797bde2 in Exiv2::ExifParser::encode(std::vector >&, unsigned char const*, unsigned int,
Exiv2::ByteOrder, Exiv2::ExifData const&) () from
/usr/bin/../lib64/libexiv2.so.0
Missing separate debuginfos, use: debuginfo-install
lib64expat1-2.2.1-1.mga6.x86_64 lib64zlib1-1.2.11-4.1.mga6.x86_64
libgcc1-5.5.0-1.mga6.x86_64 libstdc++6-5.5.0-1.mga6.x86_64
(gdb) bt
#0  0x7797bde2 in Exiv2::ExifParser::encode(std::vector >&, unsigned char const*, unsigned int,
Exiv2::ByteOrder, Exiv2::ExifData const&) () from
/usr/bin/../lib64/libexiv2.so.0
#1  0x779a9e89 in Exiv2::JpegBase::doWriteMetadata(Exiv2::BasicIo&) ()
from /usr/bin/../lib64/libexiv2.so.0
#2  0x779a8cda in Exiv2::JpegBase::writeMetadata() () from
/usr/bin/../lib64/libexiv2.so.0
#3  0x0042e96c in (anonymous
namespace)::metacopy(std::__cxx11::basic_string,
std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, int, bool) ()
#4  0x004277b2 in Action::Extract::run(std::__cxx11::basic_string, std::allocator > const&) ()
#5  0x00412b4e in main ()
(gdb) 

I report this problem as UPSTREAM to Exiv2 team

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-25 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #21 from caulier.gil...@gmail.com ---
Here, the crash appear while reading Exif data, at line 100 of unit test. If i
comment lines 100 and 105 the unit test pass fine.

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-25 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #20 from Maik Qualmann  ---
The reading of metadata does not crash even under digiKam, only by writing to a
new jpeg file...

Maik

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-25 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #19 from caulier.gil...@gmail.com ---
But the Exiv2 0.27 CLI tool do not crash with the CR2 file :

./exiv2 -pa ./IMG_2520.CR2 
Exif.Image.ImageWidthShort   1  6240
Exif.Image.ImageLength   Short   1  4160
Exif.Image.BitsPerSample Short   3  8 8 8
Exif.Image.Compression   Short   1  JPEG (old-style)
Exif.Image.Make  Ascii   6  Canon
Exif.Image.Model Ascii  21  Canon EOS 6D Mark
II
Exif.Image.StripOffsets  Long1  39934458
Exif.Image.Orientation   Short   1  top, left
Exif.Image.StripByteCounts   Long1  5981241
Exif.Image.XResolution   Rational1  72
Exif.Image.YResolution   Rational1  72
Exif.Image.ResolutionUnitShort   1  inch
Exif.Image.DateTime  Ascii  20  2018:10:21 10:58:11
Exif.Image.ArtistAscii  12  Matthieu M.
Exif.Image.XMLPacket Byte  4316  (Binary value
suppressed)
Exif.Image.Copyright Ascii  20  All rights reserved
...

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-25 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #18 from caulier.gil...@gmail.com ---
I fixed the code to backport all metadat from RAW to JPEG :

DMetadata meta;
ret = meta.load(file);

QByteArray exif = meta.getExifEncoded();
QByteArray iptc = meta.getIptc();
QByteArray xmp  = meta.getXmp();

meta.load(path);
meta.setExif(exif);
meta.setIptc(iptc);
meta.setXmp(xmp);
meta.setImageDimensions(image.size());
meta.setImageOrientation(MetaEngine::ORIENTATION_NORMAL);
meta.setMetadataWritingMode((int)DMetadata::WRITETOIMAGEONLY);
ret = meta.applyChanges(true);

This code is inspired from Panorama tool which backport from RAW to TIFF.

It still crash but now i know where exactly : meta.getExifEncoded()

#0  0x7fd8a2b794c3 in waitpid () at /usr/lib64/qt5/../libc.so.6
#1  0x7fd8a2afb14c in do_system () at /usr/lib64/qt5/../libc.so.6
#2  0x7fd8b2fd392c in stackTrace() [clone .part.2] () at
/usr/lib64/qt5/../libQt5Test.so.5
#3  0x7fd8b2fd39cd in stackTrace() () at /usr/lib64/qt5/../libQt5Test.so.5
#4  0x7fd8b2fd3a62 in QTest::FatalSignalHandler::signal(int) () at
/usr/lib64/qt5/../libQt5Test.so.5
#5  0x7fd8b0328bb0 in  () at
/usr/lib64/qt5/../libpthread.so.0
#6  0x7fd8ab452de2 in Exiv2::ExifParser::encode(std::vector >&, unsigned char const*, unsigned int,
Exiv2::ByteOrder, Exiv2::ExifData const&) () at /usr/lib64/qt5/../libexiv2.so.0
#7  0x7fd8b1dcf38b in Exiv2::ExifParser::encode(std::vector >&, Exiv2::ByteOrder, Exiv2::ExifData const&)
(blob=std::vector of length 0, capacity 0, byteOrder=Exiv2::bigEndian,
exifData=...)
at /usr/include/exiv2/exif.hpp:622
#8  0x7fd8b1dc6bc7 in Digikam::MetaEngine::getExifEncoded(bool) const
(this=0x7ffe5b6b87f0, addExifHeader=false)
at
/mnt/data/GIT/6.x/core/libs/metadataengine/engine/metaengine_exif.cpp:104

For me it's clearly an Exiv2 problem. Loading Exif metadata must not be a
problem here...

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-25 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #17 from Maik Qualmann  ---
It clearly crashes in Exiv2 trying to write the metadata to the temporary
QImage.

Maik

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-25 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #16 from Maik Qualmann  ---
Git commit 661beffcbfe47a0044639463544b02020adc5ba5 by Maik Qualmann.
Committed on 25/10/2018 at 19:18.
Pushed by mqualmann into branch 'master'.

fix QVERIFY false/true logic in the PatchPreviewTest

M  +2-2core/tests/metadataengine/patchpreviewtest.cpp

https://commits.kde.org/digikam/661beffcbfe47a0044639463544b02020adc5ba5

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-25 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #15 from caulier.gil...@gmail.com ---
Maik,

This can explain some crashes while preview extraction that we can see in Face
Management workflow ?

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-25 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

caulier.gil...@gmail.com changed:

   What|Removed |Added

 CC||metzping...@gmail.com

--- Comment #14 from caulier.gil...@gmail.com ---
Maik,

Look this crash backtrace from the new unit test (unrelated with this entry):

[gilles@localhost metadataengine (master)]$ ./patchPreviewTest
* Start testing of PatchPreviewTest *
Config: Using QtTest library 5.9.4, Qt 5.9.4 (x86_64-little_endian-lp64 shared
(dynamic) release build; by GCC 5.4.0)
PASS   : PatchPreviewTest::initTestCase()
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata() File to process:
"/mnt/data/GIT/6.x/core/tests/metadataengine/data/IMG_2520.CR2"
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata() KMemoryInfo:
Platform identified :  "LINUX"
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata() KMemoryInfo:
TotalRam:  8306032640
QDEBUG : PatchPreviewTest::testExtractPreviewAndFixMetadata() digikam.general:
Allowing a cache size of 200 MB

= Received signal, dumping stack ==
GNU gdb (GDB) 7.12-16.1.mga6 (Mageia release 6)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-mageia-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 19566
[New LWP 19567]
[New LWP 19568]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x7ffb208514c3 in waitpid () from /usr/lib64/qt5/../libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.22-29.mga6.x86_64
lib64alsa2-1.1.4.1-1.mga6.x86_64 lib64ass9-0.13.6-1.mga6.x86_64
lib64astro1-17.12.2-1.1.mga6.x86_64 lib64asyncns0-0.8-9.mga6.x86_64
lib64attica5-5.42.0-1.mga6.x86_64 lib64avcodec57-3.3.8-1.mga6.tainted.x86_64
lib64avfilter6-3.3.8-1.mga6.tainted.x86_64
lib64avformat57-3.3.8-1.mga6.tainted.x86_64
lib64avresample3-3.3.8-1.mga6.tainted.x86_64
lib64avutil55-3.3.8-1.mga6.tainted.x86_64 lib64blkid1-2.28.2-2.1.mga6.x86_64
lib64bsd0-0.8.3-1.mga6.x86_64 lib64bzip2_1-1.0.6-10.mga6.x86_64
lib64cdio-paranoia2-10.2.0.93.1-8.mga6.x86_64 lib64cdio16-0.94-1.1.mga6.x86_64
lib64celt0_2-0.11.3-6.mga6.x86_64 lib64dbus1_3-1.10.16-1.mga6.x86_64
lib64dbusmenu-qt5_2-0.9.3-1.20160218.1.mga6.x86_64
lib64dc1394_22-2.2.5-2.mga6.x86_64 lib64drm2-2.4.91-1.1.mga6.x86_64
lib64expat1-2.2.1-1.mga6.x86_64 lib64fam0-0.1.10-17.mga6.x86_64
lib64ffi6-3.2.1-5.mga6.x86_64 lib64flac8-1.3.2-1.1.mga6.x86_64
lib64fontconfig1-2.12.1-2.mga6.x86_64
lib64freetype6-2.7.1-2.2.mga6.tainted.x86_64 lib64fribidi0-0.19.7-3.mga6.x86_64
lib64gcrypt20-1.7.10-1.mga6.x86_64 lib64gio2.0_0-2.54.3-1.2.mga6.x86_64
lib64glapi0-17.3.9-1.mga6.x86_64 lib64glib2.0_0-2.54.3-1.2.mga6.x86_64
lib64gmp10-6.1.2-1.mga6.x86_64 lib64gnutls30-3.5.13-1.mga6.x86_64
lib64gpg-error0-1.24-1.mga6.x86_64 lib64graphite2_3-1.3.10-1.1.mga6.x86_64
lib64gsm1-1.0.17-1.mga6.x86_64
lib64gstreamer-plugins-base1.0_0-1.10.4-1.mga6.x86_64
lib64gstreamer1.0_0-1.10.4-1.mga6.x86_64 lib64harfbuzz0-1.3.2-5.mga6.x86_64
lib64hyphen0-2.8.8-6.mga6.x86_64 lib64ical2-2.0.0-2.1.mga6.x86_64
lib64icalss2-2.0.0-2.1.mga6.x86_64 lib64ice6-1.0.9-5.mga6.x86_64
lib64icu58-58.2-3.2.mga6.x86_64 lib64ieee1284_3-0.2.11-15.mga6.x86_64
lib64jack0-1.9.10-6.mga6.x86_64 lib64jasper1-1.900.23-5.1.mga6.x86_64
lib64jbig1-2.1-4.mga6.x86_64 lib64jpeg8-1.5.1-1.2.mga6.x86_64
lib64karchive5-5.42.0-1.mga6.x86_64 lib64kconfigCore5-5.42.0-1.mga6.x86_64
lib64kconfigGui5-5.42.0-1.mga6.x86_64 lib64kf5auth5-5.42.0-1.mga6.x86_64
lib64kf5calendarcore5-17.12.2-1.mga6.x86_64
lib64kf5codecs5-5.42.0-1.1.mga6.x86_64
lib64kf5completion5-5.42.0-2.2.mga6.x86_64
lib64kf5configwidgets5-5.42.0-1.1.mga6.x86_64
lib64kf5coreaddons5-5.42.0-1.mga6.x86_64
lib64kf5dbusaddons5-5.42.0-1.mga6.x86_64
lib64kf5filemetadata5-5.42.0-1.mga6.x86_64
lib64kf5globalaccel5-5.42.0-1.mga6.x86_64
lib64kf5guiaddons5-5.42.0-1.mga6.x86_64 lib64kf5i18n5-5.42.0-1.mga6.x86_64
lib64kf5iconthemes5-5.42.0-1.mga6.x86_64
lib64kf5jobwidgets5-5.42.0-1.2.mga6.x86_64
lib64kf5kiocore5-5.42.0-1.mga6.x86_64 lib64kf5kiowidgets5-5.42.0-1.mga6.x86_64
lib64kf5notifications5-5.42.0-1.mga6.x86_64
lib64kf5notifyconfig5-5.42.0-1.2.mga6.x86_64
lib64kf5parts5-5.42.0-1.mga6.x86_64 lib64kf5service5-5.42.0-1.mga6.x86_64
lib64kf5solid5-5.42.0-1.mga6.x86_64 

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-25 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #13 from caulier.gil...@gmail.com ---
Git commit 7a56854b80eb2b8d6c66956f3eb77ed5fd7492d0 by Gilles Caulier.
Committed on 25/10/2018 at 10:13.
Pushed by cgilles into branch 'master'.

Add webservice pre-processing unit-test about preview extraction and patch
metadata before to upload item.

M  +13   -1core/tests/metadataengine/CMakeLists.txt
A  +---core/tests/metadataengine/data/IMG_2520.CR2
A  +102  -0core/tests/metadataengine/patchpreviewtest.cpp [License: GPL
(v2+)]
A  +48   -0core/tests/metadataengine/patchpreviewtest.h [License: GPL
(v2+)]

https://commits.kde.org/digikam/7a56854b80eb2b8d6c66956f3eb77ed5fd7492d0

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-25 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #12 from caulier.gil...@gmail.com ---
The crash appear in this section of code :

https://cgit.kde.org/digikam.git/tree/core/utilities/assistants/webservices/google/gphoto/gptalker.cpp#n316

So for a RAW file, we ask to DK PreviewEngine, to extract RAW preview with
libraw, which is saved as temporary JPG file through QImage class.
After that, the JPEG metadata are adjusted using DMetadata with Exiv2.

The crash is located at this last stage.

I will write an unit-test for this kind of code using your RAW file.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-23 Thread Mat
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #11 from Mat  ---
(In reply to caulier.gilles from comment #10)
> ok, so the google export tool convert RAw to JPEG before to upload file.
> 
> Please share RAW file using a cloud webservice.
> 
> Gilles Caulier

https://drive.google.com/file/d/1iY1nuXYKS26duTeiekf6-DAR5IIaF5gW/view?usp=sharing

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-23 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #10 from caulier.gil...@gmail.com ---
ok, so the google export tool convert RAw to JPEG before to upload file.

Please share RAW file using a cloud webservice.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-23 Thread Mat
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #9 from Mat  ---
(In reply to caulier.gilles from comment #6)
> ok, so original file is uploaded.
> 
> Can you identify a single file where the problem is always reproducible ?
> 
> If yes, please share a copy of the original JPEG taken by camera and not
> post-processed.
> 
> Gilles Caulier

Yes, I got it.
It's not a JPEG file, but a RAW one.
How can I share it?

Regards

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-23 Thread Mat
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #8 from Mat  ---
(In reply to caulier.gilles from comment #7)
> Just to be sure, Which Exiv2 version do you see in Help/Components Info
> dialog from DK ?
> 
> Gilles Caulier

hello Gilles,

digikam version 6.0.0-beta2
CPU cores: 4
Eigen: 3.2.5
Exiv2: 0.27.0
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
KF5: 5.49.0
LensFun: 0.3.95-0
LibCImg: 130
LibJPEG: 80
LibJasper: 2.0.14
LibLCMS: 2080
LibLqr support: No
LibPGF: 7.15.32
LibPNG: 1.6.34
LibRaw: 0.19.0
LibTIFF: 4.0.9
Marble: 0.27.20
Parallelized demosaicing: No
Qt: 5.9.6
VKontakte support: No
AkonadiContact support: no
Baloo support: no
Calendar support: yes
DBus support: Yes
Database backend: QMYSQL
Database internal server: No
HTML Gallery support: yes
LibAVCodec: 57.89.100
LibAVFormat: 57.71.100
LibAVUtil: 55.58.100
LibGphoto2: 2.5.18
LibOpenCV: 3.4.1
LibQtAV: 1.12.0
Media player support: Yes
Panorama support: yes

Regards

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-23 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #7 from caulier.gil...@gmail.com ---
Just to be sure, Which Exiv2 version do you see in Help/Components Info dialog
from DK ?

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-23 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #6 from caulier.gil...@gmail.com ---
ok, so original file is uploaded.

Can you identify a single file where the problem is always reproducible ?

If yes, please share a copy of the original JPEG taken by camera and not
post-processed.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-23 Thread Mat
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #5 from Mat  ---
(In reply to caulier.gilles from comment #3)
> Ok. It's very interresting, as next Exiv2 0.27 (not yet released is used
> inside the DK AppImage).
> 
> The crash is clear : It's inside Exiv2, not DK, when metadata are written
> inside a JPEG file just before to upload in Google web service.
> 
> Which Google upload option did you use ? Did you resize the original image
> and re-encode as JPEG ? Did you upload the original ?
> 
> Gilles Caulier

Hello Gilles,

No option checked.
The upload was made in an existing folder.

Cheers

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-23 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #4 from caulier.gil...@gmail.com ---
Try also to identify the file which crash DK while processing. The idea is to
try to reproduce the problem with Exiv2 CLI tool before to report the problem
to Exiv2 team.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-23 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #3 from caulier.gil...@gmail.com ---
Ok. It's very interresting, as next Exiv2 0.27 (not yet released is used inside
the DK AppImage).

The crash is clear : It's inside Exiv2, not DK, when metadata are written
inside a JPEG file just before to upload in Google web service.

Which Google upload option did you use ? Did you resize the original image and
re-encode as JPEG ? Did you upload the original ?

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-23 Thread Mat
https://bugs.kde.org/show_bug.cgi?id=400140

--- Comment #2 from Mat  ---
hi gilles,

here's the backtrace.

Thread 1 "digikam" received signal SIGSEGV, Segmentation fault.
0x00c0 in ?? ()
(gdb) bt
#0  0x00c0 in ?? ()
#1  0x00359f6e72ab in Exiv2::Image::printStructure (this=)
at /b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/src/image.cpp:175
#2  0x00359f6d7a28 in Exiv2::ExifParser::encode (blob=..., pData=, size=, byteOrder=, 
exifData=...) at
/b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/src/exif.cpp:794
#3  0x00359f6f89af in Exiv2::JpegBase::doWriteMetadata (this=, outIo=...)
at /b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/src/jpgimage.cpp:1068
#4  0x00359f6f9d37 in Exiv2::JpegBase::writeMetadata (this=)
at /b/ext_exiv2/ext_exiv2-prefix/src/ext_exiv2/src/jpgimage.cpp:894
#5  0x762de271 in Digikam::MetaEngine::Private::saveOperations
(this=this@entry=0x48255a0, finfo=..., image=...)
at /b/dktemp/digikam-v6.0.0-beta2/core/libs/dmetadata/metaengine_p.cpp:333
#6  0x762e0c33 in Digikam::MetaEngine::Private::saveToFile
(this=0x48255a0, finfo=...)
at /b/dktemp/digikam-v6.0.0-beta2/core/libs/dmetadata/metaengine_p.cpp:184
#7  0x762d9e4a in Digikam::MetaEngine::save
(this=this@entry=0x7fffc000, imageFilePath=...,
setVersion=setVersion@entry=true)
at /b/dktemp/digikam-v6.0.0-beta2/core/libs/dmetadata/metaengine.cpp:437
#8  0x76315d1b in Digikam::DMetadata::save
(this=this@entry=0x7fffc000, filePath=...,
setVersion=setVersion@entry=true)
at /b/dktemp/digikam-v6.0.0-beta2/core/libs/dmetadata/dmetadata.cpp:114
#9  0x76937ddb in Digikam::GPTalker::addPhoto (this=0x44c1b30,
photoPath=..., albumId=..., rescale=rescale@entry=false, 
maxDim=maxDim@entry=1600, imageQuality=100)
at
/b/dktemp/digikam-v6.0.0-beta2/core/utilities/assistants/webservices/google/gphoto/gptalker.cpp:345
#10 0x76940fa0 in Digikam::GSWindow::uploadNextPhoto
(this=this@entry=0x458f9c0)
at
/b/dktemp/digikam-v6.0.0-beta2/core/utilities/assistants/webservices/google/gswindow.cpp:915
#11 0x76940801 in Digikam::GSWindow::slotAddPhotoDone (this=0x458f9c0,
err=, msg=...)
at
/b/dktemp/digikam-v6.0.0-beta2/core/utilities/assistants/webservices/google/gswindow.cpp:1162
#12 0x769c22df in Digikam::GSWindow::qt_static_metacall (_o=, _c=, _id=, 
_a=) at
/b/dktemp/digikam-v6.0.0-beta2/build/core/utilities/assistants/webservices/moc_gswindow.cpp:158
#13 0x00347bab9449 in QMetaObject::activate(QObject*, int, int, void**) ()
from /tmp/.mount_digikantK4Ab/usr/lib/libQt5Core.so.5
#14 0x769be8a6 in Digikam::GPTalker::signalAddPhotoDone
(this=this@entry=0x44c1b30, _t1=_t1@entry=1, _t2=...)
at
/b/dktemp/digikam-v6.0.0-beta2/build/core/utilities/assistants/webservices/moc_gptalker.cpp:293
#15 0x76932714 in Digikam::GPTalker::parseResponseAddPhoto
(this=this@entry=0x44c1b30, data=...)
at
/b/dktemp/digikam-v6.0.0-beta2/core/utilities/assistants/webservices/google/gphoto/gptalker.cpp:872
#16 0x76936452 in Digikam::GPTalker::slotFinished (this=0x44c1b30,
reply=)
at
/b/dktemp/digikam-v6.0.0-beta2/core/utilities/assistants/webservices/google/gphoto/gptalker.cpp:656
#17 0x00347bab9449 in QMetaObject::activate(QObject*, int, int, void**) ()
from /tmp/.mount_digikantK4Ab/usr/lib/libQt5Core.so.5
#18 0x00347ea3ed82 in QNetworkAccessManager::finished(QNetworkReply*) ()
from /tmp/.mount_digikantK4Ab/usr/lib/libQt5Network.so.5
---Type  to continue, or q  to quit---
#19 0x00347ea3f984 in ?? () from
/tmp/.mount_digikantK4Ab/usr/lib/libQt5Network.so.5
#20 0x00347ea43789 in ?? () from
/tmp/.mount_digikantK4Ab/usr/lib/libQt5Network.so.5
#21 0x00347bab9449 in QMetaObject::activate(QObject*, int, int, void**) ()
from /tmp/.mount_digikantK4Ab/usr/lib/libQt5Core.so.5
#22 0x00347eaa6007 in ?? () from
/tmp/.mount_digikantK4Ab/usr/lib/libQt5Network.so.5
#23 0x00347eb39779 in ?? () from
/tmp/.mount_digikantK4Ab/usr/lib/libQt5Network.so.5
#24 0x00347baba3a1 in QObject::event(QEvent*) () from
/tmp/.mount_digikantK4Ab/usr/lib/libQt5Core.so.5
#25 0x7fffeef0036c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /tmp/.mount_digikantK4Ab/usr/lib/libQt5Widgets.so.5
#26 0x7fffeef07797 in QApplication::notify(QObject*, QEvent*) () from
/tmp/.mount_digikantK4Ab/usr/lib/libQt5Widgets.so.5
#27 0x00347ba8ee68 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /tmp/.mount_digikantK4Ab/usr/lib/libQt5Core.so.5
#28 0x00347ba914fb in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) ()
   from /tmp/.mount_digikantK4Ab/usr/lib/libQt5Core.so.5
#29 0x00347bae2193 in ?? () from
/tmp/.mount_digikantK4Ab/usr/lib/libQt5Core.so.5
#30 0x7fffec058287 in g_main_context_dispatch () from
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x7fffec0584c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x7fffec05854c 

[digikam] [Bug 400140] Digikam crash when exporting on google photos

2018-10-22 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=400140

caulier.gil...@gmail.com changed:

   What|Removed |Added

 CC||caulier.gil...@gmail.com

--- Comment #1 from caulier.gil...@gmail.com ---
Please run the AppImage bundle from command line with "debug" option to get a
GDB backtrace.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.