Bug 453078

Summary: Can't access images: need to setup right access to disk with MacOS config panel.
Product: [Applications] digikam Reporter: yves.pratter
Component: Bundle-MacOSAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: critical CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 7.7.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screen copy with file access
This image is accessible and displayed
« Terminal » requests permission to control « Finder »
Full disk access
Files and folders
Full disk access

Description yves.pratter 2022-04-27 06:30:56 UTC
Created attachment 148402 [details]
Screen copy with file access

SUMMARY
Digikam can't refresh folder, can't display thumbnails nor images.

File permissions are -rwx r-x- r-x (I'am the owner) and files are accessible from File manager.



OBSERVED RESULT
It display "Failed to load image" in Preview.


EXPECTED RESULT


SOFTWARE/OS VERSIONS
macOS: Monterey 12.3.1 (21E258)
Qt Version: 5.15.3 (built against 5.15.3)
KDEFrameworks: 5.92.0

ADDITIONAL INFORMATION
Most images are stored on an external disk, but same issue with the internal disk.

Issue with digikam update or macOS update ???
Comment 1 Maik Qualmann 2022-04-27 06:39:11 UTC
Please start digiKam in a terminal. Set the Qt debug variable beforehand and then post the output from the terminal when trying to open an image. Here is a description for MacOS too:

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

Maik
Comment 2 Maik Qualmann 2022-05-02 11:55:02 UTC
Any progress or news? To help we need the log from the terminal.

Maik
Comment 3 yves.pratter 2022-05-09 16:44:47 UTC
Thank you for your advices and your time :)

I started Digikam from Terminal with QT_LOGGING_RULES enabled.

The app crashed. See last lines :

…
imgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Adding new item "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_161810.jpg" (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/database/item/scanner/itemscanner_database.cpp:202, void Digikam::ItemScanner::prepareAddImage(int))
cathaysia.digikam.flowview(Debug): DateTime (Exif digitalized): QDateTime(2022-04-26 16:18:10.000 CEST Qt::LocalTime) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/metadataengine/engine/metaengine_item.cpp:1099, QDateTime Digikam::MetaEngine::getDigitizationDateTime(bool) const)
cathaysia.digikam.flowview(Debug): DateTime (digitization date): QDateTime(2022-04-26 16:18:10.000 CEST Qt::LocalTime) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/metadataengine/engine/metaengine_item.cpp:1206, QDateTime Digikam::MetaEngine::getDigitizationDateTime(bool) const)
cathaysia.digikam.flowview(Debug): Scanning took 48 ms (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/database/item/scanner/itemscanner_database.cpp:37, void Digikam::ItemScanner::commit())
cathaysia.digikam.flowview(Debug): Finishing took 5 ms (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/database/item/scanner/itemscanner.cpp:60, Digikam::ItemScanner::~ItemScanner())
cathaysia.digikam.flowview(Debug): Loading metadata with "Exiv2" backend from "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_161824.jpg" (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/metadataengine/dmetadata/dmetadata_fileio.cpp:110, bool Digikam::DMetadata::load(const QString &, Digikam::MetaEngine::Backend *))
digikam(99018,0x700003b89000) malloc: Heap corruption detected, free list is damaged at 0x600000204270
*** Incorrect guard value: 264489008841327
digikam(99018,0x700003b89000) malloc: *** set a breakpoint in malloc_error_break to debug
Abort trap: 6

Run DigiKam another time:

…
athaysia.digikam.flowview(Debug): "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_165039.jpg" : "JPEG" file identified (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/dimg/dimg_fileio.cpp:126, bool Digikam::DImg::load(const QString &, int, Digikam::DImgLoaderObserver *const, const Digikam::DRawDecoding &))
cathaysia.digikam.flowview(Debug): Start of Image  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Miscellaneous marker 0xe1, length 11245  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Quantization Table 0  precision 0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Quantization Table 1  precision 0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Start Of Frame 0xc0: width=4000, height=3000, components=3  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 1: 2hx2v q=0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 2: 1hx1v q=1  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 3: 1hx1v q=1  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Huffman Table 0x00  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           0   1   5   1   1   1   1   1  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           1   0   0   0   0   0   0   0  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Huffman Table 0x10  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           0   2   1   3   3   2   4   3  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           5   5   4   4   0   0   1 125  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Huffman Table 0x01  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           0   3   1   1   1   1   1   1  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           1   1   1   0   0   0   0   0  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Huffman Table 0x11  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           0   2   1   2   4   4   3   4  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           7   5   4   4   0   1   2 119  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Start Of Scan: 3 components  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 1: dc=0 ac=0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 2: dc=1 ac=1  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 3: dc=1 ac=1  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):   Ss=0, Se=63, Ah=0, Al=0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): End Of Image  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Loading metadata with "Exiv2" backend from "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_165037.jpg" (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/metadataengine/dmetadata/dmetadata_fileio.cpp:110, bool Digikam::DMetadata::load(const QString &, Digikam::MetaEngine::Backend *))
cathaysia.digikam.flowview(Debug): Trying to get thumbnail from "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_165037.jpg" ( "image" ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/threadimageio/thumb/thumbnailcreator_engine.cpp:66, Digikam::ThumbnailImage Digikam::ThumbnailCreator::createThumbnail(const Digikam::ThumbnailInfo &, const QRect &) const)
cathaysia.digikam.flowview(Debug): Trying to get thumbnail with Exiv2 for "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_165037.jpg" (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/threadimageio/thumb/thumbnailcreator_engine.cpp:374, QImage Digikam::ThumbnailCreator::loadImagePreview(const Digikam::DMetadata &) const)
cathaysia.digikam.flowview(Debug): Trying to get thumbnail with DImg preview for "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_165037.jpg" (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/threadimageio/thumb/thumbnailcreator_engine.cpp:385, QImage Digikam::ThumbnailCreator::loadImagePreview(const Digikam::DMetadata &) const)
cathaysia.digikam.flowview(Debug): "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_165037.jpg" : "JPEG" file identified (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/dimg/dimg_fileio.cpp:126, bool Digikam::DImg::load(const QString &, int, Digikam::DImgLoaderObserver *const, const Digikam::DRawDecoding &))
cathaysia.digikam.flowview(Debug): Start of Image  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Miscellaneous marker 0xe1, length 10346  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Quantization Table 0  precision 0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Quantization Table 1  precision 0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Start Of Frame 0xc0: width=4000, height=3000, components=3  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 1: 2hx2v q=0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 2: 1hx1v q=1  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 3: 1hx1v q=1  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Huffman Table 0x00  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           0   1   5   1   1   1   1   1  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           1   0   0   0   0   0   0   0  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Huffman Table 0x10  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           0   2   1   3   3   2   4   3  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           5   5   4   4   0   0   1 125  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Huffman Table 0x01  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           0   3   1   1   1   1   1   1  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           1   1   1   0   0   0   0   0  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Huffman Table 0x11  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           0   2   1   2   4   4   3   4  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           7   5   4   4   0   1   2 119  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Start Of Scan: 3 components  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 1: dc=0 ac=0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 2: dc=1 ac=1  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 3: dc=1 ac=1  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):   Ss=0, Se=63, Ah=0, Al=0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): End Of Image  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Loading metadata with "Exiv2" backend from "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_165017.jpg" (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/metadataengine/dmetadata/dmetadata_fileio.cpp:110, bool Digikam::DMetadata::load(const QString &, Digikam::MetaEngine::Backend *))
cathaysia.digikam.flowview(Debug): Trying to get thumbnail from "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_165017.jpg" ( "image" ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/threadimageio/thumb/thumbnailcreator_engine.cpp:66, Digikam::ThumbnailImage Digikam::ThumbnailCreator::createThumbnail(const Digikam::ThumbnailInfo &, const QRect &) const)
cathaysia.digikam.flowview(Debug): Trying to get thumbnail with Exiv2 for "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_165017.jpg" (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/threadimageio/thumb/thumbnailcreator_engine.cpp:374, QImage Digikam::ThumbnailCreator::loadImagePreview(const Digikam::DMetadata &) const)
cathaysia.digikam.flowview(Debug): Trying to get thumbnail with DImg preview for "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_165017.jpg" (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/threadimageio/thumb/thumbnailcreator_engine.cpp:385, QImage Digikam::ThumbnailCreator::loadImagePreview(const Digikam::DMetadata &) const)
cathaysia.digikam.flowview(Debug): "/Volumes/TOSHIBA EXT/images/2022/2022-04/2022-04-26/IMG_20220426_165017.jpg" : "JPEG" file identified (/Users/gilles/dktemp/digikam-qt5-maintenance/core/libs/dimg/dimg_fileio.cpp:126, bool Digikam::DImg::load(const QString &, int, Digikam::DImgLoaderObserver *const, const Digikam::DRawDecoding &))
cathaysia.digikam.flowview(Debug): Start of Image  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Miscellaneous marker 0xe1, length 13540  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Quantization Table 0  precision 0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Quantization Table 1  precision 0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Start Of Frame 0xc0: width=4000, height=3000, components=3  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 1: 2hx2v q=0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 2: 1hx1v q=1  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 3: 1hx1v q=1  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Huffman Table 0x00  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           0   1   5   1   1   1   1   1  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           1   0   0   0   0   0   0   0  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Huffman Table 0x10  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           0   2   1   3   3   2   4   3  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           5   5   4   4   0   0   1 125  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Huffman Table 0x01  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           0   3   1   1   1   1   1   1  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           1   1   1   0   0   0   0   0  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Define Huffman Table 0x11  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplucathaysia.digikam.flowview(Debug): Define Huffman Table 0x11  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           0   2   1   2   4   4   3   4  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):           7   5   4   4   0   1   2 119  ( 2 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): Start Of Scan: 3 components  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 1: dc=0 ac=0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 2: dc=1 ac=1  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):     Component 3: dc=1 ac=1  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug):   Ss=0, Se=63, Ah=0, Al=0  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
cathaysia.digikam.flowview(Debug): End Of Image  ( 1 ) (/Users/gilles/dktemp/digikam-qt5-maintenance/core/dplugins/dimg/jpeg/dimgjpegloader.cpp:82, static void DigikamJPEGDImgPlugin::DImgJPEGLoader::dimg_jpeg_emit_message(j_common_ptr, int))
Segmentation fault: 11

Restarted again, seem working fine : the app rebuild thumbnails, the sample image is displayed.
Note: When I wrote this ticket, I recursively changed access rights to the image folder of my external disk.
I also ask to rebuild thumbnails but DigiKam can't access images.
Now, it's ok ??? Is it a side effect of the QT_LOGGING_RULES flag ?
Comment 4 yves.pratter 2022-05-09 16:46:45 UTC
Created attachment 148680 [details]
This image is accessible and displayed
Comment 5 yves.pratter 2022-05-09 19:03:20 UTC
New test.
At least one picture is unaccessible when Digikam is started as a macOS application.

Same picture is accessible when Digikam is started from terminal (QT_LOGGING_RULES disabled).
Comment 6 yves.pratter 2022-05-12 07:26:05 UTC
Created attachment 148753 [details]
« Terminal »  requests permission to control « Finder »

It seem that there are new macOS Security settings.

Digikam couldn't access a picture even started from terminal.
When trying to select Open with… Preview.app, the following box appear :
« Terminal » demande l'autorisation de
contrôler « Finder ». Acceptez si vous
voulez lui permettre d'accéder aux
documents et aux données contenues
dans « Finder » et d'y effectuer des
actions.
Comment 7 yves.pratter 2022-05-12 07:29:42 UTC
Created attachment 148754 [details]
Full disk access

After accepting, the following "rights" are given to Digikam:
* Full disk access
* Files and folders
Comment 8 yves.pratter 2022-05-12 07:30:49 UTC
Created attachment 148755 [details]
Files and folders
Comment 9 yves.pratter 2022-05-12 07:44:48 UTC
Created attachment 148756 [details]
Full disk access

After according this privilege, this issue seem solved when Digikam is started as an app.

How to give only access to i.e. "Removable volumes" ?
(see Terminal privilege).
Comment 10 yves.pratter 2022-05-12 07:48:48 UTC
See "Full Disk Access (Catalina) - Not working with privileged helper"
https://developer.apple.com/forums/thread/124185
Comment 11 yves.pratter 2022-05-12 07:54:34 UTC
See also "Removable Volumes access to local applications" that describe the same issue.
https://developer.apple.com/forums/thread/655944
Comment 12 yves.pratter 2023-03-13 09:18:02 UTC
Still have this issue. In fact, there are ACL to some folders or files that prevent access to digikam.
Also some files/folders are owned by root.

After cleaning rights and ACL, digikam can't access any picture, even run as root !
Comment 13 yves.pratter 2023-03-13 09:56:23 UTC
Seem fine if I run the app from it's icon…
… but it can't access any pictures/folders from the terminal (even with sudo)
Comment 14 caulier.gilles 2023-04-19 05:56:20 UTC
@yves.pratter@gmail.com

digiKam 8.0.0 is released. This file still valid ?

Gilles Caulier
Comment 15 caulier.gilles 2023-10-19 12:51:29 UTC
@Yves,

digikam 8.2.0 pre-release have been rebuilt using last Qt 5.15.11 + KDE 5.110
frameworks. Installer is available at usual place :

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

Can reproduce the problem with this version?

Thanks in advance

Gilles Caulier
Comment 16 caulier.gilles 2024-09-17 14:11:03 UTC
@Yves

Please try the new 8.5.0 pre-release PKG installer for MacOS Silicon (arm64)
available here:

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

I tested on my a fresh installer Macbook air M1 with this PKG. At the first start, macOS ask to allow the application to access to the Picture directory (or to configure the grant), and that all...

https://i.imgur.com/gJe8NjG.png

So, for me all work as expected...

Gilles Caulier


Thanks in advance

Gilles Caulier