[digikam] [Bug 399923] Segmentation fault during face detection

2020-01-15 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #295 from timo...@zoho.com ---
Sorry for the slow reply. A happy new year to you too :)

Unfortunately I don't currently have access to the computer I usually used to
reproduce this issue. I'm not sure when exactly I'll have access again. I'll
reproduce it then if its still relevant, but it might take some time.

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-27 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #294 from caulier.gil...@gmail.com ---
timokau,

First i wish you an happy new year 2020.

I would to ask you if it's possible to check the current implementation of
digiKam with the Similarities feature (Find duplicates).
I perform currently a huge bug triage, and i see a lots of reports about memory
leak which crash digiKam while populating the database with Haar fingerprints
with huge collection.

I tried to reproduce the problem here without success (ouff: thanks to huge
Maik hack...). But as we know that your system is very sensible to this kind of
dysfunction, this can be a good double check.  

Thanks in advance

Gilles Caulier

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-14 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #293 from caulier.gil...@gmail.com ---
Ok, i will plan the release next week to be ready for next week end.

Gilles

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-14 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #292 from Maik Qualmann  ---
Hi Gilles,

I think if the Beta1 appears shortly before or on the 24th, that would be a
good date ((:-))

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-14 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #291 from caulier.gil...@gmail.com ---
Congratulations Maik for your effort. 

So we can plan a first official 7.0.0-beta1 release before Christmas. 

Let's me hear the best date to plan...

Gilles

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-14 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #290 from timo...@zoho.com ---
My pleasure! Thank you for staying on this for so long Maik. I'm looking
forward to digikam 7.0 :)

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-14 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

Maik Qualmann  changed:

   What|Removed |Added

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

--- Comment #289 from Maik Qualmann  ---
Timokau, thank you very much for testing these many patches. We have made
digiKam a lot more stable and can now close some bug reports.

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-13 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #288 from timo...@zoho.com ---
I think that just might have fixed it. I just completed the 10th (!) successful
scan with 95594f2438a4f6f80340e70b20964e3685b4e235. I don't think I ever had
more than 3 scans without a crash before.

Since testing is quite time consuming (~2h per run) and the crash isn't
entirely reliably reproducible, its difficult to be entirely certain. But I
think it is fixed.

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-11 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

Maik Qualmann  changed:

   What|Removed |Added

 CC||r...@gmx.de

--- Comment #287 from Maik Qualmann  ---
*** Bug 415046 has been marked as a duplicate of this bug. ***

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-11 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #286 from Maik Qualmann  ---
Git commit 95594f2438a4f6f80340e70b20964e3685b4e235 by Maik Qualmann.
Committed on 11/12/2019 at 11:41.
Pushed by mqualmann into branch 'master'.

try with a QMutex for DImg data

M  +4-0core/libs/dimg/dimg_data.cpp
M  +10   -10   core/libs/dimg/dimg_metadata.cpp
M  +2-0core/libs/dimg/dimg_p.h
M  +31   -11   core/libs/dimg/dimg_props.cpp
M  +5-3core/libs/dimg/dimg_transform.cpp
M  +2-0core/libs/dimg/loaders/dimgloader.cpp

https://invent.kde.org/kde/digikam/commit/95594f2438a4f6f80340e70b20964e3685b4e235

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-10 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #285 from timo...@zoho.com ---
Again after 3 successful runs, with 8229ef53b49b0c62244a96cb8f7d06a7452b4ce3:

> digikam.dimg: "/tmp/tmp.x7EaxS04Zv/Pictures/p/Kamera-Uploads/2014-03-14 
> 12.09.33-2.jpg" : "JPEG" file identified
> digikam.general: Using  4  CPU core to run threads
> [New Thread 0x7fff237fe700 (LWP 13164)]
> digikam.general: Action Thread run  1  new jobs
> [New Thread 0x7fff22ffd700 (LWP 13165)]
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.x7EaxS04Zv/Pictures/p/Kamera-Uploads/2014-03-14 12.21.56.jpg"
> digikam.general: Preview quality:  1
> digikam.database: " ( ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) ) "
> digikam.database: Search query:
>  "SELECT DISTINCT Images.id, Images.name, Images.album,
> Albums.albumRoot,ImageInformation.rating, Images.category,
> ImageInformation.format, ImageInformation.creationDate,
> Images.modificationDate, Images.fileSize,ImageInformation.width,  
> ImageInformation.height,ImageTagProperties.value, 
> ImageTagProperties.property, ImageTagProperties.tagid  FROM Images
> INNER JOIN ImageTagProperties ON ImageTagProperties.imageid=Images.id
> LEFT JOIN ImageInformation ON Images.id=ImageInformation.imageidINNER 
> JOIN Albums   ON Albums.id=Images.album WHERE Images.status=1 AND (
> ( ( (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id 
> FROM TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR ( 
> (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM 
> TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR ( 
> (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM 
> TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) )  );"
>  (QVariant(int, 6), QVariant(int, 6), QVariant(QString, 
> "autodetectedPerson"), QVariant(int, 6), QVariant(int, 6), QVariant(QString, 
> "autodetectedFace"), QVariant(int, 6), QVariant(int, 6), QVariant(QString, 
> "tagRegion"))
> digikam.dimg: "/tmp/tmp.x7EaxS04Zv/Pictures/p/Kamera-Uploads/2014-03-14 
> 12.21.56.jpg" : "JPEG" file identified
> digikam.database: Search result: 3849
> Premature end of JPEG file
> digikam.general: Cancel Main Thread
> digikam.general: One job is done
> digikam.general: Cancel Main Thread
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.facesengine: Good rect =  QRect(139,98 41x54) , conf =  0.942572
> digikam.general: Found 1 faces in "2013-12-21 21.29.17-1.jpg" QSize(2448, 
> 3264) QSize(2448, 3264)
> digikam.general: Removing old entries (FaceTagsIface(1, image 4610, tag 6, 
> regionQRect(1110,1066 446x588))
> [Thread 0x7fff237fe700 (LWP 13164) exited]
> [Thread 0x7fff22ffd700 (LWP 13165) exited]
> 
> Thread 20650 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff3cff9700 (LWP 773)]
> 0x74ba17e0 in operator<(QString const&, QString const&) () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> (gdb) bt
> #0  0x74ba17e0 in operator<(QString const&, QString const&) () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #1  0x778abac9 in qMapLessThanKey (key2=..., key1=...) at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:71
> #2  QMap::insert (avalue=..., akey=..., this= out>) at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:713
> #3  Digikam::DImg::setAttribute (this=, key=..., value=...) at 
> /tmp/tmp.x7EaxS04Zv/digikam/core/libs/dimg/dimg_props.cpp:207
> #4  0x778a6cd6 in Digikam::DImg::getUniqueHashV2 (this=0x2ad5a18) at 
> /tmp/tmp.x7EaxS04Zv/digikam/core/libs/dimg/dimg_metadata.cpp:93
> #5  0x778a849d in Digikam::DImg::createHistoryImageId 
> (this=, filePath=..., 
> type=type@entry=Digikam::HistoryImageId::Current) at 
> /tmp/tmp.x7EaxS04Zv/digikam/core/libs/dimg/dimg_metadata.cpp:312
> #6  0x77768995 in Digikam::DImgLoader::readMetadata 
> (this=0x7fff0c057a80, filePath=...) at 
> /tmp/tmp.x7EaxS04Zv/digikam/core/libs/dimg/loaders/dimgloader.cpp:223
> #7  0x7fffb209843c in DigikamJPEGDImgPlugin::DImgJPEGLoader::load 
> (this=0x7fff0c057a80, filePath=..., observer=0x2ad5840) at 
> /tmp/tmp.x7EaxS04Zv/digikam/core/dplugins/dimg/jpeg/dimgjpegloader_load.cpp:56
> #8  0x778a2d6f in 

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-09 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #284 from Maik Qualmann  ---
Git commit 8229ef53b49b0c62244a96cb8f7d06a7452b4ce3 by Maik Qualmann.
Committed on 09/12/2019 at 21:59.
Pushed by mqualmann into branch 'master'.

various changes to the loading task classes

M  +7-7core/dplugins/dimg/heif/dimgheifloader_load.cpp
M  +2-2core/dplugins/dimg/heif/dimgheifloader_save.cpp
M  +7-7core/dplugins/dimg/imagemagick/dimgimagemagickloader.cpp
M  +9-9core/dplugins/dimg/jpeg/dimgjpegloader_load.cpp
M  +6-6core/dplugins/dimg/jpeg/dimgjpegloader_save.cpp
M  +4-4core/dplugins/dimg/jpeg2000/dimgjpeg2000loader_load.cpp
M  +4-4core/dplugins/dimg/jpeg2000/dimgjpeg2000loader_save.cpp
M  +2-2core/dplugins/dimg/pgf/dimgpgfloader.cpp
M  +1-1core/dplugins/dimg/pgf/dimgpgfloader_load.cpp
M  +1-1core/dplugins/dimg/pgf/dimgpgfloader_save.cpp
M  +6-6core/dplugins/dimg/png/dimgpngloader_load.cpp
M  +3-3core/dplugins/dimg/png/dimgpngloader_save.cpp
M  +4-4core/dplugins/dimg/qimage/dimgqimageloader.cpp
M  +6-6core/dplugins/dimg/raw/dimgrawloader.cpp
M  +9-9core/dplugins/dimg/tiff/dimgtiffloader_load.cpp
M  +4-4core/dplugins/dimg/tiff/dimgtiffloader_save.cpp
M  +1-2   
core/dplugins/generic/tools/expoblending/manager/expoblendingthread.cpp
M  +2-3core/dplugins/generic/tools/panorama/tasks/preprocesstask.cpp
M  +5-5core/libs/dimg/dimg_fileio.cpp
M  +3-3core/libs/dimg/filters/icc/icctransform.cpp
M  +1-2core/libs/dimg/filters/icc/icctransformfilter.cpp
M  +2-2core/libs/dimg/filters/icc/icctransformfilter.h
M  +2-2core/libs/dimg/filters/rawprocessingfilter.cpp
M  +2-4core/libs/dimg/loaders/dimgloaderobserver.h
M  +1-1core/libs/threadimageio/fileio/loadingcache.h
M  +11   -22   core/libs/threadimageio/fileio/loadsavetask.cpp
M  +28   -28   core/libs/threadimageio/fileio/loadsavetask.h
M  +8-8core/libs/threadimageio/preview/previewtask.cpp
M  +3-3core/libs/threadimageio/thumb/thumbnailtask.cpp
M  +1-2core/utilities/queuemanager/manager/batchtool.cpp

https://invent.kde.org/kde/digikam/commit/8229ef53b49b0c62244a96cb8f7d06a7452b4ce3

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-09 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #283 from timo...@zoho.com ---
With 8dd3f5099466dede99fd300e55db84fbff6dbad0 (from 2019-12-07):

> digikam.general: Try to get preview from 
> "/tmp/tmp.848xADW9lH/Pictures/p/some-path/DSCN1115.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.848xADW9lH/Pictures/p/some-path/DSCN1115.jpg" : 
> "JPEG" file identified
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.facesengine: Good rect =  QRect(108,73 65x90) , conf =  0.73
> digikam.facesengine: Good rect =  QRect(172,106 56x77) , conf =  0.997096
> digikam.general: Found 2 faces in "DSCN0912.jpg" QSize(4320, 3240) 
> QSize(4320, 3240)
> digikam.general: Removing old entries ()
> digikam.general: Entry QRect(1490,556 1215x1215)227overlapsQRect(1555,518 
> 936x1296)6, skipping
> digikam.general: Entry QRect(2241,1031 1004x1005)99overlapsQRect(2477,994 
> 806x1108)6, skipping
> digikam.dimg:  : return null image! ( false ,  0 ,  0 )
> digikam.dimg:  : return null image! ( false ,  0 ,  0 )
> digikam.general: Try to get preview from 
> "/tmp/tmp.848xADW9lH/Pictures/p/some-path/DSCN1116.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.848xADW9lH/Pictures/p/some-path/DSCN1116.jpg" : 
> "JPEG" file identified
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.facesengine: Good rect =  QRect(94,100 56x76) , conf =  0.995798
> digikam.facesengine: Good rect =  QRect(148,90 62x74) , conf =  0.950529
> digikam.general: Found 2 faces in "DSCN0913.jpg" QSize(4320, 3240) 
> QSize(4320, 3240)
> digikam.general: Removing old entries ()
> digikam.general: Using  4  CPU core to run threads
> digikam.facesengine: Good rect =  QRect(98,85 62x87) , conf =  0.999666
> digikam.facesengine: Good rect =  QRect(23,90 73x88) , conf =  0.998955
> digikam.facesengine: Good rect =  QRect(179,85 73x66) , conf =  0.866344
> digikam.general: Found 3 faces in "DSCN0923.jpg" QSize(4320, 3240) 
> QSize(4320, 3240)
> digikam.general: Removing old entries ()
> digikam.facesengine: Good rect =  QRect(176,137 39x50) , conf =  0.978829
> digikam.facesengine: Good rect =  QRect(125,72 31x49) , conf =  0.721479
> digikam.general: Found 2 faces in "DSCN0945.jpg" QSize(4320, 3240) 
> QSize(4320, 3240)
> digikam.general: Removing old entries ()
> [New Thread 0x7fff237fe700 (LWP 21359)]
> 
> Thread 42 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff5cbfe700 (LWP 17198)]
> 0x77989737 in Digikam::LoadingTask::progressInfo (this=0x3968070, 
> img=0x3968258, progress=0.798271596)
> at 
> /tmp/tmp.848xADW9lH/digikam/core/libs/threadimageio/fileio/loadsavetask.cpp:65
> 65  if (m_thread && m_thread->querySendNotifyEvent())
> (gdb) bt
> #0  0x77989737 in Digikam::LoadingTask::progressInfo (this=0x3968070, 
> img=0x3968258, progress=0.798271596) at 
> /tmp/tmp.848xADW9lH/digikam/core/libs/threadimageio/fileio/loadsavetask.cpp:65
> #1  0x7fffb2099a40 in DigikamJPEGDImgPlugin::DImgJPEGLoader::load 
> (this=0x7fff24260050, filePath=..., observer=0x3968080) at 
> /tmp/tmp.848xADW9lH/digikam/core/dplugins/dimg/jpeg/dimgjpegloader_load.cpp:434
> #2  0x778a2dcc in Digikam::DImg::load (this=this@entry=0x3968258, 
> filePath=..., loadFlagsInt=loadFlagsInt@entry=63, 
> observer=observer@entry=0x3968080, rawDecodingSettings=...) at 
> /tmp/tmp.848xADW9lH/digikam/core/libs/dimg/dimg_fileio.cpp:138
> #3  0x778a4060 in Digikam::DImg::load (this=this@entry=0x3968258, 
> filePath=..., observer=observer@entry=0x3968080, rawDecodingSettings=...) at 
> /tmp/tmp.848xADW9lH/digikam/core/libs/dimg/dimg_fileio.cpp:63
> #4  0x77967fcf in Digikam::PreviewLoadingTask::execute 
> (this=0x3968070) at 
> /tmp/tmp.848xADW9lH/digikam/core/libs/threadimageio/preview/previewtask.cpp:286
> #5  0x7797dcce in Digikam::LoadSaveThread::run (this=0x25b18f0) at 
> /tmp/tmp.848xADW9lH/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #6  0x7799e37e in Digikam::DynamicThread::Private::run 
> (this=0x2974e10) at 
> /tmp/tmp.848xADW9lH/digikam/core/libs/threads/dynamicthread.cpp:183
> #7  0x74b1d7d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #8  0x74b19062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #9  0x744e4ef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #10 0x7441a22f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-05 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #282 from Maik Qualmann  ---
Git commit 58e483a0a3bddc9cb339ab4b5548623a2d18bc3d by Maik Qualmann.
Committed on 05/12/2019 at 22:29.
Pushed by mqualmann into branch 'master'.

small changes on the preview task

M  +44   -52   core/libs/threadimageio/fileio/loadsavetask.cpp
M  +1-2core/libs/threadimageio/fileio/loadsavetask.h
M  +34   -42   core/libs/threadimageio/preview/previewtask.cpp
M  +32   -37   core/libs/threadimageio/thumb/thumbnailtask.cpp

https://invent.kde.org/kde/digikam/commit/58e483a0a3bddc9cb339ab4b5548623a2d18bc3d

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-05 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #281 from timo...@zoho.com ---
With 43ef007a130c058982aaf61a900a0c95d99fd748, crashed on the 4th run after 3
successful ones:

> digikam.general: Cancel Main Thread
> [Thread 0x7fff22ffd700 (LWP 17652) exited]
> digikam.general: One job is done
> digikam.general: Cancel Main Thread
> [Thread 0x7fff23fff700 (LWP 17653) exited]
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from 
> "/tmp/tmp.G5Y5JzCHGg/Pictures/p/Private Bilder/some-folder/sth-086.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.G5Y5JzCHGg/Pictures/p/Private 
> Bilder/some-folder/sth-086.JPG" : "JPEG" file identified
> digikam.general: Found 0 faces in "sth-042.JPG" QSize(2448, 3264) QSize(2448, 
> 3264)
> digikam.general: Removing old entries ()
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from 
> "/tmp/tmp.G5Y5JzCHGg/Pictures/p/Private Bilder/some-folder/sth-087.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.G5Y5JzCHGg/Pictures/p/Private 
> Bilder/some-folder/sth-087.JPG" : "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from 
> "/tmp/tmp.G5Y5JzCHGg/Pictures/p/Private Bilder/some-folder/sth-088.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.G5Y5JzCHGg/Pictures/p/Private 
> Bilder/some-folder/sth-088.JPG" : "JPEG" file identified
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Found 0 faces in "sth-043.JPG" QSize(3264, 2448) QSize(3264, 
> 2448)
> digikam.general: Removing old entries ()
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Found 0 faces in "sth-044.JPG" QSize(3264, 2448) QSize(3264, 
> 2448)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "sth-045.JPG" QSize(3264, 2448) QSize(3264, 
> 2448)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "sth-046.JPG" QSize(3264, 2448) QSize(3264, 
> 2448)
> digikam.general: Removing old entries ()
> 
> Thread 47 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff3cf54700 (LWP 4085)]
> 0x in ?? ()
> (gdb) bt
> #0  0x in ?? ()
> #1  0x77967a6d in Digikam::PreviewLoadingTask::execute 
> (this=0x41f7db0) at 
> /tmp/tmp.G5Y5JzCHGg/digikam/core/libs/threadimageio/preview/previewtask.cpp:338
> #2  0x7797d79e in Digikam::LoadSaveThread::run (this=0x7fff40072190) 
> at 
> /tmp/tmp.G5Y5JzCHGg/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #3  0x7799de0e in Digikam::DynamicThread::Private::run 
> (this=0x3847210) at 
> /tmp/tmp.G5Y5JzCHGg/digikam/core/libs/threads/dynamicthread.cpp:183
> #4  0x74b1b7d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #5  0x74b17062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #6  0x744e2ef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #7  0x7441822f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-01 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #280 from Maik Qualmann  ---
Git commit a0774df21a8f039e3355c8ad3ffa0ca20924dbbf by Maik Qualmann.
Committed on 01/12/2019 at 17:11.
Pushed by mqualmann into branch 'master'.

latest DImg change has a memory leak

M  +1-3core/libs/threadimageio/fileio/loadingcache.cpp
M  +1-1core/libs/threadimageio/fileio/loadsavetask.cpp
M  +1-1core/libs/threadimageio/preview/previewtask.cpp

https://invent.kde.org/kde/digikam/commit/a0774df21a8f039e3355c8ad3ffa0ca20924dbbf

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #279 from timo...@zoho.com ---
With aacced0438943b163ffa95a3e1d82d74e4d065ae:

> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.HClqSMevcG/Pictures/p/Syncthing-3TB/Telegram-Android/Telegram 
> Images/238228297_1801.jpg" : "JPEG" file identified
> digikam.general: Found 0 faces in "238224963_303731.jpg" QSize(720, 1280) 
> QSize(720, 1280)
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.HClqSMevcG/Pictures/p/Syncthing-3TB/Telegram-Android/Telegram 
> Images/238228345_51256.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.HClqSMevcG/Pictures/p/Syncthing-3TB/Telegram-Android/Telegram 
> Images/238228345_51256.jpg" : "JPEG" file identified
> digikam.general: Found 0 faces in "238224970_75850.jpg" QSize(949, 1280) 
> QSize(949, 1280)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "238224982_164876.jpg" QSize(1280, 949) 
> QSize(1280, 949)
> digikam.general: Found 0 faces in "238225065_102724.jpg" QSize(589, 429) 
> QSize(589, 429)
> digikam.general: Found 0 faces in "238225204_14626.jpg" QSize(720, 1280) 
> QSize(720, 1280)
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.HClqSMevcG/Pictures/p/Syncthing-3TB/Telegram-Android/Telegram 
> Images/238228411_98872.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.HClqSMevcG/Pictures/p/Syncthing-3TB/Telegram-Android/Telegram 
> Images/238228411_98872.jpg" : "JPEG" file identified
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.HClqSMevcG/Pictures/p/Syncthing-3TB/Telegram-Android/Telegram 
> Images/238228432_91266.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.HClqSMevcG/Pictures/p/Syncthing-3TB/Telegram-Android/Telegram 
> Images/238228432_91266.jpg" : "JPEG" file identified
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.HClqSMevcG/Pictures/p/Syncthing-3TB/Telegram-Android/Telegram 
> Images/238228438_206539.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.HClqSMevcG/Pictures/p/Syncthing-3TB/Telegram-Android/Telegram 
> Images/238228438_206539.jpg" : "JPEG" file identified
> digikam.facesengine: Good rect =  QRect(76,85 71x104) , conf =  0.999438
> digikam.general: Found 1 faces in "238225234_157978.jpg" QSize(1280, 959) 
> QSize(1280, 959)
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Found 0 faces in "238225255_170020.jpg" QSize(1280, 949) 
> QSize(1280, 949)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "238225346_22680.jpg" QSize(949, 1280) 
> QSize(949, 1280)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "238225406_274036.jpg" QSize(1280, 720) 
> QSize(1280, 720)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "238225432_9767.jpg" QSize(960, 894) 
> QSize(960, 894)
> digikam.general: Removing old entries ()
> 
> Thread 52 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff2af58700 (LWP 21794)]
> Digikam::PreviewLoadingTask::execute (this=0x31e1640)
> at 
> /tmp/tmp.HClqSMevcG/digikam/core/libs/threadimageio/preview/previewtask.cpp:325
> 325 if (l->accessMode() == 
> LoadSaveThread::AccessModeReadWrite)
> (gdb) bt
> #0  Digikam::PreviewLoadingTask::execute (this=0x31e1640) at 
> /tmp/tmp.HClqSMevcG/digikam/core/libs/threadimageio/preview/previewtask.cpp:325
> #1  0x7797d77e in Digikam::LoadSaveThread::run (this=0x5525c00) at 
> /tmp/tmp.HClqSMevcG/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #2  0x7799de0e in Digikam::DynamicThread::Private::run 
> (this=0x3acb730) at 
> /tmp/tmp.HClqSMevcG/digikam/core/libs/threads/dynamicthread.cpp:183
> #3  0x74b1b7d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #4  0x74b17062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #5  0x744e2ef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #6  0x7441822f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-01 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #278 from Maik Qualmann  ---
Git commit aacced0438943b163ffa95a3e1d82d74e4d065ae by Maik Qualmann.
Committed on 01/12/2019 at 13:00.
Pushed by mqualmann into branch 'master'.

return new DImg from QCache

M  +4-2core/libs/threadimageio/fileio/loadingcache.cpp

https://invent.kde.org/kde/digikam/commit/aacced0438943b163ffa95a3e1d82d74e4d065ae

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-12-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #277 from timo...@zoho.com ---
With 330d3cea6749f1a50783bd0acd6ac57b95cf0519:

> digikam.dimg: 
> "/tmp/tmp.CLpH7QxTNQ/Pictures/p/Android/Whatsapp/IMG-20140822-WA0033.jpg" : 
> "JPEG" file identified
> digikam.general: Found 0 faces in "IMG-20140809-WA0001.jpg" QSize(1280, 721) 
> QSize(1280, 721)
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.CLpH7QxTNQ/Pictures/p/Android/Whatsapp/IMG-20140822-WA0034.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.CLpH7QxTNQ/Pictures/p/Android/Whatsapp/IMG-20140822-WA0034.jpg" : 
> "JPEG" file identified
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Removing old entries ()
> digikam.general: Try to get preview from 
> "/tmp/tmp.CLpH7QxTNQ/Pictures/p/Android/Whatsapp/IMG-20140822-WA0035.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.CLpH7QxTNQ/Pictures/p/Android/Whatsapp/IMG-20140822-WA0035.jpg" : 
> "JPEG" file identified
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.CLpH7QxTNQ/Pictures/p/Android/Whatsapp/IMG-20140822-WA0036.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.CLpH7QxTNQ/Pictures/p/Android/Whatsapp/IMG-20140822-WA0036.jpg" : 
> "JPEG" file identified
> digikam.general: Found 0 faces in "IMG-20140809-WA0002.jpg" QSize(1280, 720) 
> QSize(1280, 720)
> digikam.general: Removing old entries ()
> digikam.facesengine: Good rect =  QRect(95,71 92x119) , conf =  0.998028
> digikam.general: Found 1 faces in "IMG-20140809-WA0003.jpg" QSize(500, 609) 
> QSize(500, 609)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "IMG-20140809-WA0004.jpg" QSize(1280, 721) 
> QSize(1280, 721)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "IMG-20140809-WA0005.jpg" QSize(550, 555) 
> QSize(550, 555)
> digikam.general: Removing old entries ()
> 
> Thread 33 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff373ff700 (LWP 7826)]
> 0x743a252c in malloc_consolidate () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb) bt
> #0  0x743a252c in malloc_consolidate () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> #1  0x743a3448 in _int_free () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> #2  0x7789c0a6 in Digikam::DImg::Private::~Private 
> (this=0x7fff3c064580, __in_chrg=) at 
> /tmp/tmp.CLpH7QxTNQ/digikam/core/libs/dimg/dimg_p.h:140
> #3  
> QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer
>  (this=, __in_chrg=) at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qshareddata.h:182
> #4  Digikam::DImg::~DImg (this=, __in_chrg=) at 
> /tmp/tmp.CLpH7QxTNQ/digikam/core/libs/dimg/dimg.cpp:188
> #5  0x77982d87 in QCache::unlink (n=..., 
> this=0x569f20) at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qcache.h:69
> #6  QCache::trim (m=204869632, this=0x569f20) at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qcache.h:193
> #7  QCache::insert (acost=4845568, 
> aobject=0x7fff2809c950, akey=..., this=0x569f20) at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qcache.h:173
> #8  Digikam::LoadingCache::putImage (this=this@entry=0x5cced0, cacheKey=..., 
> img=..., filePath=...) at 
> /tmp/tmp.CLpH7QxTNQ/digikam/core/libs/threadimageio/fileio/loadingcache.cpp:193
> #9  0x779675df in Digikam::PreviewLoadingTask::execute 
> (this=0x25fe5a0) at 
> /tmp/tmp.CLpH7QxTNQ/digikam/core/libs/threadimageio/preview/previewtask.cpp:305
> #10 0x7797d77e in Digikam::LoadSaveThread::run (this=0x7fff3c1c9160) 
> at 
> /tmp/tmp.CLpH7QxTNQ/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #11 0x7799ddce in Digikam::DynamicThread::Private::run 
> (this=0x3370680) at 
> /tmp/tmp.CLpH7QxTNQ/digikam/core/libs/threads/dynamicthread.cpp:183
> #12 0x74b1b7d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #13 0x74b17062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #14 0x744e2ef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #15 0x7441822f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

-- 
You are 

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-30 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #276 from Maik Qualmann  ---
Git commit 330d3cea6749f1a50783bd0acd6ac57b95cf0519 by Maik Qualmann.
Committed on 30/11/2019 at 21:52.
Pushed by mqualmann into branch 'master'.

polish set loading status

M  +7-3core/libs/threadimageio/fileio/loadsavetask.cpp
M  +0-26   core/libs/threadimageio/preview/previewtask.cpp
M  +1-2core/libs/threadimageio/preview/previewtask.h

https://invent.kde.org/kde/digikam/commit/330d3cea6749f1a50783bd0acd6ac57b95cf0519

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-30 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #275 from timo...@zoho.com ---
Not sure how useful that debug information is, loading task status seems to
always be 0. With e69b8317e24ee6487b6a79a75052aab6e7024f43:


> digikam.general: Loading task status: 0
> digikam.general: Try to get preview from 
> "/tmp/tmp.jRPmEBcJjg/Pictures/p/something/IMG_7056.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.jRPmEBcJjg/Pictures/p/something/IMG_7056.JPG" : 
> "JPEG" file identified
> digikam.general: Using  4  CPU core to run threads
> [New Thread 0x7fff5d3ff700 (LWP 28951)]
> digikam.general: Action Thread run  1  new jobs
> [New Thread 0x7fff23fff700 (LWP 28952)]
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.database: " ( ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) ) "
> digikam.database: Search query:
>  "SELECT DISTINCT Images.id, Images.name, Images.album,
> Albums.albumRoot,ImageInformation.rating, Images.category,
> ImageInformation.format, ImageInformation.creationDate,
> Images.modificationDate, Images.fileSize,ImageInformation.width,  
> ImageInformation.height,ImageTagProperties.value, 
> ImageTagProperties.property, ImageTagProperties.tagid  FROM Images
> INNER JOIN ImageTagProperties ON ImageTagProperties.imageid=Images.id
> LEFT JOIN ImageInformation ON Images.id=ImageInformation.imageidINNER 
> JOIN Albums   ON Albums.id=Images.album WHERE Images.status=1 AND (  (
> ( (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM 
> TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR ( 
> (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM 
> TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR ( 
> (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM 
> TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) )  );"
>  (QVariant(int, 4), QVariant(int, 4), QVariant(QString, 
> "autodetectedPerson"), QVariant(int, 4), QVariant(int, 4), QVariant(QString, 
> "autodetectedFace"), QVariant(int, 4), QVariant(int, 4), QVariant(QString, 
> "tagRegion"))
> digikam.database: Search result: 2618
> digikam.general: Trying to get thumbnail with Exiv2 for 
> "/tmp/tmp.jRPmEBcJjg/Pictures/p/Android/Camera/IMG_20140731_200523.jpg"
> digikam.general: Trying to get thumbnail with DImg preview for 
> "/tmp/tmp.jRPmEBcJjg/Pictures/p/Android/Camera/IMG_20140731_200523.jpg"
> digikam.dimg: 
> "/tmp/tmp.jRPmEBcJjg/Pictures/p/Android/Camera/IMG_20140731_200523.jpg" : 
> "JPEG" file identified
> digikam.general: Cancel Main Thread
> [Thread 0x7fff5d3ff700 (LWP 28951) exited]
> digikam.general: One job is done
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Cancel Main Thread
> [Thread 0x7fff23fff700 (LWP 28952) exited]
> 
> Thread 79 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff3effd700 (LWP 20118)]
> 0x74b9e72a in operator==(QString const&, QString const&) ()
>from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> (gdb) bt
> #0  0x74b9e72a in operator==(QString const&, QString const&) () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #1  0x7797e275 in 
> Digikam::LoadingDescription::equalsIgnoreReducedVersion (this= out>, other=...) at 
> /tmp/tmp.jRPmEBcJjg/digikam/core/libs/threadimageio/fileio/loadingdescription.cpp:313
> #2  0x7798868b in Digikam::SharedLoadingTask::notifyNewLoadingProcess 
> (this=0x4d316a0, process=, description=...)
> at 
> /tmp/tmp.jRPmEBcJjg/digikam/core/libs/threadimageio/fileio/loadsavetask.cpp:434
> #3  0x7797f6e0 in Digikam::LoadingCache::notifyNewLoadingProcess 
> (this=this@entry=0x5ae960, process=process@entry=0x323d7d0, description=...)
> at 
> /tmp/tmp.jRPmEBcJjg/digikam/core/libs/threadimageio/fileio/loadingcache.cpp:240
> #4  0x779668b5 in Digikam::PreviewLoadingTask::execute 
> (this=0x323d610) at 
> /tmp/tmp.jRPmEBcJjg/digikam/core/libs/threadimageio/preview/previewtask.cpp:146
> #5  0x7797c93e in Digikam::LoadSaveThread::run (this=0x2cd24c0) at 
> /tmp/tmp.jRPmEBcJjg/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #6  0x7799cf9e in Digikam::DynamicThread::Private::run 
> (this=0x3373e90) at 
> /tmp/tmp.jRPmEBcJjg/digikam/core/libs/threads/dynamicthread.cpp:183
> #7  0x74b1a7d2 

[digikam] [Bug 399923] Segmentation fault during face detection

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

--- Comment #274 from Maik Qualmann  ---
Git commit 62ab5314c3b32a83c0b765b67c251ee2bd810b37 by Maik Qualmann.
Committed on 28/11/2019 at 21:53.
Pushed by mqualmann into branch 'master'.

add debug, we need the loading task status

M  +2-0core/libs/threadimageio/preview/previewtask.cpp

https://invent.kde.org/kde/digikam/commit/62ab5314c3b32a83c0b765b67c251ee2bd810b37

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

[digikam] [Bug 399923] Segmentation fault during face detection

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

--- Comment #273 from Maik Qualmann  ---
However, I see no error message that the memory could not be requested. Another
possibility is that the shared image data is changed by another thread at the
same time.

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-28 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #272 from timo...@zoho.com ---
Created attachment 124172
  --> https://bugs.kde.org/attachment.cgi?id=124172=edit
here's one additional trace taken during the last run

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

[digikam] [Bug 399923] Segmentation fault during face detection

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

--- Comment #271 from Maik Qualmann  ---
The cause here might be that we did not get the requested memory as a block.
Hmm, yes we have to check if we got the memory, but what if not? Just do not
rotate? On the other hand, we have to look at where we lose memory somewhere,
the memory consumption seems to me a bit too high.

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-28 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #270 from timo...@zoho.com ---
I was using exiv2 0.27.1. I've updated to 0.27.2, disabled color management
(which was enabled in the other runs, since every run starts from a clean
digikam with default configuration). With
105ccfd47cc8ac73037eac0d6873581a9e49c1aa:

> digikam.general: Found 0 faces in "IMG_20180620_172836326_HDR.jpg" 
> QSize(4160, 3120) QSize(4160, 3120)
> digikam.general: Removing old entries ()
> digikam.general: Cancel Main Thread
> [Thread 0x7fff1affd700 (LWP 23850) exited]
> digikam.general: One job is done
> digikam.general: Cancel Main Thread
> [Thread 0x7fff1a7fc700 (LWP 23851) exited]
> digikam.general: Check for finish:  10 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.PyUwvaBSNi/Pictures/p/something/IMG_20180621_105141093.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.PyUwvaBSNi/Pictures/p/something/IMG_20180621_105141093.jpg" : 
> "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.facesengine: Good rect =  QRect(248,151 32x42) , conf =  0.81234
> digikam.general: Found 1 faces in "IMG_20180620_215959940_HDR.jpg" 
> QSize(4160, 3120) QSize(4160, 3120)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "IMG_20180621_100509050.jpg" QSize(3120, 
> 4160) QSize(3120, 4160)
> digikam.general: Removing old entries ()
> 
> Thread 1137 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff5cf59700 (LWP 4434)]
> Digikam::DImg::rotate (this=0x256ef48, angle=angle@entry=Digikam::DImg::ROT90)
> at /tmp/tmp.PyUwvaBSNi/digikam/core/libs/dimg/dimg_transform.cpp:119
> 119 *to = *from++;
> (gdb) bt
> #0  Digikam::DImg::rotate (this=0x256ef48, 
> angle=angle@entry=Digikam::DImg::ROT90) at 
> /tmp/tmp.PyUwvaBSNi/digikam/core/libs/dimg/dimg_transform.cpp:119
> #1  0x778b4997 in Digikam::DImg::rotateAndFlip 
> (this=this@entry=0x256ef48, orientation=) at 
> /tmp/tmp.PyUwvaBSNi/digikam/core/libs/dimg/dimg_transform.cpp:450
> #2  0x778b4b8e in Digikam::DImg::exifRotate 
> (this=this@entry=0x256ef48, filePath=...) at 
> /tmp/tmp.PyUwvaBSNi/digikam/core/libs/dimg/dimg_transform.cpp:562
> #3  0x77967c74 in Digikam::PreviewLoadingTask::execute 
> (this=0x256ed60) at 
> /tmp/tmp.PyUwvaBSNi/digikam/core/libs/threadimageio/preview/previewtask.cpp:296
> #4  0x7797d84e in Digikam::LoadSaveThread::run (this=0x2525630) at 
> /tmp/tmp.PyUwvaBSNi/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #5  0x7799deae in Digikam::DynamicThread::Private::run 
> (this=0x2c4b4f0) at 
> /tmp/tmp.PyUwvaBSNi/digikam/core/libs/threads/dynamicthread.cpp:183
> #6  0x74b1b7d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #7  0x74b17062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #8  0x744e2ef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #9  0x7441822f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

I don't think isolating a single image is going to work, since there is no
failure that is deterministically triggered by a single image. Sometimes the
scan succeeds without crash.

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-27 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #269 from caulier.gil...@gmail.com ---
It's clear. your last backtrace as nothing to do with face management.

The crash come from Exiv2 shared library when an ICC color profile is taken
from a JPEG image to render an image.

1/ did you have the Color Management enabled on your digiKam settings ? If yes,
please turn off and try again.

2/ Which Exiv2 version do you use exactly ? I hope that it's the last stable
0.27.2. If now, please update this component and recompile digiKam. It's
important, as Exiv2 is a critical component for digiKam, it's used everywhere.

3/ Can you process the facemanagement step by step to parse small parts of the
collection. The idea is to try to localize the JPEG file which crash Exiv2.

Best

Gilles Caulier

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-27 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #268 from timo...@zoho.com ---
Created attachment 124143
  --> https://bugs.kde.org/attachment.cgi?id=124143=edit
digikam resource usage with 105ccfd47cc8ac73037eac0d6873581a9e49c1aa

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-27 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #267 from timo...@zoho.com ---
With 105ccfd47cc8ac73037eac0d6873581a9e49c1aa:

> digikam.general: Try to get preview from 
> "/tmp/tmp.CebnuTHvLs/Pictures/p/sth/P1020970.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.CebnuTHvLs/Pictures/p/sth/P1020970.JPG" : "JPEG" file 
> identified
> digikam.general: Cancel Main Thread
> [Thread 0x7fff48d1a700 (LWP 9071) exited]
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Found 0 faces in "P1020949.JPG" QSize(3072, 2304) 
> QSize(3072, 2304)
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.CebnuTHvLs/Pictures/p/sth/P1020971.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.CebnuTHvLs/Pictures/p/sth/P1020971.JPG" : "JPEG" file 
> identified
> 
> Thread 57 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff337fe700 (LWP 27911)]
> 0x0018 in ?? ()
> (gdb) bt
> #0  0x0018 in ?? ()
> #1  0x73aa6945 in Exiv2::ExifKey::clone() const () from 
> /nix/store/56932a3lcqp48131p0w0ggr1lhxxna3v-exiv2-0.27.1/lib/libexiv2.so.27
> #2  0x73a58bb2 in Exiv2::Exifdatum::Exifdatum(Exiv2::Exifdatum 
> const&) () from 
> /nix/store/56932a3lcqp48131p0w0ggr1lhxxna3v-exiv2-0.27.1/lib/libexiv2.so.27
> #3  0x778d45cd in 
> __gnu_cxx::new_allocator 
> >::construct (this= out>, __p=) at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/ext/new_allocator.h:136
> #4  std::allocator_traits > 
> >::construct (__a=..., 
> __p=) at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/alloc_traits.h:475
> #5  std::__cxx11::list 
> >::_M_create_node (this=0x7fff337fccb0) at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/stl_list.h:575
> #6  std::__cxx11::list 
> >::_M_insert (__position=..., this=0x7fff337fccb0) 
> at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/stl_list.h:1801
> #7  std::__cxx11::list 
> >::emplace_back (this=0x7fff337fccb0) at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/stl_list.h:1133
> #8  std::__cxx11::list 
> >::_M_initialize_dispatch > 
> (__last=..., __first=..., this=0x7fff337fccb0) at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/stl_list.h:1730
> #9  std::__cxx11::list 
> >::list (__x=..., this=0x7fff337fccb0) at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/stl_list.h:655
> #10 Exiv2::ExifData::ExifData (this=0x7fff337fccb0) at 
> /nix/store/291xr43ngjk60aw7ldshmajbavn5ajn8-exiv2-0.27.1-dev/include/exiv2/exif.hpp:434
> #11 Digikam::MetaEngine::getExifTagData (this=this@entry=0x7fff337fcdb0, 
> exifTagName=exifTagName@entry=0x77d95f5d "Exif.Image.InterColorProfile") 
> at 
> /tmp/tmp.CebnuTHvLs/digikam/core/libs/metadataengine/engine/metaengine_exif.cpp:686
> #12 0x77911984 in Digikam::DMetadata::getIccProfile 
> (this=this@entry=0x7fff337fcdb0) at 
> /tmp/tmp.CebnuTHvLs/digikam/core/libs/metadataengine/dmetadata/dmetadata_exif.cpp:85
> #13 0x77767ddf in Digikam::DImgLoader::checkExifWorkingColorSpace 
> (this=this@entry=0x7fff1c19bc00) at 
> /tmp/tmp.CebnuTHvLs/digikam/core/libs/dimg/loaders/dimgloader.cpp:243
> #14 0x7fffc28d8486 in DigikamJPEGDImgPlugin::DImgJPEGLoader::load 
> (this=0x7fff1c19bc00, filePath=..., observer=0x2e82e20) at 
> /tmp/tmp.CebnuTHvLs/digikam/core/dplugins/dimg/jpeg/dimgjpegloader_load.cpp:601
> #15 0x778a1dfc in Digikam::DImg::load (this=this@entry=0x2e82ff8, 
> filePath=..., loadFlagsInt=loadFlagsInt@entry=63, 
> observer=observer@entry=0x2e82e20, rawDecodingSettings=...) at 
> /tmp/tmp.CebnuTHvLs/digikam/core/libs/dimg/dimg_fileio.cpp:138
> #16 0x778a3090 in Digikam::DImg::load (this=this@entry=0x2e82ff8, 
> filePath=..., observer=observer@entry=0x2e82e20, rawDecodingSettings=...) at 
> /tmp/tmp.CebnuTHvLs/digikam/core/libs/dimg/dimg_fileio.cpp:63
> #17 0x77967600 in Digikam::PreviewLoadingTask::execute 
> (this=0x2e82e10) at 
> /tmp/tmp.CebnuTHvLs/digikam/core/libs/threadimageio/preview/previewtask.cpp:286
> #18 0x7797d7fe in Digikam::LoadSaveThread::run (this=0x2bd8070) at 
> /tmp/tmp.CebnuTHvLs/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #19 0x7799de5e in Digikam::DynamicThread::Private::run 
> (this=0x2b9e240) at 
> /tmp/tmp.CebnuTHvLs/digikam/core/libs/threads/dynamicthread.cpp:183
> #20 0x74b1b7d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #21 0x74b17062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #22 0x744e2ef7 in 

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-26 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #266 from Maik Qualmann  ---
Git commit 33735b564c7cb1276d1a0588a518190300f83d31 by Maik Qualmann.
Committed on 26/11/2019 at 17:47.
Pushed by mqualmann into branch 'master'.

use QExplicitlySharedDataPointer for MetaEngineData

M  +2-2core/libs/metadataengine/engine/metaengine_data.h
M  +1-1core/libs/metadataengine/engine/metaengine_p.h

https://invent.kde.org/kde/digikam/commit/33735b564c7cb1276d1a0588a518190300f83d31

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-26 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #265 from Maik Qualmann  ---
Yes, I think the crash is clear. We use a QSharedDataPointer, read access is
shared, write access calls detach(). I do not think he is able to correctly
clone the Exiv2::ExifData container. We have the getExifdata() function 2
times, once as const, read only and once to read and write. I think here is the
QExplicitlySharedDataPointer the right choice, which does not execute an
automatic detach(). The write operations should be intercepted by our mutex.

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-25 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #264 from caulier.gil...@gmail.com ---
The backtrace from comment #262 is very interresting :

> #8  Digikam::MetaEngineData::Private::Private (this=0x7fff08086c80)
> at 
> /tmp/tmp.m1S6vaoNjT/digikam/core/libs/metadataengine/engine/metaengine_data_p.h:34
> #9  QSharedDataPointer::clone 
> (this=0x7fff0829adb0)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qshareddata.h:253
> #10 QSharedDataPointer::detach_helper 
> (this=this@entry=0x7fff0829adb0)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qshareddata.h:259
> #11 0x778cd22d in 
> QSharedDataPointer::detach 
> (this=0x7fff0829adb0)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qshareddata.h:74
> #12 QSharedDataPointer::data 
> (this=0x7fff0829adb0)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qshareddata.h:81
> #13 Digikam::MetaEngine::Private::exifMetadata (this=0x7fff0829ad80)
> at 
> /tmp/tmp.m1S6vaoNjT/digikam/core/libs/metadataengine/engine/metaengine_p.cpp:104
> #14 0x778d39d8 in Digikam::MetaEngine::getExifTagData 
> (this=this@entry=0x7fff2a290db0,
> exifTagName=exifTagName@entry=0x77d94f5d 
> "Exif.Image.InterColorProfile")

It's relevant of QSharedData C++ clone operation from the private container of
MetaEngineDatata private container. This class do not have an overloaded  clone
method, default one is used instead.

Coverity Report static analyzer start to tip to implement this kind of C++
operator with data containers (not this one). It's not a simple task and an
obscur implementation to do. I tried all the way explained on the web to fix
the reports from Coverity without success.

Gilles Caulier

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-25 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #263 from timo...@zoho.com ---
Created attachment 124119
  --> https://bugs.kde.org/attachment.cgi?id=124119=edit
digikam resource usage with b50ee49d2455c936f02178d59389669e0796e506

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-25 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #262 from timo...@zoho.com ---
I tracked the memory usage with psrecord (attached). You can easily see the
point where it crashed, when the CPU usage dropped to 0 and the memory usage
flattened out.
With b50ee49d2455c936f02178d59389669e0796e506:

> digikam.database: Search query:
>  "SELECT DISTINCT Images.id, Images.name, Images.album,
> Albums.albumRoot,ImageInformation.rating, Images.category,
> ImageInformation.format, ImageInformation.creationDate,
> Images.modificationDate, Images.fileSize,ImageInformation.width,  
> ImageInformation.height,ImageTagProperties.value, 
> ImageTagProperties.property, ImageTagProperties.tagid  FROM Images
>   INNER JOIN ImageTagProperties ON ImageTagProperties.imageid=Images.id   
>  LEFT JOIN ImageInformation ON Images.id=ImageInformation.imageid
> INNER JOIN Albums   ON Albums.id=Images.album WHERE Images.status=1 
> AND (  ( ( (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT 
> id FROM TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR ( 
> (ImageTagPropertie
> s.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE 
> pid=?)) AND ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? 
> OR ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) )  );"
>  (QVariant(int, 4), QVariant(int, 4), QVariant(QString, 
> "autodetectedPerson"), QVariant(int, 4), QVariant(int, 4), QVariant(QString, 
> "autodetectedFace"), QVariant(int, 4), QVariant(int, 4), QVariant(QString, 
> "tagRegion"))
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.m1S6vaoNjT/Pictures/p/images/new-pics/DCIM/Camera/IMG_20171226_173931.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.m1S6vaoNjT/Pictures/p/images/new-pics/DCIM/Camera/IMG_20171226_173931.jpg"
>  : "JPEG" file identified
> digikam.database: Search result: 5669
> digikam.general: Cancel Main Thread
> digikam.facesengine: Good rect =  QRect(10,116 63x74) , conf =  0.999788
> digikam.general: Found 1 faces in "IMG_20171224_155639.jpg" QSize(2592, 1944) 
> QSize(2592, 1944)
> digikam.general: Removing old entries ()
> digikam.general: One job is done
> digikam.general: Cancel Main Thread
> digikam.general: Found 0 faces in "IMG_20171224_155649.jpg" QSize(3120, 4208) 
> QSize(3120, 4208)
> digikam.general: Removing old entries ()
> [Thread 0x7fff29a91700 (LWP 11815) exited]
> [Thread 0x7fff28a8f700 (LWP 11814) exited]
> 
> Thread 171 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff2a292700 (LWP 29547)]
> 0x743c33cf in __memmove_sse2_unaligned_erms () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb) bt
> #0  0x743c33cf in __memmove_sse2_unaligned_erms () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> #1  0x778c7d67 in std::char_traits::copy (__n=32, __s2=0x4 
> , __s1=)
> at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/char_traits.h:350
> #2  std::__cxx11::basic_string, 
> std::allocator >::_S_copy (__n=32,
> __s=0x4 , __d=)
> at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/basic_string.h:340
> #3  std::__cxx11::basic_string, 
> std::allocator >::_S_copy_chars (__k2=,
> __k1=0x4 , __p= out>)
> at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/basic_string.h:382
> #4  std::__cxx11::basic_string, 
> std::allocator >::_M_construct (this=this@entry=0x7fff08086c88,
> __beg=0x4 , __end= out>)
> at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/basic_string.tcc:225
> #5  0x778c83dd in std::__cxx11::basic_string std::char_traits, std::allocator >::_M_construct_aux (
> __end=, __beg=, this=0x7fff08086c88)
> at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/basic_string.h:236
> #6  std::__cxx11::basic_string, 
> std::allocator >::_M_construct (__end=,
> __beg=, this=0x7fff08086c88) at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/basic_string.h:255
> #7  std::__cxx11::basic_string, 
> std::allocator >::basic_string (__str=..., this=0x7fff08086c88)
> at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/basic_string.h:440
> #8  Digikam::MetaEngineData::Private::Private (this=0x7fff08086c80)
> at 
> /tmp/tmp.m1S6vaoNjT/digikam/core/libs/metadataengine/engine/metaengine_data_p.h:34
> #9  QSharedDataPointer::clone 
> (this=0x7fff0829adb0)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qshareddata.h:253
> #10 QSharedDataPointer::detach_helper 
> 

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-24 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #261 from Maik Qualmann  ---
Post of commits with CCBUGS seems broken. Please test this experiment:

https://invent.kde.org/kde/digikam/commit/7c50ae256ee7eb59e4c00dc101d7d7339a420ab9

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-21 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #260 from Maik Qualmann  ---
It is only interested in what has changed in the memory usage.

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-21 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #259 from Maik Qualmann  ---
Git commit c31a8b4e3650fe05392e01c2388f2f2847a191b4 by Maik Qualmann.
Committed on 21/11/2019 at 22:09.
Pushed by mqualmann into branch 'master'.

for a test we disable the QCache

M  +2-2core/libs/threadimageio/preview/previewtask.cpp

https://invent.kde.org/kde/digikam/commit/c31a8b4e3650fe05392e01c2388f2f2847a191b4

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #258 from timo...@zoho.com ---
I kept a loose eye on my the ram usage during this run, seemed to hover around
~5-6G actual memory and 1-2G swap. The system definitely didn't OOM. I was
using it at the same time, and I should've noticed that.  With
7f0595ab85f3bf305876771e96671da3dce7122e:

> Gigikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from 
> "/tmp/tmp.tlWfpH3zHy/Pictures/p/path/file.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.tlWfpH3zHy/Pictures/p/path/file.JPG" : "JPEG" file 
> identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from 
> "/tmp/tmp.tlWfpH3zHy/Pictures/p/path/file.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.tlWfpH3zHy/Pictures/p/path/file.JPG" : "JPEG" file 
> identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from 
> "/tmp/tmp.tlWfpH3zHy/Pictures/p/path/file.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.tlWfpH3zHy/Pictures/p/path/file.JPG" : "JPEG" file 
> identified
> [New Thread 0x7fff187d2700 (LWP 23549)]
> 
> Thread 31 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fffa51ee700 (LWP 28349)]
> 0x77988567 in Digikam::LoadingTask::progressInfo (this=0x4993e60, 
> img=0x4994048, progress=0.5) at 
> /tmp/tmp.tlWfpH3zHy/digikam/core/libs/threadimageio/fileio/loadsavetask.cpp:65
> 65  if (m_thread && m_thread->querySendNotifyEvent())
> (gdb) bt
> #0  0x77988567 in Digikam::LoadingTask::progressInfo (this=0x4993e60, 
> img=0x4994048, progress=0.5)
> at 
> /tmp/tmp.tlWfpH3zHy/digikam/core/libs/threadimageio/fileio/loadsavetask.cpp:65
> #1  0x7fffb2098a40 in DigikamJPEGDImgPlugin::DImgJPEGLoader::load 
> (this=0x7fff48325680, filePath=..., observer=0x4993e70)
> at 
> /tmp/tmp.tlWfpH3zHy/digikam/core/dplugins/dimg/jpeg/dimgjpegloader_load.cpp:434
> #2  0x778a0aec in Digikam::DImg::load (this=this@entry=0x4994048, 
> filePath=..., loadFlagsInt=loadFlagsInt@entry=63,
> observer=observer@entry=0x4993e70, rawDecodingSettings=...) at 
> /tmp/tmp.tlWfpH3zHy/digikam/core/libs/dimg/dimg_fileio.cpp:138
> #3  0x778a1d80 in Digikam::DImg::load (this=this@entry=0x4994048, 
> filePath=..., observer=observer@entry=0x4993e70,
> rawDecodingSettings=...) at 
> /tmp/tmp.tlWfpH3zHy/digikam/core/libs/dimg/dimg_fileio.cpp:63
> #4  0x77966900 in Digikam::PreviewLoadingTask::execute 
> (this=0x4993e60)
> at 
> /tmp/tmp.tlWfpH3zHy/digikam/core/libs/threadimageio/preview/previewtask.cpp:286
> #5  0x7797cafe in Digikam::LoadSaveThread::run (this=0xf4a270)
> at 
> /tmp/tmp.tlWfpH3zHy/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #6  0x7799d15e in Digikam::DynamicThread::Private::run 
> (this=0x2b876d0)
> at /tmp/tmp.tlWfpH3zHy/digikam/core/libs/threads/dynamicthread.cpp:183
> #7  0x74b1a7d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #8  0x74b16062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #9  0x744e1ef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #10 0x7441722f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-21 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #257 from Maik Qualmann  ---
Git commit ea529419b90d54ce5bc6052a14ec2c23c5f79b1f by Maik Qualmann.
Committed on 21/11/2019 at 16:58.
Pushed by mqualmann into branch 'master'.

various optimization for image loading

M  +4-5core/libs/dimg/dimg_data.cpp
M  +1-1core/libs/threadimageio/fileio/loadingcache.cpp
M  +1-7core/libs/threadimageio/preview/previewtask.cpp

https://invent.kde.org/kde/digikam/commit/ea529419b90d54ce5bc6052a14ec2c23c5f79b1f

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #256 from timo...@zoho.com ---
Memory usage is pretty high. I have 8G of ram and swap space is still needed
for the scan to complete. It seems to me that the crash occurs more often when
I use the system otherwise at the same time, so it may very well be that it has
something to do with load.

But for a memcpy to fail, both physical ram and swap would have to be fully
exhausted right?

Another data point is that IIRC I reproduced the crash on my laptop too at some
point. The laptop has 16G of RAM.

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-20 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #255 from Maik Qualmann  ---
I think that in this case we still have 2 references to QSharedData. It crashes
in memcpy(). We do not check the memory allocation, whether we have received
it. Timokau, what is the memory usage during face detection?

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

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

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

When i compile with Clang static ananlyzer 8.0 under Mageia 7.1 i can see that:


In file included from
/home/gilles/Documents/7.x/core/libs/dimg/dimg_data.cpp:26:
In file included from /home/gilles/Documents/7.x/core/libs/dimg/dimg_p.h:52:
In file included from /usr/lib64/qt5/include/QtCore/QSharedData:1:
/usr/lib64/qt5/include/QtCore/qshareddata.h:161:41: warning: Use of memory
after it is freed
inline const T *constData() const { return d; }
^~~~
1 warning generated.

These king of report is dropped from complete report published in
digikam.org/reports/ as it's outside of digiKam space, but this can be a way to
explore...

Gilles

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

[digikam] [Bug 399923] Segmentation fault during face detection

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

--- Comment #253 from timo...@zoho.com ---
With 6845671c7e6b60e337fae81b097d14bb32e0b6e8:

> digikam.general: Try to get preview from 
> "/tmp/tmp.oF2HC2AYd3/Pictures/p/android_pics/DCIM/Camera/IMG_20171221_153250.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.oF2HC2AYd3/Pictures/p/android_pics/DCIM/Camera/IMG_20171221_153250.jpg"
>  : "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from 
> "/tmp/tmp.oF2HC2AYd3/Pictures/p/android_pics/DCIM/Camera/IMG_20171221_153251.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.oF2HC2AYd3/Pictures/p/android_pics/DCIM/Camera/IMG_20171221_153251.jpg"
>  : "JPEG" file identified
> digikam.facesengine: Good rect =  QRect(179,146 35x47) , conf =  0.622759
> digikam.general: Found 1 faces in "IMG_20171221_125943.jpg" QSize(3120, 4208) 
> QSize(3120, 4208)
> digikam.general: Removing old entries ()
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from 
> "/tmp/tmp.oF2HC2AYd3/Pictures/p/android_pics/DCIM/Camera/IMG_20171221_153449.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.oF2HC2AYd3/Pictures/p/android_pics/DCIM/Camera/IMG_20171221_153449.jpg"
>  : "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.oF2HC2AYd3/Pictures/p/android_pics/DCIM/Camera/IMG_20171221_153456.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.oF2HC2AYd3/Pictures/p/android_pics/DCIM/Camera/IMG_20171221_153456.jpg"
>  : "JPEG" file identified
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> 
> Thread 46 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff427fc700 (LWP 739)]
> 0x743c3626 in __memmove_sse2_unaligned_erms () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb) bt
> #0  0x743c3626 in __memmove_sse2_unaligned_erms () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> #1  0x7789f323 in memcpy (__len=, __src= out>, __dest=) at 
> /nix/store/bniand9afisrgrsfi7kr093334iv3ibv-glibc-2.27-dev/include/bits/string_fortified.h:34
> #2  Digikam::DImg::detach (this=0x799fd8) at 
> /tmp/tmp.oF2HC2AYd3/digikam/core/libs/dimg/dimg_data.cpp:67
> #3  0x77966787 in Digikam::PreviewLoadingTask::execute 
> (this=0x799df0) at 
> /tmp/tmp.oF2HC2AYd3/digikam/core/libs/threadimageio/preview/previewtask.cpp:380
> #4  0x7797cb1e in Digikam::LoadSaveThread::run (this=0x3100e60) at 
> /tmp/tmp.oF2HC2AYd3/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #5  0x7799d17e in Digikam::DynamicThread::Private::run 
> (this=0x3466ba0) at 
> /tmp/tmp.oF2HC2AYd3/digikam/core/libs/threads/dynamicthread.cpp:183
> #6  0x74b1a7d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #7  0x74b16062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #8  0x744e1ef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #9  0x7441722f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-19 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #252 from Maik Qualmann  ---
Git commit d235ea6eff1cff7a8240fd9ac1a67ce441aae940 by Maik Qualmann.
Committed on 20/11/2019 at 06:44.
Pushed by mqualmann into branch 'master'.

do not receive progress info in postProcess()

M  +3-13   core/libs/threadimageio/fileio/loadsavetask.cpp
M  +1-1core/libs/threadimageio/fileio/loadsavetask.h
M  +1-12   core/libs/threadimageio/preview/previewtask.cpp
M  +2-2core/libs/threadimageio/thumb/thumbnailtask.cpp
M  +2-2core/libs/threadimageio/thumb/thumbnailtask.h

https://invent.kde.org/kde/digikam/commit/d235ea6eff1cff7a8240fd9ac1a67ce441aae940

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-19 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #251 from timo...@zoho.com ---
With fe0020243fa27001b5daf575fb894663fdbe534b:

> digikam.general: Found 0 faces in "IMG_20171125_194502.jpg" QSize(3120, 4208) 
> QSize(3120, 4208)
> digikam.general: Removing old entries ()
> digikam.general: Try to get preview from 
> "/tmp/tmp.LFZ59UShRA/Pictures/p/android_pics/DCIM/Camera/IMG_20171126_004126.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.LFZ59UShRA/Pictures/p/android_pics/DCIM/Camera/IMG_20171126_004126.jpg"
>  : "JPEG" file identified
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.LFZ59UShRA/Pictures/p/android_pics/DCIM/Camera/IMG_20171126_112717.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.LFZ59UShRA/Pictures/p/android_pics/DCIM/Camera/IMG_20171126_112717.jpg"
>  : "JPEG" file identified
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Using  4  CPU core to run threads
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Found 0 faces in "IMG_20171125_194503.jpg" QSize(3120, 4208) 
> QSize(3120, 4208)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "IMG_20171125_211335.jpg" QSize(3120, 4208) 
> QSize(3120, 4208)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "IMG_20171125_211336.jpg" QSize(3120, 4208) 
> QSize(3120, 4208)
> digikam.general: Removing old entries ()
> [New Thread 0x7fff267fc700 (LWP 27668)]
> 
> Thread 786 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff38f54700 (LWP 14401)]
> 0x77988637 in Digikam::LoadingTask::progressInfo (this=0x363d540, 
> img=0x363d728, progress=0.75)
> at 
> /tmp/tmp.LFZ59UShRA/digikam/core/libs/threadimageio/fileio/loadsavetask.cpp:65
> 65  if (m_thread && m_thread->querySendNotifyEvent())
> (gdb) bt
> #0  0x77988637 in Digikam::LoadingTask::progressInfo (this=0x363d540, 
> img=0x363d728, progress=0.75)
> at 
> /tmp/tmp.LFZ59UShRA/digikam/core/libs/threadimageio/fileio/loadsavetask.cpp:65
> #1  0x7fffc28d7a40 in DigikamJPEGDImgPlugin::DImgJPEGLoader::load 
> (this=0x7fff303bb0b0, filePath=..., observer=0x363d550)
> at 
> /tmp/tmp.LFZ59UShRA/digikam/core/dplugins/dimg/jpeg/dimgjpegloader_load.cpp:434
> #2  0x778a0adc in Digikam::DImg::load (this=this@entry=0x363d728, 
> filePath=..., loadFlagsInt=loadFlagsInt@entry=63,
> observer=observer@entry=0x363d550, rawDecodingSettings=...) at 
> /tmp/tmp.LFZ59UShRA/digikam/core/libs/dimg/dimg_fileio.cpp:138
> #3  0x778a1d70 in Digikam::DImg::load (this=this@entry=0x363d728, 
> filePath=..., observer=observer@entry=0x363d550,
> rawDecodingSettings=...) at 
> /tmp/tmp.LFZ59UShRA/digikam/core/libs/dimg/dimg_fileio.cpp:63
> #4  0x7796695c in Digikam::PreviewLoadingTask::execute 
> (this=0x363d540)
> at 
> /tmp/tmp.LFZ59UShRA/digikam/core/libs/threadimageio/preview/previewtask.cpp:286
> #5  0x7797cbce in Digikam::LoadSaveThread::run (this=0x2df45f0)
> at 
> /tmp/tmp.LFZ59UShRA/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #6  0x7799d30e in Digikam::DynamicThread::Private::run 
> (this=0x3247510)
> at /tmp/tmp.LFZ59UShRA/digikam/core/libs/threads/dynamicthread.cpp:183
> #7  0x74b1a7d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #8  0x74b16062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #9  0x744e1ef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #10 0x7441722f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-19 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #250 from Maik Qualmann  ---
Git commit fe0020243fa27001b5daf575fb894663fdbe534b by Maik Qualmann.
Committed on 19/11/2019 at 17:35.
Pushed by mqualmann into branch 'master'.

check only for empty identities for face recognition

M  +5-2core/utilities/facemanagement/widgets/facescandialog.cpp

https://invent.kde.org/kde/digikam/commit/fe0020243fa27001b5daf575fb894663fdbe534b

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-19 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #249 from Maik Qualmann  ---
Yes, my mistake is with an empty face database. You would have to add a face by
name manually. I fix it...

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-19 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #248 from timo...@zoho.com ---
I cannot start face detection with ba2893d27dd4542034f90b56bc4d75f1cb727d42. It
gives me the error:

Face recognition is aborted, because there are no identities to recognize.
Please add new identities.

Even though I've selected face detection, not recognition.

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-18 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #247 from Maik Qualmann  ---
Git commit ba2893d27dd4542034f90b56bc4d75f1cb727d42 by Maik Qualmann.
Committed on 19/11/2019 at 07:10.
Pushed by mqualmann into branch 'master'.

fix wrong DImgLoaderObserver in postProcess()

M  +3-3core/libs/threadimageio/fileio/loadsavetask.cpp
M  +1-1core/libs/threadimageio/fileio/loadsavetask.h
M  +1-1core/libs/threadimageio/preview/previewtask.cpp
M  +2-2core/libs/threadimageio/thumb/thumbnailtask.cpp
M  +2-2core/libs/threadimageio/thumb/thumbnailtask.h

https://invent.kde.org/kde/digikam/commit/ba2893d27dd4542034f90b56bc4d75f1cb727d42

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-18 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #246 from Maik Qualmann  ---
Git commit d7b1ea9ccdd65d9a7d85be0ed035b33f0f7d5d31 by Maik Qualmann.
Committed on 18/11/2019 at 19:49.
Pushed by mqualmann into branch 'master'.

prevent to access a QList simultaneously from multiple threads

M  +10   -3core/libs/threadimageio/fileio/loadsavetask.cpp
M  +11   -3core/libs/threadimageio/preview/previewtask.cpp

https://invent.kde.org/kde/digikam/commit/d7b1ea9ccdd65d9a7d85be0ed035b33f0f7d5d31

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-18 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #245 from timo...@zoho.com ---
With b306f5aa14358dd04167b1d197de1fdc86e37bbc (on the 4th run):

> digikam.general: Try to get preview from 
> "/tmp/tmp.sIBLW3QdU7/Pictures/p/Kamera-Uploads/2014-03-13 20.01.02.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.sIBLW3QdU7/Pictures/p/Kamera-Uploads/2014-03-13 
> 20.01.02.jpg" : "JPEG" file identified
> digikam.general: Using  4  CPU core to run threads
> [New Thread 0x7fff3700 (LWP 16592)]
> digikam.general: Action Thread run  1  new jobs
> [New Thread 0x7fff31ffb700 (LWP 16593)]
> digikam.database: " ( ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)
> ) AND ImageTagProperties.property=?  ) ) "
> digikam.database: Search query:
>  "SELECT DISTINCT Images.id, Images.name, Images.album,
> Albums.albumRoot,ImageInformation.rating, Images.category,
> ImageInformation.format, ImageInformation.creationDate,
> Images.modificationDate, Images.fileSize,ImageInformation.width,  
> ImageInformation.height,ImageTagProperties.value, 
> ImageTagProperties.property, ImageTagProperties.tagid  FROM Images
>   INNER JOIN ImageTagProperties ON ImageTagProperties.imageid=Images.id   
>  LEFT JOIN ImageInformation ON Images.id=ImageInformation.imageid
> INNER JOIN Albums   ON Albums.id=Images.album WHERE Images.status=1 
> AND (  ( ( (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT 
> id FROM TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR ( 
> (ImageTagPropertie
> s.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE 
> pid=?)) AND ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? 
> OR ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) )  );"
>  (QVariant(int, 6), QVariant(int, 6), QVariant(QString, 
> "autodetectedPerson"), QVariant(int, 6), QVariant(int, 6), QVariant(QString, 
> "autodetectedFace"), QVariant(int, 6), QVariant(int, 6), QVariant(QString, 
> "tagRegion"))
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.database: Search result: 3849
> digikam.general: Found 0 faces in "2014-01-07 14.27.05.jpg" QSize(3264, 2448) 
> QSize(3264, 2448)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "2014-02-05 14.26.20.jpg" QSize(3264, 2448) 
> QSize(3264, 2448)
> digikam.general: Removing old entries ()
> digikam.general: Found 0 faces in "2014-02-07 15.43.22.jpg" QSize(3264, 2448) 
> QSize(3264, 2448)
> digikam.general: Removing old entries ()
> 
> Thread 13957 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fffa51ee700 (LWP 20947)]
> 0x in ?? ()
> (gdb) bt
> #0  0x in ?? ()
> #1  0x77966b0f in Digikam::PreviewLoadingTask::execute 
> (this=0x292ea70) at 
> /tmp/tmp.sIBLW3QdU7/digikam/core/libs/threadimageio/preview/previewtask.cpp:405
> #2  0x7797cafe in Digikam::LoadSaveThread::run (this=0x3ac4dd0) at 
> /tmp/tmp.sIBLW3QdU7/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #3  0x7799d1de in Digikam::DynamicThread::Private::run 
> (this=0x26c1940) at 
> /tmp/tmp.sIBLW3QdU7/digikam/core/libs/threads/dynamicthread.cpp:183
> #4  0x74b1b7d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #5  0x74b17062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #6  0x744e2ef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #7  0x7441822f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-16 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #244 from Maik Qualmann  ---
Git commit f037b05d531c90f95d8f41b7f81d837ace6aeb5b by Maik Qualmann.
Committed on 17/11/2019 at 07:25.
Pushed by mqualmann into branch 'master'.

use for a test QExplicitlySharedDataPointer for DImg

M  +2-2core/libs/dimg/dimg.cpp
M  +2-2core/libs/dimg/dimg.h
M  +2-2core/libs/dimg/dimg_copy.cpp
M  +4-4core/libs/dimg/dimg_data.cpp
M  +2-2core/libs/dimg/dimg_p.h

https://invent.kde.org/kde/digikam/commit/f037b05d531c90f95d8f41b7f81d837ace6aeb5b

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-16 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #243 from Maik Qualmann  ---
Yes, I have already thought about that and switched in DImg to
QSharedDataPointer. I can apply the patch as a trial.

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-16 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

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

The problem from this file can be relevant of the long time problem located in
DSharedData container and never fixed.

Look this clang report:

https://www.digikam.org/reports/clang/master/

==> Memory error; Use-after-free;
mnt/devel/GIT/6.x/core/libs/dimg/dshareddata.h; operator
Digikam::DImg::Private; ligne 120

And look well the analysis. Clang crying about this operator :

inline operator T* ()
{
return d; <== Use of memory after it is freed
}

...because the memory is released here :

inline DSharedDataPointer& operator=(T* const o)
{
   delete assign(o);<=== Memory is released 
   return *this;
}

... when this detach function is called :

void DImg::detach()
{
   if (!m_priv->hasMoreReferences())
   {
  return;
   }

   DSharedDataPointer old = m_priv; <=== Calling
'DSharedDataPointer::operator='; Returning; memory was released   
   m_priv = new Private;

   copyImageData(old); <=== Calling 'DSharedDataPointer::operator
Digikam::DImg::Private *'  BOUM 
   copyMetaData(old);

   if (old->data)
   {
   size_t size = allocateData();
   memcpy(m_priv->data, old->data, size);
   }
}

Gilles

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-16 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #241 from Maik Qualmann  ---
Git commit da67056beb32c461251661e90d8f4c73f984ce26 by Maik Qualmann.
Committed on 16/11/2019 at 19:39.
Pushed by mqualmann into branch 'master'.

revert last commit, private DImg data is shared

M  +6-6core/libs/dimg/filters/icc/iccmanager.cpp
M  +1-1core/libs/dimg/filters/icc/iccmanager.h

https://invent.kde.org/kde/digikam/commit/da67056beb32c461251661e90d8f4c73f984ce26

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-16 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #240 from Maik Qualmann  ---
Git commit eb5a4a61fddaded66f07e57e44cd2d98862a1fa9 by Maik Qualmann.
Committed on 16/11/2019 at 19:12.
Pushed by mqualmann into branch 'master'.

fix ICC Manager, must use a DImg reference

M  +9-8core/libs/dimg/filters/icc/iccmanager.cpp
M  +3-5core/libs/threadimageio/fileio/loadsavetask.cpp
M  +5-2core/libs/threadimageio/preview/previewtask.cpp

https://invent.kde.org/kde/digikam/commit/eb5a4a61fddaded66f07e57e44cd2d98862a1fa9

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-16 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #239 from timo...@zoho.com ---
With 2e3d03a2cea443f32d8a23c85393c345e8308e5b:

> digikam.dimg: "/tmp/tmp.7dg66TNVh9/Pictures/p/images/Telegram 
> Images/223024373_562302.jpg" : "JPEG" file identified
> digikam.general: Found 0 faces in "223023849_735468.jpg" QSize(1280, 1258) 
> QSize(1280, 1258)
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.7dg66TNVh9/Pictures/p/images/Telegram Images/223024391_291148.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.7dg66TNVh9/Pictures/p/images/Telegram 
> Images/223024391_291148.jpg" : "JPEG" file identified
> digikam.general: Try to get preview from 
> "/tmp/tmp.7dg66TNVh9/Pictures/p/images/Telegram Images/223024438_254640.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.7dg66TNVh9/Pictures/p/images/Telegram 
> Images/223024438_254640.jpg" : "JPEG" file identified
> digikam.general: Found 0 faces in "223023852_356023.jpg" QSize(1129, 1280) 
> QSize(1129, 1280)
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.7dg66TNVh9/Pictures/p/images/Telegram Images/223024462_270324.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.7dg66TNVh9/Pictures/p/images/Telegram 
> Images/223024462_270324.jpg" : "JPEG" file identified
> 
> Thread 1342 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff41ffb700 (LWP 20326)]
> 0x77968321 in Digikam::PreviewLoadingTask::execute (this=0x8e4f920)
> at 
> /tmp/tmp.7dg66TNVh9/digikam/core/libs/threadimageio/preview/previewtask.cpp:404
> 404 postProcess();
> (gdb) bt
> #0  0x77968321 in Digikam::PreviewLoadingTask::execute 
> (this=0x8e4f920) at 
> /tmp/tmp.7dg66TNVh9/digikam/core/libs/threadimageio/preview/previewtask.cpp:404
> #1  0x7797e2ee in Digikam::LoadSaveThread::run (this=0x2577e60) at 
> /tmp/tmp.7dg66TNVh9/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #2  0x7799e94e in Digikam::DynamicThread::Private::run 
> (this=0x2f6f240) at 
> /tmp/tmp.7dg66TNVh9/digikam/core/libs/threads/dynamicthread.cpp:183
> #3  0x74b1f7d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #4  0x74b1b062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #5  0x744e6ef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #6  0x7441c22f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-15 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #238 from Maik Qualmann  ---
Git commit 6aaa6622d706972bf8a532c0a92ea721b11c7fa0 by Maik Qualmann.
Committed on 15/11/2019 at 21:41.
Pushed by mqualmann into branch 'master'.

do not add this task to the listeners here

M  +3-3core/libs/threadimageio/preview/previewtask.cpp

https://invent.kde.org/kde/digikam/commit/6aaa6622d706972bf8a532c0a92ea721b11c7fa0

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-15 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #237 from timo...@zoho.com ---
With 47e8d093858421c1b95ea17acb396067ffccc8eb:

> digikam.general: Found 0 faces in "IMG_20150502_140220.jpg" QSize(3120, 4208) 
> QSize(3120, 4208)
> digikam.general: Removing old entries ()
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Cancel Main Thread
> digikam.general: One job is done
> QPainter::begin: Paint device returned engine == 0, type: 2
> QPainter::setCompositionMode: Painter not active
> QPainter::end: Painter not active, aborted
> QPainter::begin: Paint device returned engine == 0, type: 2
> QPainter::setCompositionMode: Painter not active
> QPainter::end: Painter not active, aborted
> digikam.general: Cancel Main Thread
> QPainter::begin: Paint device returned engine == 0, type: 2
> QPainter::setCompositionMode: Painter not active
> QPainter::end: Painter not active, aborted
> QPainter::begin: Paint device returned engine == 0, type: 2
> QPainter::setCompositionMode: Painter not active
> QPainter::end: Painter not active, aborted
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> [Thread 0x7fff20ff9700 (LWP 26871) exited]
> [Thread 0x7fff237fe700 (LWP 26872) exited]
> 
> Thread 32 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff3f7fe700 (LWP 25750)]
> Digikam::MetaEngineData::MetaEngineData (this=0x7fff3f7fcda8, other=...)
> at 
> /tmp/tmp.dCPXcFOXaA/digikam/core/libs/metadataengine/engine/metaengine_data.cpp:43
> 43  d = other.d;
> (gdb) bt
> #0  Digikam::MetaEngineData::MetaEngineData (this=0x7fff3f7fcda8, other=...)
> at 
> /tmp/tmp.dCPXcFOXaA/digikam/core/libs/metadataengine/engine/metaengine_data.cpp:43
> #1  0x778a99e0 in Digikam::DImg::getMetadata (this=)
> at /tmp/tmp.dCPXcFOXaA/digikam/core/libs/dimg/dimg_props.cpp:167
> #2  0x77769d81 in Digikam::DImgLoader::checkExifWorkingColorSpace 
> (this=this@entry=0x7fff2c099670)
> at /tmp/tmp.dCPXcFOXaA/digikam/core/libs/dimg/loaders/dimgloader.cpp:242
> #3  0x7fffb209e486 in DigikamJPEGDImgPlugin::DImgJPEGLoader::load 
> (this=0x7fff2c099670, filePath=..., observer=0x3eed580)
> at 
> /tmp/tmp.dCPXcFOXaA/digikam/core/dplugins/dimg/jpeg/dimgjpegloader_load.cpp:601
> #4  0x778a3a8c in Digikam::DImg::load (this=this@entry=0x3eed758, 
> filePath=..., loadFlagsInt=loadFlagsInt@entry=63,
> observer=observer@entry=0x3eed580, rawDecodingSettings=...) at 
> /tmp/tmp.dCPXcFOXaA/digikam/core/libs/dimg/dimg_fileio.cpp:138
> #5  0x778a4d20 in Digikam::DImg::load (this=this@entry=0x3eed758, 
> filePath=..., observer=observer@entry=0x3eed580,
> rawDecodingSettings=...) at 
> /tmp/tmp.dCPXcFOXaA/digikam/core/libs/dimg/dimg_fileio.cpp:63
> #6  0x779690f0 in Digikam::PreviewLoadingTask::execute 
> (this=0x3eed570)
> at 
> /tmp/tmp.dCPXcFOXaA/digikam/core/libs/threadimageio/preview/previewtask.cpp:286
> #7  0x7797f31e in Digikam::LoadSaveThread::run (this=0x37280f0)
> at 
> /tmp/tmp.dCPXcFOXaA/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #8  0x7799f97e in Digikam::DynamicThread::Private::run 
> (this=0x263d1a0)
> at /tmp/tmp.dCPXcFOXaA/digikam/core/libs/threads/dynamicthread.cpp:183
> #9  0x74b217d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #10 0x74b1d062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #11 0x744e8ef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #12 0x7441e22f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-14 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #236 from Maik Qualmann  ---
Git commit cab5995cacb2bfd97b304c2338b00e2ae176fdff by Maik Qualmann.
Committed on 14/11/2019 at 20:48.
Pushed by mqualmann into branch 'master'.

do not add this task to the listeners in the postprocess

M  +2-2core/libs/threadimageio/fileio/loadsavetask.cpp

https://invent.kde.org/kde/digikam/commit/cab5995cacb2bfd97b304c2338b00e2ae176fdff

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-14 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #235 from timo...@zoho.com ---
With 35339b4dbf2253dd1f60d3a374203d8717b05d86 (including Gilles' fix):

> digikam.dimg: "/tmp/tmp.0Tdwmd06eD/Pictures/p/Kamera-Uploads/2014-03-19 
> 13.07.31.jpg" : "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from 
> "/tmp/tmp.0Tdwmd06eD/Pictures/p/Kamera-Uploads/2014-03-19 13.07.34.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.0Tdwmd06eD/Pictures/p/Kamera-Uploads/2014-03-19 
> 13.07.34.jpg" : "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from 
> "/tmp/tmp.0Tdwmd06eD/Pictures/p/Kamera-Uploads/2014-03-21 12.16.50.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.0Tdwmd06eD/Pictures/p/Kamera-Uploads/2014-03-21 
> 12.16.50.jpg" : "JPEG" file identified
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Found 0 faces in "2014-03-04 06.04.54.png" QSize(720, 1280) 
> QSize(720, 1280)
> digikam.general: Removing old entries ()
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.0Tdwmd06eD/Pictures/p/Kamera-Uploads/2014-03-22 13.33.55.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: "/tmp/tmp.0Tdwmd06eD/Pictures/p/Kamera-Uploads/2014-03-22 
> 13.33.55.jpg" : "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Found 0 faces in "2014-03-04 06.05.02.png" QSize(720, 1280) 
> QSize(720, 1280)
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Found 0 faces in "2014-03-04 08.34.23.png" QSize(720, 1280) 
> QSize(720, 1280)
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.facesengine: Good rect =  QRect(96,102 96x121) , conf =  0.999628
> digikam.general: Found 1 faces in "2014-03-04 09.35.03.jpg" QSize(1392, 1392) 
> QSize(1392, 1392)
> digikam.general: Removing old entries ()
> 
> Thread 24 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff5fffd700 (LWP 6656)]
> 0x7798ad87 in Digikam::LoadingTask::progressInfo (this=0x364dc60, 
> img=0x364de48, progress=1)
> at 
> /tmp/tmp.0Tdwmd06eD/digikam/core/libs/threadimageio/fileio/loadsavetask.cpp:65
> 65  if (m_thread && m_thread->querySendNotifyEvent())
> (gdb) bt
> #0  0x7798ad87 in Digikam::LoadingTask::progressInfo (this=0x364dc60, 
> img=0x364de48, progress=1) at 
> /tmp/tmp.0Tdwmd06eD/digikam/core/libs/threadimageio/fileio/loadsavetask.cpp:65
> #1  0x7fffb209e417 in DigikamJPEGDImgPlugin::DImgJPEGLoader::load 
> (this=0x7fff40383700, filePath=..., observer=0x364dc70) at 
> /tmp/tmp.0Tdwmd06eD/digikam/core/dplugins/dimg/jpeg/dimgjpegloader_load.cpp:621
> #2  0x778a3a8c in Digikam::DImg::load (this=this@entry=0x364de48, 
> filePath=..., loadFlagsInt=loadFlagsInt@entry=63, 
> observer=observer@entry=0x364dc70, rawDecodingSettings=...)
> at /tmp/tmp.0Tdwmd06eD/digikam/core/libs/dimg/dimg_fileio.cpp:138
> #3  0x778a4d20 in Digikam::DImg::load (this=this@entry=0x364de48, 
> filePath=..., observer=observer@entry=0x364dc70, rawDecodingSettings=...)
> at /tmp/tmp.0Tdwmd06eD/digikam/core/libs/dimg/dimg_fileio.cpp:63
> #4  0x779690f0 in Digikam::PreviewLoadingTask::execute 
> (this=0x364dc60) at 
> /tmp/tmp.0Tdwmd06eD/digikam/core/libs/threadimageio/preview/previewtask.cpp:286
> #5  0x7797f31e in Digikam::LoadSaveThread::run (this=0x287c7e0) at 
> /tmp/tmp.0Tdwmd06eD/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #6  0x7799f9fe in Digikam::DynamicThread::Private::run 
> (this=0x2c9ff30) at 
> /tmp/tmp.0Tdwmd06eD/digikam/core/libs/threads/dynamicthread.cpp:183
> #7  0x74b227d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #8  0x74b1e062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #9  0x744e9ef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #10 0x7441f22f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

This time it crashed during the first attempt, though it got quite far.

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-14 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #234 from caulier.gil...@gmail.com ---
I commit this fix too :

https://invent.kde.org/kde/digikam/commit/ce0cac88500e3bcfc7219baa805dabb6d91688b1

WorkerObject class in used especially in face management pipeline for face
detection and recognition process...

Gilles

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-14 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #233 from Maik Qualmann  ---
Ok, I think we are on the right way, because several attempts are needed to
reproduce a crash. Also this crash we have rarely seen here in this long
thread. I already have an idea...

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-14 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #232 from timo...@zoho.com ---
This time (de875df40545d59cf038a0134c92377aed8d6187) two full scans succeeded.
The third one crashed:

> digikam.general: Try to get preview from 
> "/tmp/tmp.pp4d0tIJXq/Pictures/p/Android/Camera/IMG_20140924_125327.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.pp4d0tIJXq/Pictures/p/Android/Camera/IMG_20140924_125327.jpg" : 
> "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from 
> "/tmp/tmp.pp4d0tIJXq/Pictures/p/Android/Camera/IMG_20141006_17.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.pp4d0tIJXq/Pictures/p/Android/Camera/IMG_20141006_17.jpg" : 
> "JPEG" file identified
> digikam.general: Using  4  CPU core to run threads
> [New Thread 0x7fff3700 (LWP 19696)]
> digikam.general: Cancel Main Thread
> digikam.general: Action Thread run  1  new jobs
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> [New Thread 0x7fff13fff700 (LWP 19697)]
> [Thread 0x7fff2b7fe700 (LWP 19669) exited]
> digikam.database: " ( ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)
> ) AND ImageTagProperties.property=?  ) ) "
> digikam.database: Search query:
>  "SELECT DISTINCT Images.id, Images.name, Images.album,
> Albums.albumRoot,ImageInformation.rating, Images.category,
> ImageInformation.format, ImageInformation.creationDate,
> Images.modificationDate, Images.fileSize,ImageInformation.width,  
> ImageInformation.height,ImageTagProperties.value, 
> ImageTagProperties.property, ImageTagProperties.tagid  FROM Images
>   INNER JOIN ImageTagProperties ON ImageTagProperties.imageid=Images.id   
>  LEFT JOIN ImageInformation ON Images.id=ImageInformation.imageid
> INNER JOIN Albums   ON Albums.id=Images.album WHERE Images.status=1 
> AND (  ( ( (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT 
> id FROM TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR ( 
> (ImageTagPropertie
> s.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE 
> pid=?)) AND ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? 
> OR ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) )  );"
>  (QVariant(int, 6), QVariant(int, 6), QVariant(QString, 
> "autodetectedPerson"), QVariant(int, 6), QVariant(int, 6), QVariant(QString, 
> "autodetectedFace"), QVariant(int, 6), QVariant(int, 6), QVariant(QString, 
> "tagRegion"))
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.database: Search result: 3849
> digikam.general: Found 0 faces in "IMG_20140910_121849.jpg" QSize(2448, 3264) 
> QSize(2448, 3264)
> digikam.general: Removing old entries ()
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.pp4d0tIJXq/Pictures/p/Android/Camera/IMG_20141011_001014.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.pp4d0tIJXq/Pictures/p/Android/Camera/IMG_20141011_001014.jpg" : 
> "JPEG" file identified
> digikam.general: Cancel Main Thread
> [Thread 0x7fff3700 (LWP 19696) exited]
> digikam.general: One job is done
> digikam.general: Using  4  CPU core to run threads
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> [New Thread 0x7fff3700 (LWP 19704)]
> 
> Thread 14741 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff3f7fe700 (LWP 12948)]
> 0x779693e2 in Digikam::PreviewLoadingTask::execute (this=0x3044550)
> at 
> /tmp/tmp.pp4d0tIJXq/digikam/core/libs/threadimageio/preview/previewtask.cpp:404
> 404 postProcess();
> (gdb) bt
> #0  0x779693e2 in Digikam::PreviewLoadingTask::execute 
> (this=0x3044550)
> at 
> /tmp/tmp.pp4d0tIJXq/digikam/core/libs/threadimageio/preview/previewtask.cpp:404
> #1  0x7797f3be in Digikam::LoadSaveThread::run (this=0x2fd17d0)
> at 
> /tmp/tmp.pp4d0tIJXq/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #2  0x7799fa9e in Digikam::DynamicThread::Private::run 
> (this=0x4ddada0)
> at 

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-13 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #231 from Maik Qualmann  ---
Git commit de875df40545d59cf038a0134c92377aed8d6187 by Maik Qualmann.
Committed on 13/11/2019 at 19:37.
Pushed by mqualmann into branch 'master'.

move static functions to DImg for more possible thread safe

M  +11   -5core/libs/dimg/dimg.h
M  +24   -0core/libs/dimg/dimg_fileio.cpp
M  +110  -6core/libs/dimg/dimg_metadata.cpp
M  +1-1core/libs/dimg/dimg_p.h
M  +1-157  core/libs/dimg/loaders/dimgloader.cpp
M  +0-4core/libs/dimg/loaders/dimgloader.h

https://invent.kde.org/kde/digikam/commit/de875df40545d59cf038a0134c92377aed8d6187

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-13 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #230 from timo...@zoho.com ---
The scan came very close to finishing, then this (with
816d4e61b9cf9ddbaa41381c99e67e0c60ecae75, which came after your latest fix):

> digikam.general: Found 1 faces in "IMG_20171228_134932_1.jpg" QSize(1944, 
> 2592) QSize(1944, 2592)
> digikam.general: Try to get preview from 
> "/tmp/tmp.2P4nPAFBno/Pictures/p/images/new-pics/DCIM/Camera/IMG_20171228_162912.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.2P4nPAFBno/Pictures/p/images/new-pics/DCIM/Camera/IMG_20171228_162912.jpg"
>  : "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from 
> "/tmp/tmp.2P4nPAFBno/Pictures/p/images/new-pics/DCIM/Camera/IMG_20171228_162921.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.2P4nPAFBno/Pictures/p/images/new-pics/DCIM/Camera/IMG_20171228_162921.jpg"
>  : "JPEG" file identified
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.facesengine: Good rect =  QRect(164,93 63x88) , conf =  0.999894
> digikam.general: Found 1 faces in "IMG_20171228_134933.jpg" QSize(1944, 2592) 
> QSize(1944, 2592)
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Using  4  CPU core to run threads
> [New Thread 0x7fff257fa700 (LWP 25987)]
> digikam.general: Action Thread run  1  new jobs
> [New Thread 0x7fff26ffd700 (LWP 25988)]
> digikam.database: " ( ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? OR 
> ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=
> ?)) AND ImageTagProperties.property=?  ) ) "
> digikam.database: Search query:
>  "SELECT DISTINCT Images.id, Images.name, Images.album,
> Albums.albumRoot,ImageInformation.rating, Images.category,
> ImageInformation.format, ImageInformation.creationDate,
> Images.modificationDate, Images.fileSize,ImageInformation.width,  
> ImageInformation.height,ImageTagProperties.value, 
> ImageTagProperties.property, ImageTagProperties.tagid  FROM Images
> INNER JOIN ImageTagProperties ON ImageTagProperties.imageid=Images.id 
>LEFT JOIN ImageInformation ON Images.id=ImageInformation.imageid   
>  INNER JOIN Albums   ON Albums.id=Images.album WHERE Images.status=1 
> AND (  ( ( (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT 
> id FROM TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR ( 
> (ImageTagPrope
> rties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE 
> pid=?)) AND ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? 
> OR ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND 
> ImageTagProperties.property=?  ) )  );"
>  (QVariant(int, 6), QVariant(int, 6), QVariant(QString, 
> "autodetectedPerson"), QVariant(int, 6), QVariant(int, 6), QVariant(QString, 
> "autodetectedFace"), QVariant(int, 6), QVariant(int, 6), QVariant(QString, 
> "tagRegion"))
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.2P4nPAFBno/Pictures/p/images/new-pics/DCIM/Camera/IMG_20171228_162932.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.2P4nPAFBno/Pictures/p/images/new-pics/DCIM/Camera/IMG_20171228_162932.jpg"
>  : "JPEG" file identified
> digikam.general: Try to get preview from 
> "/tmp/tmp.2P4nPAFBno/Pictures/p/images/new-pics/DCIM/Camera/IMG_20171228_163036.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.2P4nPAFBno/Pictures/p/images/new-pics/DCIM/Camera/IMG_20171228_163036.jpg"
>  : "JPEG" file identified
> digikam.database: Search result: 3677
> digikam.general: Cancel Main Thread
> digikam.general: One job is done
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Found 0 faces in "IMG_20171228_135010.jpg" QSize(3120, 4208) 
> QSize(3120, 4208)
> digikam.general: Cancel Main Thread
> digikam.general: Found 0 faces in "IMG_20171228_135012.jpg" QSize(3120, 4208) 
> QSize(3120, 4208)
> [Thread 0x7fff257fa700 (LWP 25987) exited]
> [Thread 0x7fff26ffd700 (LWP 25988) exited]
> 
> Thread 31 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff5effb700 (LWP 17967)]
> 0x778ac43b in std::__atomic_base::load 
> (__m=std::memory_order_relaxed, this=)
> at 
> /nix/store/wr5dlcw1asw8dwgm4bwjmga8f52m5lfx-gcc-7.4.0/include/c++/7.4.0/bits/atomic_base.h:396
> 396 return 

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-12 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #229 from caulier.gil...@gmail.com ---
Note : i don't yet tested your last commit
#66346eddf9faafc0d8a16c603385e4b450a96968

Test was processed with this one : #c3476af439fa8351eee23f4477aaed8b2c00f56c

Gilles

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-12 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #228 from caulier.gil...@gmail.com ---
With the mutex, it crash after a long time to detect faces (completed at 80%):


digikam.dimg: "/mnt/data/photos/TESTS/JPEG/Horizontal/cicada.jpg" : "JPEG" file
identified
digikam.general: Using  8  CPU core to run threads
digikam.general: Using  8  CPU core to run threads
digikam.general: Action Thread run  1  new jobs
digikam.general: Action Thread run  1  new jobs
digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC
profile.
digikam.general: One job is done
digikam.general: Cancel Main Thread
digikam.general: One job is done
digikam.general: Cancel Main Thread
digikam.general: Try to get preview from
"/mnt/data/photos/TESTS/JPEG/Horizontal/DSC00626.JPG"
digikam.general: Preview quality:  1
digikam.dimg: "/mnt/data/photos/TESTS/JPEG/Horizontal/DSC00626.JPG" : "JPEG"
file identified
digikam.metaengine: Exiv2 ( 2 ) :  Directory SonyMinolta, entry 0x0088: Data
area exceeds data buffer, ignoring it.

digikam.general: Found 0 faces in "CANON-IXUS850.JPG" QSize(3072, 2304)
QSize(3072, 2304)
digikam.general: Removing old entries ()
digikam.general: Check for finish:  42 packages, 0 infos to filter,
hasFinished() false
digikam.general: Found 0 faces in "CANON-POWERSHOTA70-01.JPG" QSize(2048, 1536)
QSize(2048, 1536)
digikam.general: Removing old entries ()
digikam.general: Check for finish:  41 packages, 0 infos to filter,
hasFinished() false
digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC
profile.
digikam.general: Try to get preview from
"/mnt/data/photos/TESTS/JPEG/Horizontal/DSCF2180.JPG"
digikam.general: Preview quality:  1
digikam.dimg: "/mnt/data/photos/TESTS/JPEG/Horizontal/DSCF2180.JPG" : "JPEG"
file identified
digikam.general: Found 0 faces in "CANON-POWERSHOTA70-02.JPG" QSize(2048, 1536)
QSize(2048, 1536)
digikam.general: Removing old entries ()
digikam.general: Check for finish:  40 packages, 0 infos to filter,
hasFinished() false
digikam.facesengine: Good rect =  QRect(222,213 41x43) , conf =  0.684318
digikam.general: Found 1 faces in "car.jpg" QSize(1600, 1200) QSize(1600, 1200)
digikam.general: Removing old entries (FaceTagsIface(1, image 33634, tag 3,
regionQRect(1184,939 219x229))
digikam.general: Check for finish:  39 packages, 0 infos to filter,
hasFinished() false
digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC
profile.
digikam.general: Try to get preview from
"/mnt/data/photos/TESTS/JPEG/Horizontal/DSCF2260.JPG"
digikam.general: Preview quality:  1
digikam.dimg: "/mnt/data/photos/TESTS/JPEG/Horizontal/DSCF2260.JPG" : "JPEG"
file identified
digikam.general: Found 0 faces in "cicada.jpg" QSize(1280, 960) QSize(1280,
960)
digikam.general: Removing old entries ()
digikam.general: Check for finish:  38 packages, 0 infos to filter,
hasFinished() false
digikam.general: Using  8  CPU core to run threads
digikam.general: Action Thread run  1  new jobs
digikam.database: " ( ( (ImageTagProperties.tagid=? OR ImageTagProperties.tagid
IN (SELECT id FROM TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  )
OR ( (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM
TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR (
(ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM
TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) ) "
digikam.database: Search query:
 "SELECT DISTINCT Images.id, Images.name, Images.album,   
Albums.albumRoot,ImageInformation.rating, Images.category,   
ImageInformation.format, ImageInformation.creationDate,   
Images.modificationDate, Images.fileSize,ImageInformation.width, 
ImageInformation.height,ImageTagProperties.value,
ImageTagProperties.property, ImageTagProperties.tagid  FROM ImagesINNER
JOIN ImageTagProperties ON ImageTagProperties.imageid=Images.idLEFT
JOIN ImageInformation ON Images.id=ImageInformation.imageidINNER JOIN
Albums   ON Albums.id=Images.album WHERE Images.status=1 AND (  ( (
(ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM
TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR (
(ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM
TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR (
(ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM
TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) )  );" 
 (QVariant(int, 3), QVariant(int, 3), QVariant(QString, "autodetectedPerson"),
QVariant(int, 3), QVariant(int, 3), QVariant(QString, "autodetectedFace"),
QVariant(int, 3), QVariant(int, 3), QVariant(QString, "tagRegion"))
digikam.general: Found 0 faces in "DSC00626.JPG" QSize(3872, 2592) QSize(3872,
2592)
digikam.database: Search result: 8466
digikam.general: Removing old entries ()
digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC
profile.
digikam.general: 

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-12 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #227 from Maik Qualmann  ---
Git commit 66346eddf9faafc0d8a16c603385e4b450a96968 by Maik Qualmann.
Committed on 12/11/2019 at 21:46.
Pushed by mqualmann into branch 'master'.

first step to move static function to DImg
next step move static uniqueHash() functions

M  +2-3core/dplugins/bqm/decorate/watermark/watermark.cpp
M  +1-2core/dplugins/bqm/transform/rotate/rotate.cpp
M  +22   -1core/libs/dimg/dimg.h
M  +10   -0core/libs/dimg/dimg_metadata.cpp
M  +1-0core/libs/dimg/dimg_p.h
M  +25   -0core/libs/dimg/dimg_transform.cpp
M  +0-56   core/libs/threadimageio/fileio/loadsavethread.cpp
M  +0-16   core/libs/threadimageio/fileio/loadsavethread.h
M  +3-5core/libs/threadimageio/preview/previewtask.cpp
M  +2-4core/utilities/imageeditor/core/editorcore.cpp

https://invent.kde.org/kde/digikam/commit/66346eddf9faafc0d8a16c603385e4b450a96968

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-12 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #226 from Maik Qualmann  ---
We'll wait and see what the QMutex changes. We have access to the
InfoProvider() in the static exifOrientation() function. This can not be easily
moved to DImg.

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-12 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #225 from Maik Qualmann  ---
Okay, then the best way to move these functions to the DImg class.

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-12 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #224 from caulier.gil...@gmail.com ---
Inter thread static function uses are definitively the hell. Protect with a
mutex, or make this function not static, included in DImg class for ex.

My crash is difficult to capture. Even is a core dumped file is generated, as
said the system, i cannot found it. systemd report to core dumped file to list.
This is nothing stored digiKam run path. So perhaps something is missing on
system configuration...

Gilles

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-12 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #223 from Maik Qualmann  ---
Git commit c3476af439fa8351eee23f4477aaed8b2c00f56c by Maik Qualmann.
Committed on 12/11/2019 at 17:51.
Pushed by mqualmann into branch 'master'.

protect ExifRotate with a QMutex

M  +2-0core/libs/threadimageio/preview/previewtask.cpp

https://invent.kde.org/kde/digikam/commit/c3476af439fa8351eee23f4477aaed8b2c00f56c

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-12 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #222 from Maik Qualmann  ---
This crash is one of many here in the thread. It crashes in a static function
to the Exif rotation, writing the DImg attribute into the QMap. The DImg is
alone at this moment and not shared with another thread. Problem could be the
static function if another thread should go through the function at the same
time. As I said modern compilers should prevent it.

Gilles, a bugtrace from your crash would be interesting now. you probably need
many images that are not yet rotated, like the WhatsApp images by Timokau. But
then there is still the strange crash in the overridden function.

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-12 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #221 from caulier.gil...@gmail.com ---
Timokau,

I tested DNN face detection while this week end on my huge collection. It crash
also few time, and after restart it complete the job.

I investigate to found the bug on my computer, but i'm not sure that it's the
same, as i cannot get a backtrace under GDB. Your trace is instructive... Maik,
did you already seen a similar trace before...

Gilles

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-12 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #220 from timo...@zoho.com ---
That is definitely a lot faster! The scan finished once with a specificity of
1%. Then I set it back to 80% and it crashed as follows:

> digikam.general: Cancel Main Thread
> [Thread 0x7fff237fe700 (LWP 9711) exited]
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140814-WA.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140814-WA.jpg" : 
> "JPEG" file identified
> digikam.general: Found 0 faces in "IMG-20140801-WA0006.jpg" QSize(960, 1280) 
> QSize(960, 1280)
> digikam.general: Try to get preview from 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140815-WA.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140815-WA.jpg" : 
> "JPEG" file identified
> digikam.general: Try to get preview from 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140815-WA0001.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140815-WA0001.jpg" : 
> "JPEG" file identified
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140819-WA.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140819-WA.jpg" : 
> "JPEG" file identified
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Found 0 faces in "IMG-20140801-WA0007.jpg" QSize(960, 1280) 
> QSize(960, 1280)
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140819-WA0001.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140819-WA0001.jpg" : 
> "JPEG" file identified
> digikam.general: Found 0 faces in "IMG-20140801-WA0008.jpg" QSize(960, 1280) 
> QSize(960, 1280)
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140820-WA.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140820-WA.jpg" : 
> "JPEG" file identified
> digikam.general: Found 0 faces in "IMG-20140801-WA0009.jpg" QSize(960, 1280) 
> QSize(960, 1280)
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140820-WA0001.jpg"
> digikam.general: Preview quality:  1
> digikam.dimg: 
> "/tmp/tmp.r5KKLL1qk4/Pictures/p/Android/Whatsapp/IMG-20140820-WA0001.jpg" : 
> "JPEG" file identified
> 
> Thread 12847 "Thread (pooled)" received signal SIGBUS, Bus error.
> [Switching to Thread 0x7fff32ffd700 (LWP 7077)]
> QMapData::createNode (left=false, parent=0x0, v=..., 
> k=..., this=0x7fff2400ecd0)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:228
> 228 new (>key) Key(k);
> (gdb) bt
> #0  QMapData::createNode (left=false, parent=0x0, v=..., 
> k=..., this=0x7fff2400ecd0)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:228
> #1  QMapNode::copy (this=0x696769724f656d69, 
> d=d@entry=0x7fff2400ecd0)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:258
> #2  0x7788a9d8 in QMap::detach_helper 
> (this=0x2e9df08)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:1008
> #3  0x778ac04d in QMap::detach (this= out>)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:364
> #4  QMap::insert (avalue=..., akey=..., this= out>)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:706
> #5  

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-11 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #219 from caulier.gil...@gmail.com ---
Git commit 85af2a46ebcd7b19ec3b6809c85f587dbbd14f2e by Gilles Caulier.
Committed on 11/11/2019 at 14:11.
Pushed by cgilles into branch 'master'.

Face Detection Neural Network optimizations:
Switch from Yolo to SSD model for DNN face detection, as SSD model are
lightweight compared to Yolo model and provide very good results.
This commit prevent to install 250Mb of binaray data on the system coming from
Yolo inference engine.

M  +8-7core/data/facesengine/CMakeLists.txt
M  +1-1core/libs/facesengine/detection/facedetector.cpp

https://invent.kde.org/kde/digikam/commit/85af2a46ebcd7b19ec3b6809c85f587dbbd14f2e

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-04 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #218 from timo...@zoho.com ---
Unfortunately turning down the accuracy doesn't impact the runtime very
significantly. With 2% instead  of 100% it still didn't get very far (to 12%
scanned) in ~6h. It didn't crash either though, so maybe the crash is fixed.

I agree that the results are impressive though. For a final scan the runtime
may be tolerable, since it only needs to be done once.

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

[digikam] [Bug 399923] Segmentation fault during face detection

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

--- Comment #216 from caulier.gil...@gmail.com ---
Timokau,

The long time to scan for face detection is reproducible here and is not a
dysfunction.

In fact it's just a setting to adjust (the level of detection). Currently, the
value is too low and here after 4 h of one core processing, it detects a huge
list of faces, with a minimal false positive. This DNN algorithm rock really.

So i propose to change the sensitivity values in Advanced Options view.

Gilles Caulier

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

[digikam] [Bug 399923] Segmentation fault during face detection

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

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

about crash, i recommend to check new cppcheck reports around threadimageio,
dimg, and faceengine.

https://www.digikam.org/reports/cppcheck/master/

Look well the virtual calls in constructor warnings.
The copy constructor and equality operator warnings can be just disable
definitions in classes to add, but it's not sure.

I'm sure that errors are located in these reports and must be fixed. the new
cppcheck reports better warnings and the list grow a lots compared to previous
version (2y old).

Gilles

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-11-01 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #215 from timo...@zoho.com ---
On a902eddf0d84b1561e7c7ee75164e58fdeaf8672 face detection takes unreasonably
long again, I assume because the new face recognition branch was merged in. I
left it running for some 10 hours and got to 25%, and it didn't crash in that
time at least. I can't really leave it running much longer than that for a test
in a single run, since I want to be able to use the computer and digikam takes
up a lot of resources.

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-10-31 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #214 from Maik Qualmann  ---
Git commit a902eddf0d84b1561e7c7ee75164e58fdeaf8672 by Maik Qualmann.
Committed on 31/10/2019 at 10:51.
Pushed by mqualmann into branch 'master'.

use DImg as pointer in static functions

M  +2-2core/dplugins/bqm/decorate/watermark/watermark.cpp
M  +1-1core/dplugins/bqm/transform/rotate/rotate.cpp
M  +3-3core/libs/dimg/dimg_metadata.cpp
M  +54   -54   core/libs/dimg/loaders/dimgloader.cpp
M  +2-2core/libs/dimg/loaders/dimgloader.h
M  +1-1core/libs/facesengine/detection/dnn/dnnfacedetectorbase.cpp
M  +35   -19   core/libs/threadimageio/fileio/loadsavethread.cpp
M  +4-4core/libs/threadimageio/fileio/loadsavethread.h
M  +3-3core/libs/threadimageio/preview/previewtask.cpp
M  +1-1core/utilities/imageeditor/core/editorcore.cpp

https://invent.kde.org/kde/digikam/commit/a902eddf0d84b1561e7c7ee75164e58fdeaf8672

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

[digikam] [Bug 399923] Segmentation fault during face detection

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

--- Comment #213 from timo...@zoho.com ---
With 707891ca729fa69c1cbcad6c133f0c5585773747:

> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from "some_image.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "some_image.JPG" : "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from "some_image.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "some_image.JPG" : "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Try to get preview from "some_image.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "some_image.JPG" : "JPEG" file identified
> digikam.facesengine: detectMultiScale gave ()
> digikam.general: Found 0 faces in "some_image.JPG" QSize(1152, 1728) 
> QSize(1152, 1728)
> digikam.general: Removing old entries ()
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.general: Cancel Main Thread
> [Thread 0x7fff209b3700 (LWP 10573) exited]
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from "some_image.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "some_image.JPG" : "JPEG" file identified
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from "some_image.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "some_image.JPG" : "JPEG" file identified
> digikam.facesengine: detectMultiScale: image size ( 533 , 800 ) 
> searchIncrement 1.1 grouping 3 flags 1 min size ( 26 , 26 )
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> 
> Thread 67 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff237fe700 (LWP 19814)]
> 0x778ce30e in 
> QSharedDataPointer::operator= (o=..., 
> this=0x40e7190)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qshareddata.h:99
> 99  if (old && !old->ref.deref())
> (gdb) bt
> #0  0x778ce30e in 
> QSharedDataPointer::operator= (o=..., 
> this=0x40e7190) at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qshareddata.h:99
> #1  Digikam::MetaEngineData::operator= (this=0x40e7190, other=...) at 
> /tmp/tmp.inM9rwW9gU/digikam/core/libs/metadataengine/engine/metaengine_data.cpp:52
> #2  0x778a5a1c in Digikam::DImg::setMetadata 
> (this=this@entry=0x304b8e8, data=...) at 
> /tmp/tmp.inM9rwW9gU/digikam/core/libs/dimg/dimg_props.cpp:172
> #3  0x7775bf73 in Digikam::DImgLoader::readMetadata (this=0x4dee7c0, 
> filePath=...) at 
> /tmp/tmp.inM9rwW9gU/digikam/core/libs/dimg/loaders/dimgloader.cpp:224
> #4  0x7fffb236843c in DigikamJPEGDImgPlugin::DImgJPEGLoader::load 
> (this=0x4dee7c0, filePath=..., observer=0x304b710) at 
> /tmp/tmp.inM9rwW9gU/digikam/core/dplugins/dimg/jpeg/dimgjpegloader_load.cpp:56
> #5  0x778a080c in Digikam::DImg::load (this=this@entry=0x304b8e8, 
> filePath=..., loadFlagsInt=loadFlagsInt@entry=63, 
> observer=observer@entry=0x304b710, rawDecodingSettings=...) at 
> /tmp/tmp.inM9rwW9gU/digikam/core/libs/dimg/dimg_fileio.cpp:138
> #6  0x778a1aa0 in Digikam::DImg::load (this=this@entry=0x304b8e8, 
> filePath=..., observer=observer@entry=0x304b710, rawDecodingSettings=...) at 
> /tmp/tmp.inM9rwW9gU/digikam/core/libs/dimg/dimg_fileio.cpp:63
> #7  0x77964d7a in Digikam::PreviewLoadingTask::execute 
> (this=0x304b700) at 
> /tmp/tmp.inM9rwW9gU/digikam/core/libs/threadimageio/preview/previewtask.cpp:286
> #8  0x7797b00e in Digikam::LoadSaveThread::run (this=0x7fffd8009b50) 
> at 
> /tmp/tmp.inM9rwW9gU/digikam/core/libs/threadimageio/fileio/loadsavethread.cpp:133
> #9  0x7799b99e in Digikam::DynamicThread::Private::run 
> (this=0x31128a0) at 
> /tmp/tmp.inM9rwW9gU/digikam/core/libs/threads/dynamicthread.cpp:183
> #10 0x74a337d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #11 0x74a2f062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #12 0x743faef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #13 0x7433022f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

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

[digikam] [Bug 399923] Segmentation fault during face detection

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

--- Comment #212 from caulier.gil...@gmail.com ---
Git commit 707891ca729fa69c1cbcad6c133f0c5585773747 by Gilles Caulier.
Committed on 30/10/2019 at 09:56.
Pushed by cgilles into branch 'master'.

Cppcheck is right here : we have 2 declarations of "send" shadow outter
function. With recent compiler, this must be fine, but with older?

M  +14   -14   core/utilities/facemanagement/scanstatefilter.cpp
M  +2-2core/utilities/facemanagement/scanstatefilter.h

https://invent.kde.org/kde/digikam/commit/707891ca729fa69c1cbcad6c133f0c5585773747

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

[digikam] [Bug 399923] Segmentation fault during face detection

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

--- Comment #211 from caulier.gil...@gmail.com ---
Git commit dbcaeafec2ef2627dbf61095b94d7385ec9107f3 by Gilles Caulier.
Committed on 30/10/2019 at 09:47.
Pushed by cgilles into branch 'master'.

Cppcheck is right here : we have 2 decalration of i shadow variables. With
recent compiler, this must be fine, but with older?

M  +11   -7core/utilities/facemanagement/faceutils.cpp
M  +9-7core/utilities/facemanagement/faceutils.h

https://invent.kde.org/kde/digikam/commit/dbcaeafec2ef2627dbf61095b94d7385ec9107f3

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

[digikam] [Bug 399923] Segmentation fault during face detection

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

--- Comment #210 from caulier.gil...@gmail.com ---
Git commit a3614106b068d39ed820af7bc06f3036e8799d60 by Gilles Caulier.
Committed on 30/10/2019 at 09:20.
Pushed by cgilles into branch 'master'.

fix out of bound index reported by cppcheck

M  +5-2core/libs/facesengine/facedb/facedb.cpp

https://invent.kde.org/kde/digikam/commit/a3614106b068d39ed820af7bc06f3036e8799d60

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

[digikam] [Bug 399923] Segmentation fault during face detection

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

--- Comment #209 from timo...@zoho.com ---
My reproduction script is as follows:

https://gist.github.com/timokau/a50d1033bce78f56804406bb8585b607

The first couple of lines are to set up an clean environment in a tmpdir for
the build. The `nix-shell` line creates a shell with all the dependencies
needed for the build. The actual compilation is very standard, I juts pass the
prefix and the build type. `wrapQtApp` sets up the appropriate env vars so that
digikam can find QT (unfortunately QT and nixos is a bit of an annoying
combination).

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-10-30 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #208 from Maik Qualmann  ---
Ok, here is the crash that should never occur, we are in the wrong overriden
function. The crash in the static function is already strange. Although static
functions with threads are considered critical, no problems should arise with
modern compilers. Here I will try one more experiment with DImg as a pointer.
How do you compile digiKam? Do you use additional compiler options?

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-10-29 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #207 from timo...@zoho.com ---
One full scan actually went through, but on the second try:

> digikam.general: Found 2 faces in "2012-08-31 18.24.29.jpg" QSize(640, 480) 
> QSize(640, 480)
> digikam.general: Removing old entries (FaceTagsIface(1, image 5429, tag 281, 
> regionQRect(509,142 48x48), FaceTagsIface(1, image 5429,
>  tag 281, regionQRect(300,22 60x60))
> digikam.facesengine: detectMultiScale: image size ( 480 , 640 ) 
> searchIncrement 1.1 grouping 3 flags 1 min size ( 22 , 22 )
> digikam.facesengine: detectMultiScale gave (QRect(138,268 178x178))
> digikam.facesengine: Verifying face QRect(138,268 178x178) using cascade 0
> digikam.facesengine: detectMultiScale: image size ( 258 , 258 ) 
> searchIncrement 1.1 grouping 3 flags 0 min size ( 107 , 107 )
> digikam.facesengine: detectMultiScale gave (QRect(26,33 196x196))
> digikam.facesengine: Verifying face QRect(138,268 178x178) using cascade 1
> digikam.facesengine: detectMultiScale: image size ( 258 , 258 ) 
> searchIncrement 1.1 grouping 3 flags 0 min size ( 107 , 107 )
> digikam.facesengine: detectMultiScale gave (QRect(26,37 196x196))
> digikam.facesengine: Verifying face QRect(138,268 178x178) using cascade 2
> digikam.facesengine: Verifying face QRect(138,268 178x178) using cascade 3
> digikam.facesengine: detectMultiScale: image size ( 258 , 258 ) 
> searchIncrement 1.1 grouping 3 flags 0 min size ( 107 , 107 )
> digikam.facesengine: detectMultiScale gave ()
> digikam.facesengine: Verifying face QRect(138,268 178x178) using cascade 4
> digikam.facesengine: detectMultiScale: image size ( 258 , 258 ) 
> searchIncrement 1.1 grouping 3 flags 0 min size ( 107 , 107 )
> digikam.facesengine: detectMultiScale gave ()
> digikam.facesengine: Verifying face QRect(138,268 178x178) using cascade 5
> digikam.facesengine: feature QRectF(0,0 0.6x0.6) QRect(138,268 178x178) 
> QRect(138,268 107x107)
> digikam.facesengine: detectMultiScale: image size ( 107 , 107 ) 
> searchIncrement 1.1 grouping 2 flags 0 min size ( 18 , 18 )
> digikam.facesengine: detectMultiScale gave (QRect(26,51 59x39), QRect(4,60 
> 39x26))
> digikam.facesengine: Verifying face QRect(138,268 178x178) using cascade 6
> digikam.facesengine: feature QRectF(0.4,0 0.6x0.6) QRect(138,268 178x178) 
> QRect(209,268 107x107)
> digikam.facesengine: detectMultiScale: image size ( 107 , 107 ) 
> searchIncrement 1.1 grouping 2 flags 0 min size ( 18 , 18 )
> digikam.facesengine: detectMultiScale gave (QRect(26,58 40x27))
> digikam.facesengine: Verifying face QRect(138,268 178x178) using cascade 7
> digikam.facesengine: feature QRectF(0.2,0.25 0.6x0.6) QRect(138,268 178x178) 
> QRect(174,313 107x107)
> digikam.facesengine: detectMultiScale: image size ( 107 , 107 ) 
> searchIncrement 1.1 grouping 2 flags 0 min size ( 18 , 18 )
> digikam.facesengine: detectMultiScale gave (QRect(33,46 51x42))
> digikam.facesengine: Verifying face QRect(138,268 178x178) using cascade 8
> digikam.facesengine: feature QRectF(0.1,0.4 0.8x0.6) QRect(138,268 178x178) 
> QRect(156,339 142x107)
> digikam.facesengine: detectMultiScale: image size ( 142 , 107 ) 
> searchIncrement 1.1 grouping 2 flags 0 min size ( 18 , 18 )
> digikam.facesengine: detectMultiScale gave (QRect(30,19 33x20), QRect(50,36 
> 51x30), QRect(31,62 67x40))
> digikam.general: Found 1 faces in "2012-09-01 19.43.55.jpg" QSize(480, 640) 
> QSize(480, 640)
> digikam.facesengine: detectMultiScale: image size ( 480 , 640 ) 
> searchIncrement 1.1 grouping 3 flags 1 min size ( 22 , 22 )
> digikam.general: Removing old entries (FaceTagsIface(1, image 5430, tag 281, 
> regionQRect(138,268 178x178))
> digikam.facesengine: detectMultiScale gave ()
> digikam.general: Found 0 faces in "2012-09-01 21.24.15.jpg" QSize(480, 640) 
> QSize(480, 640)
> digikam.general: Removing old entries ()
> digikam.facesengine: detectMultiScale: image size ( 640 , 480 ) 
> searchIncrement 1.1 grouping 3 flags 1 min size ( 22 , 22 )
> digikam.facesengine: detectMultiScale gave ()
> digikam.general: Found 0 faces in "2012-09-02 19.48.21.jpg" QSize(640, 480) 
> QSize(640, 480)
> digikam.general: Removing old entries ()
> digikam.facesengine: detectMultiScale: image size ( 480 , 640 ) 
> searchIncrement 1.1 grouping 3 flags 1 min size ( 22 , 22 )
> 
> Thread 1107 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff4cffa700 (LWP 14912)]
> 0x in ?? ()
> (gdb) bt
> #0  0x in ?? ()
> #1  0x77987ffd in Digikam::LoadingTask::progressInfo (this=0x3397410, 
> img=, progress=0.20003)
> at 
> /tmp/tmp.tagPkiKadL/digikam/core/libs/threadimageio/fileio/loadsavetask.cpp:65
> #2  0x7fffb2369a40 in DigikamJPEGDImgPlugin::DImgJPEGLoader::load 
> (this=0x7fff240a6f50, filePath=..., observer=0x3397420)
> at 
> /tmp/tmp.tagPkiKadL/digikam/core/dplugins/dimg/jpeg/dimgjpegloader_load.cpp:434
> #3  0x778a18bc in Digikam::DImg::load 

[digikam] [Bug 399923] Segmentation fault during face detection

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

--- Comment #206 from Maik Qualmann  ---
Git commit 6a77ab5528a85bdf1bb0d5f30bb70f928d99c7b7 by Maik Qualmann.
Committed on 28/10/2019 at 17:32.
Pushed by mqualmann into branch 'master'.

move these two static functions for a test in PreviewLoadingTask

M  +26   -2core/libs/threadimageio/preview/previewtask.cpp
M  +3-0core/libs/threadimageio/preview/previewtask.h

https://invent.kde.org/kde/digikam/commit/6a77ab5528a85bdf1bb0d5f30bb70f928d99c7b7

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-10-28 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #205 from timo...@zoho.com ---
Okay, setting that environment variable appropriately fixed that issue. So
here's the latest crash (with 27f663c1155498c03c174ce93d7c94e69d77489a):


> digikam.facesengine: detectMultiScale: image size ( 52 , 52 ) searchIncrement 
> 1.1 grouping 2 flags 0 min size ( 9 , 9 )
> digikam.facesengine: detectMultiScale gave ()
> digikam.facesengine: Verifying face QRect(262,470 86x86) using cascade 7
> digikam.facesengine: feature QRectF(0.2,0.25 0.6x0.6) QRect(262,470 86x86) 
> QRect(279,492 52x52)
> digikam.facesengine: detectMultiScale: image size ( 52 , 52 ) searchIncrement 
> 1.1 grouping 2 flags 0 min size ( 9 , 9 )
> digikam.facesengine: detectMultiScale gave ()
> digikam.facesengine: Verifying face QRect(262,470 86x86) using cascade 8
> digikam.facesengine: feature QRectF(0.1,0.4 0.8x0.6) QRect(262,470 86x86) 
> QRect(271,504 69x52)
> digikam.facesengine: detectMultiScale: image size ( 69 , 52 ) searchIncrement 
> 1.1 grouping 2 flags 0 min size ( 9 , 9 )
> digikam.facesengine: detectMultiScale gave ()
> digikam.general: Found 0 faces in "some_file_.JPG" QSize(3264, 2448) 
> QSize(3264, 2448)
> digikam.general: Removing old entries ()
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.facesengine: detectMultiScale: image size ( 800 , 600 ) 
> searchIncrement 1.1 grouping 3 flags 1 min size ( 26 , 26 )
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from "some_file_.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "some_file_.JPG" : "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> digikam.facesengine: detectMultiScale gave ()
> digikam.general: Found 0 faces in "some_file_.JPG" QSize(3264, 2448) 
> QSize(3264, 2448)
> digikam.general: Removing old entries ()
> digikam.facesengine: detectMultiScale: image size ( 800 , 600 ) 
> searchIncrement 1.1 grouping 3 flags 1 min size ( 26 , 26 )
> digikam.general: Check for finish:  51 packages, 0 infos to filter, 
> hasFinished() false
> digikam.general: Try to get preview from "some_file_.JPG"
> digikam.general: Preview quality:  1
> digikam.dimg: "some_file_.JPG" : "JPEG" file identified
> digikam.metaengine: Exif color-space tag is sRGB. Using default sRGB ICC 
> profile.
> 
> Thread 3275 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff38ff9700 (LWP 17945)]
> QMapNode::copy (this=0x73b807b8  Exiv2::Exifdatum+16>, d=d@entry=0x7ffef04259d0)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:258
> 258 QMapNode *n = d->createNode(key, value);
> (gdb) bt
> #0  QMapNode::copy (this=0x73b807b8  Exiv2::Exifdatum+16>, d=d@entry=0x7ffef04259d0)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:258
> #1  0x77887758 in QMap::detach_helper 
> (this=0x341f0b8)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:1008
> #2  0x778a8ead in QMap::detach (this= out>)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:364
> #3  QMap::insert (avalue=..., akey=..., this= out>)
> at 
> /nix/store/hy0z060pmjwrdrbb0qrii7hnwif8cz1y-qtbase-5.12.0-dev/include/QtCore/qmap.h:706
> #4  Digikam::DImg::setAttribute (this=, key=..., value=...)
> at some_file_:207
> #5  0x7797c1c2 in Digikam::LoadSaveThread::exifRotate (image=..., 
> filePath=...)
> at some_file_:336
> #6  0x77965e4c in Digikam::PreviewLoadingTask::execute 
> (this=0x2702bf0)
> at some_file_:296
> #7  0x7797bbbe in Digikam::LoadSaveThread::run (this=0x7fffd80123e0)
> at some_file_:133
> #8  0x7799c54e in Digikam::DynamicThread::Private::run 
> (this=0x1aaef60)
> at some_file_:183
> #9  0x74a357d2 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #10 0x74a31062 in ?? () from 
> /nix/store/683732s7dq6bxrl267lcadl5lvn6i4nh-qtbase-5.12.0/lib/libQt5Core.so.5
> #11 0x743fcef7 in start_thread () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libpthread.so.0
> #12 0x7433222f in clone () from 
> /nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib/libc.so.6
> (gdb)

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-10-24 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #204 from Maik Qualmann  ---
OK, JPEG is an unknown format. Now the log would be good from the beginning.
With digiKam-6.4.0, the image loaders will now also be plugins. These plugins
are probably not found in your installation. The search is done in the Qt
system plugin path. But there is the possibility to set an env variable to the
plugin path.

export DK_PLUGIN_PATH=path_to_plugin_dir

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-10-24 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #203 from timo...@zoho.com ---
I doesn't look very helpful to me, but here's the full log of the scan
(completed in 7 seconds): http://sprunge.us/fVfY1j

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-10-24 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #202 from Maik Qualmann  ---
In principle, it should be a clean startup configuration. It is difficult to
say why the images are not processed. Maybe it helps to post the console log.

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-10-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #201 from timo...@zoho.com ---
I set $HOME to a tmpdir for each test to avoid carrying over configuration and
I deleted all databases in the picture dir. Is there anything else that could
cause this?

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-10-21 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #200 from Maik Qualmann  ---
Presumably it's because you tested the developer branch with the new DNN face
recognition. Check the facial recognition settings and use a new
recognition.db.

Maik

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-10-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #199 from timo...@zoho.com ---
With 27f663c1155498c03c174ce93d7c94e69d77489a the scan finishes in just a few
seconds, seemingly doing nothing.

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-10-19 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #198 from Maik Qualmann  ---
Git commit 27f663c1155498c03c174ce93d7c94e69d77489a by Maik Qualmann.
Committed on 19/10/2019 at 16:28.
Pushed by mqualmann into branch 'master'.

review loading tasks
Related: bug 406019

M  +42   -37   core/libs/threadimageio/fileio/loadsavetask.cpp
M  +49   -46   core/libs/threadimageio/preview/previewtask.cpp
M  +1-1core/libs/threadimageio/thumb/thumbnailcreator_engine.cpp
M  +41   -40   core/libs/threadimageio/thumb/thumbnailtask.cpp

https://invent.kde.org/kde/digikam/commit/27f663c1155498c03c174ce93d7c94e69d77489a

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-09-26 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=399923

--- Comment #197 from timo...@zoho.com ---
Sorry for the delay. The test is still running.

One thing I can say for sure is that with
04179402304ee8d9d813d5761dabf3ea8c769048 the performance has degraded a lot. It
takes up to 10G of ram at times (4G on average) and after over 10h of running
I'm now at 17%. Is that to be expected?

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

[digikam] [Bug 399923] Segmentation fault during face detection

2019-09-15 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=399923

Maik Qualmann  changed:

   What|Removed |Added

 CC||gen...@moin.fi

--- Comment #196 from Maik Qualmann  ---
*** Bug 379470 has been marked as a duplicate of this bug. ***

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

  1   2   3   >