Bug 424805 - Digikam crashes when opening preview of items from a specific album
Summary: Digikam crashes when opening preview of items from a specific album
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-JPEG (show other bugs)
Version: 7.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-29 17:34 UTC by Mathieu P
Modified: 2021-01-25 21:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0


Attachments
corrupted jpg file leading to digikam crash although explorer can open it (3.64 MB, image/jpeg)
2020-07-29 19:10 UTC, Mathieu P
Details
attachment-20400-0.html (1.25 KB, text/html)
2021-01-25 09:06 UTC, Mathieu P
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu P 2020-07-29 17:34:38 UTC
SUMMARY
Digikam crashes when trying to open preview of pics in a specific album.

STEPS TO REPRODUCE
1. Open digikam
2. Open the album
3. Double click on one item/thumbnail in this alum to open preview

OBSERVED RESULT
Loading circle appears and max 5 seconds after, digikam crashes/closes

EXPECTED RESULT
Normal behaviour, that is to say, preview does open.

SOFTWARE/OS VERSIONS
Windows: 10
macOS: NA
Linux/KDE Plasma: NA
(available in About System)
KDE Plasma Version: NA
KDE Frameworks Version: NA
Qt Version: NA

ADDITIONAL INFORMATION
It seems that issue first occurred after I performed some face tagging/Gps tagging
Comment 1 Maik Qualmann 2020-07-29 17:44:47 UTC
Try removing the images from the album and adding them step by step to determine that the image is causing the crash. Without a test image or backtrace or an output from DebugView, we cannot reproduce anything.

Maik
Comment 2 Mathieu P 2020-07-29 19:10:02 UTC
Created attachment 130493 [details]
corrupted jpg file leading to digikam crash although explorer can open it

Many thanks for such a prompt help!
Indeed I have actioned as suggested and we able to identify specific files within these albums that cause the issue.
I can be more precise, Digikam crash as sson as I open preview for a file which is the corrupted file itself or the one before in the album.
I attach an example of such file, just in case you would have aither any suggestion to correct such files or make digikam do not crash. The files does open with explorer. They were corrupted during a transfer from a SD card and of course since most of them have pics of my kids, I don't want to trash them.

Mathieu
Comment 3 Maik Qualmann 2020-07-29 19:42:47 UTC
It doesn't always crash on Windows. The defective image can often be loaded until the image error occurs. There could be a problem with the Error-JMP function on Windows. There are no problems with Linux.

Maik
Comment 4 Maik Qualmann 2020-07-29 20:06:38 UTC
Git commit fe8302690f0b61163f4878ed63852c4caf768474 by Maik Qualmann.
Committed on 29/07/2020 at 20:03.
Pushed by mqualmann into branch 'master'.

test whether MSVC supported bulletin setjmp/longjmp

M  +1    -1    core/dplugins/dimg/jpeg/dimgjpegloader.cpp
M  +1    -1    core/dplugins/dimg/jpeg/dimgjpegloader_load.cpp

https://invent.kde.org/graphics/digikam/commit/fe8302690f0b61163f4878ed63852c4caf768474
Comment 5 Mathieu P 2021-01-25 09:06:13 UTC
Created attachment 135153 [details]
attachment-20400-0.html

Hi Team,

Looking forward to the new 7.2 version that will enhance face recognition :)
I didn't see this bug included in the 7.2 scope. Any idea, in which version
it will be included ?
If you need me to test anything or provide further information, happy to do.

Mathieu

On Sun, Aug 9, 2020 at 8:12 AM <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=424805
>
> caulier.gilles@gmail.com changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>           Component|Preview-Image               |Plugin-FilesIO-JPEG
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 6 Maik Qualmann 2021-01-25 12:49:16 UTC
No crash with digiKam-7.2.0-RC for Windows can be reproduced with the sample image. The image is loaded and displayed until the image error occurs. I think we can close this bug.

Maik