Bug 465044 - deleting folders crashes the app
Summary: deleting folders crashes the app
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Engine (show other bugs)
Version: 7.9.0
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-30 15:18 UTC by Thijs
Modified: 2023-01-31 07:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.10.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thijs 2023-01-30 15:18:23 UTC
SUMMARY
delete a folder, crashes digikam


STEPS TO REPRODUCE
1.  delete any folder

OBSERVED RESULT
crash

EXPECTED RESULT
deleted folder
Comment 1 Maik Qualmann 2023-01-30 17:33:05 UTC
Without a GDB backtrace we can't help. How this is created is described here:

https://www.digikam.org/contribute/

Maik
Comment 2 Maik Qualmann 2023-01-30 17:34:23 UTC
Note that they are using a digiKam version with a broken OpenCV version.

Maik
Comment 3 Thijs 2023-01-30 18:54:42 UTC
I think this is the part from gdb that shows what goes wrong.
I'm still looking for the code block button in here, I tried some things like `this` and ```this```
   or this

digikam.general: Using  16  CPU core to run threads
[New Thread 0x7ffee3fff6c0 (LWP 119909)]
digikam.general: Action Thread run  1  new jobs
[New Thread 0x7fff04ff96c0 (LWP 119910)]
digikam.iojob: Deleting:    "/mnt/pakhuis/digiKam/Hans/001/"
digikam.iojob: File exists? true
digikam.iojob: Is to trash? false
digikam.iojob: Thread Finished
digikam.general: One job is done
[Thread 0x7ffee3fff6c0 (LWP 119909) exited]
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_01_001.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "1990007002.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "1990006002.jpg"
digikam.general: Cancel Main Thread
[Thread 0x7fff04ff96c0 (LWP 119910) exited]
digikam.database: No itemShortInfo could be retrieved from the database for image "1990005002.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "1990003002.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "1990002002.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "1990001002.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_15_001.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_13_001.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_12_001.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_11_001.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_10_001.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_09_001.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_08_001 (2).jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_07_001.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_06_001.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_05_001.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_04_001.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_03_001.jpg"
digikam.database: No itemShortInfo could be retrieved from the database for image "19910805_02_001.jpg"
digikam.general: Using  16  CPU core to run threads
[New Thread 0x7fff04ff96c0 (LWP 119911)]
digikam.general: Action Thread run  1  new jobs
[New Thread 0x7ffee3fff6c0 (LWP 119912)]
digikam.general: Data From DBJobsThread is null:  true
digikam.general: Cancel Main Thread
[Thread 0x7fff04ff96c0 (LWP 119911) exited]
digikam.general: One job is done
digikam.general: Cancel Main Thread
[Thread 0x7ffee3fff6c0 (LWP 119912) exited]
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: Using  16  CPU core to run threads
[New Thread 0x7ffee3fff6c0 (LWP 119913)]
digikam.general: Action Thread run  1  new jobs
[New Thread 0x7fff04ff96c0 (LWP 119914)]
digikam.general: Data From DBJobsThread is null:  true
digikam.general: Cancel Main Thread
digikam.general: One job is done
[Thread 0x7ffee3fff6c0 (LWP 119913) exited]
digikam.general: Cancel Main Thread
[Thread 0x7fff04ff96c0 (LWP 119914) exited]
digikam.geoiface: ----
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: Using  16  CPU core to run threads
[New Thread 0x7fff04ff96c0 (LWP 119917)]
digikam.general: Action Thread run  1  new jobs
[New Thread 0x7ffee3fff6c0 (LWP 119918)]
digikam.iojob: Deleting:    "/mnt/pakhuis/digiKam/Hans/"
digikam.iojob: File exists? true
digikam.iojob: Is to trash? false
digikam.iojob: Thread Finished
digikam.general: One job is done
[Thread 0x7fff04ff96c0 (LWP 119917) exited]
digikam.general: Cancel Main Thread
[Thread 0x7ffee3fff6c0 (LWP 119918) exited]
digikam.geoiface: ----
digikam.geoiface: ----
digikam.general: Using  16  CPU core to run threads
[New Thread 0x7ffee3fff6c0 (LWP 119919)]
digikam.general: Action Thread run  1  new jobs
[New Thread 0x7fff04ff96c0 (LWP 119920)]
digikam.geoiface: ----
digikam.general: Cancel Main Thread
digikam.general: One job is done
[Thread 0x7ffee3fff6c0 (LWP 119919) exited]
digikam.general: Cancel Main Thread
[Thread 0x7fff04ff96c0 (LWP 119920) exited]
digikam.metaengine: Loading metadata with "Exiv2" backend from "/mnt/pakhuis/digiKam/Mobiel/2010/2010-11-05/album-14526282-downloads/IMG_0498.jpg"
digikam.general: Trying to get thumbnail from "/mnt/pakhuis/digiKam/Mobiel/2010/2010-11-05/album-14526282-downloads/IMG_0498.jpg" ( "image" )
digikam.general: Trying to get thumbnail with Exiv2 for "/mnt/pakhuis/digiKam/Mobiel/2010/2010-11-05/album-14526282-downloads/IMG_0498.jpg"
[Switching to Thread 0x7ffee2ffd6c0 (LWP 119883)]

Thread 69 "Thread (pooled)" hit Catchpoint 1 (exception thrown), 0x00007ffff5459f61 in __cxxabiv1::__cxa_throw (obj=0x7ffed4176200, tinfo=0x7ffff75291f0 <typeinfo for LibRaw_exceptions>, dest=0x0) at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_throw.cc:81
81	/usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_throw.cc: Directory not empty.
Comment 4 Maik Qualmann 2023-01-30 19:09:51 UTC
The cause is Bug 464567 this problem in the raw plugin of the KImageFormats plugins. It seems we still have to backport it for digiKam-7.10.0 as well. It explains all your other crashes when importing.

Maik
Comment 5 Thijs 2023-01-30 19:13:00 UTC
(In reply to Maik Qualmann from comment #4)
> The cause is Bug 464567 this problem in the raw plugin of the KImageFormats
> plugins. It seems we still have to backport it for digiKam-7.10.0 as well.
> It explains all your other crashes when importing.
> 
> Maik

ok, I'll try to build the next version from Git source. I tried to build 7.10 from the AUR but it failed

*** This bug has been marked as a duplicate of bug 464567 ***
Comment 6 Maik Qualmann 2023-01-31 07:11:54 UTC
Git commit 8e1ee87830b5265da0894b5467fbfdf39812201c by Maik Qualmann.
Committed on 31/01/2023 at 07:10.
Pushed by mqualmann into branch 'qt5-maintenance'.

backport fix to prevent crash in KImageFormats RAW plugin
Related: bug 465046
FIXED-IN: 7.10.0

M  +3    -1    NEWS
M  +6    -0    core/libs/metadataengine/engine/metaengine_exif.cpp
M  +14   -4    core/libs/metadataengine/engine/metaengine_item.cpp
M  +1    -1    core/libs/metadataengine/engine/metaengine_previews.cpp

https://invent.kde.org/graphics/digikam/commit/8e1ee87830b5265da0894b5467fbfdf39812201c