Bug 440127 - Program crashes using SEARCH or KEYWORD tabs - JPEG 2000 images relevant
Summary: Program crashes using SEARCH or KEYWORD tabs - JPEG 2000 images relevant
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-JP2K (show other bugs)
Version: 7.3.0
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-21 21:32 UTC by copperlanding
Modified: 2021-07-24 10:53 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.4.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description copperlanding 2021-07-21 21:32:57 UTC
SUMMARY
I tagged + 5.000 pictures. In the middle of the process the program crashed. Since then I am unable to use the mentioned tabs or the program crashes.

What I tried to solve the issue:
- reinstalling the software
- deleting the mentioned tag which caused the first crash
- using older backups of the databases

Nothing helps, I don't understand why even the backups cause crashes even though the software worked properly at the time I copied the backups.

STEPS TO REPRODUCE
1. None I would know


OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
macOS: BigSur 11.4
 

ADDITIONAL INFORMATION
Any idea how to make it fun again? I have invested weeks setting up the database for +25.000 pictures...
Comment 1 copperlanding 2021-07-21 21:37:53 UTC
In addition I used EXTRAS - MAINTANACE - the database repair function with no success.
Comment 2 caulier.gilles 2021-07-22 01:36:21 UTC
Perhaps somethig is your settings files is weird.

Try this:

1/ backup all application settings located in <home_dir>//Library/Preferences/digikam* (lead file is digikamrc)
2/ restart digiKam. The first run-assistant will back. Setup the collection with the database.
3/ try the search function.
4/ If it do not work, restore backup.

Q: Which kind of database did you use ?

Gilles Caulier
Comment 3 caulier.gilles 2021-07-22 01:37:55 UTC
Other point of investigation : run digiKam from a terminal following instruction here :

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

... and report the console trace in this file.

Gilles Caulier
Comment 4 copperlanding 2021-07-22 04:21:10 UTC
Good Morning Caulier, 
thanks for the quick reply!
1) I use "sql light database"
2) I am not an expert (sorry) and could not find the application database. I would know how to find it in Windows but do not find the file in macOS.
3) The console text is:

Last login: Wed Jul 21 21:59:19 on console

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
pc20:~ myname$ /Applications/digiKam.org/digikam.app/Contents/MacOS/digikam
dbus[21059]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
QtAV 1.13.0(Jul 13 2021, 10:37:34)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai, China Copyright (C) 2012-2019 Wang Bin (aka. Lucas Wang) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
kf.xmlgui: Unhandled container to remove :  Digikam::DigikamApp

4) Can you please review as well my post
Comment 5 copperlanding 2021-07-22 04:24:35 UTC
The console text AFTER the crash is:

Last login: Wed Jul 21 21:59:19 on console

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
pc20:~ myname$ /Applications/digiKam.org/digikam.app/Contents/MacOS/digikam
dbus[21059]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
QtAV 1.13.0(Jul 13 2021, 10:37:34)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai, China Copyright (C) 2012-2019 Wang Bin (aka. Lucas Wang) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
kf.xmlgui: Unhandled container to remove :  Digikam::DigikamApp
ICC Profile CS 52474220
Assertion failed: (0), function jas_cmshapmatlut_invert, file /opt/digikam.org.x86_64/var/macports/build/_opt_digikam.org.x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-2.0.14/src/libjasper/base/jas_cm.c, line 959.
Abort trap: 6
pc20:~ myname$
Comment 6 caulier.gilles 2021-07-22 05:15:46 UTC
Ok, it's clear. It crash while parsing a JPEG 2000 file with libjasper codec. 

It appear to be a problem with an embed ICC profile in image.

Can you find this JPEG 2000 image in your collection ?
Comment 7 Maik Qualmann 2021-07-22 08:58:22 UTC
The lib-jasper 2.0.14 is really very old. The first version that fixed the major bugs recently was 2.0.19, the current version is 2.0.32. But I think we have no influence on the version used in MacOS?

Maik
Comment 8 caulier.gilles 2021-07-22 09:23:47 UTC
Yes, jasper que s installed with macports. This want mean to report an issue to macports bugzilla. 
But we can install a un recent version especially for digikam
Comment 9 copperlanding 2021-07-22 11:34:17 UTC
Guys, you are awesome. I found two .jp2 files, converted them in jpg and all works well again. What makes me wonder is that the files had been always in my collection and everything worked fine. However I guess that digiKam displayed  them first time on my screen. My next contribution is on it's way...
Comment 10 caulier.gilles 2021-07-23 03:11:37 UTC
Confirmed : libjasper under MAcports is not the last one : https://ports.macports.org/port/jasper/
Comment 11 caulier.gilles 2021-07-23 03:23:45 UTC
UPSTREAM bugs from MAcports project : https://trac.macports.org/ticket/63284#ticket
Comment 12 caulier.gilles 2021-07-24 10:53:17 UTC
UPSTREAM bug fixed...

https://trac.macports.org/ticket/63284#comment:4

Gilles Caulier