Bug 446466

Summary: Under MacOS, pictures on NFS share with special characters in their album name don't show icon/image previews
Product: [Applications] digikam Reporter: stef <kdebugs>
Component: Albums-IconViewAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 7.3.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 7.4.0
Sentry Crash Report:
Attachments: Screenshots illustrating the bug reported

Description stef 2021-12-04 10:39:12 UTC
Created attachment 144205 [details]
Screenshots illustrating the bug reported

SUMMARY
Icon and image preview are broken for albums on a nfs share containing special characters as German umlauts (e.g. ä, ü). See screenshots in the attachment.

STEPS TO REPRODUCE
1. In a network share collection (NFS mount), I create an album with the name Test_ä or Test_ü
2. I add some pictures/movies to new album using drag-and-drop from MacOS Finder to digikam (not relevant how this is done though)
3. In digikam's album view, I check the icon area and the image preview area for the added pictures/movies 

OBSERVED RESULT
The green placeholder icons are show for the added images/movies only and in the preview area it says "Failed to load image"

EXPECTED RESULT
Regular icons and an image preview reflecting the added pictures/movies content are shown

SOFTWARE/OS VERSIONS
digikam version 7.3.0
CPU cores: 8
DNG SDK: 1.5.1
Eigen: 3.3.9
ExifTool: 12.34
Exiv2 supports Base Media: Yes
Exiv2 supports XMP metadata: Yes
HEIF encoding support: Yes
ImageMagick codecs: 6.9.11
KF5: 5.80.0
LensFun: 0.3.95-0
LibCImg: 130
LibJPEG: 80
LibJasper: 2.0.14
LibLCMS: 2120
LibLqr support: No
LibPGF: 7.21.07
LibPNG: 1.6.37
LibRaw: 0.21.0
LibTIFF: 4.2.0
Marble: 0.27.20
Parallelized demosaicing: Yes
Qt: 5.15.2
Qt WebEngine support: Yes
Rajce support: Yes
VKontakte support: No
XMP SDK: 5.6.0
AkonadiContact support: No
Baloo support: No
Calendar support: Yes
DBus support: No
Database backend: QSQLITE
HTML Gallery support: Yes
LibAVCodec: 58.91.100
LibAVFormat: 58.45.100
LibAVUtil: 56.51.100
LibGphoto2: 2.5.27
LibOpenCV: 4.5.1
LibQtAV: 1.13.0
Media player support: Yes
Panorama support: Yes

ADDITIONAL INFORMATION
- Moving the folder Test_ä to a local collection makes the issue disappear; moving it back to the nfs share als brings the issue back
- Renaming the folder to not contain the umlaut character solves the problem; when the umlaut is added again, the issue is also back
- mount statement used for the nfs share is: nas:/photo on /Volumes/photo (nfs, nodev, nosuid, mounted by stefan)
- Checking the mounted nfs share within a console shows regular file names incl. special characters
Comment 1 Maik Qualmann 2021-12-04 10:56:11 UTC
Please give us the debug log from the terminal when the thumbnails are updated with F5 and the attempt to open the preview. Don't forget to set the Qt Debug environment variable, it's described here for MacOS: 

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

Maik
Comment 3 stef 2021-12-04 23:37:41 UTC
Hi Maik

That was it - the nfc option does the trick on nfs. It seems though, that I need to migrate folders with special characters that they work in digikam and other programs. Switching to smb seems to be easier.

Thanks' a lot for your fast reply!

Regards,
Stefan