https://bugs.kde.org/show_bug.cgi?id=480345
Bug ID: 480345 Summary: Crash when reading Exif.Photo.UserComment containing emoji Classification: Applications Product: digikam Version: 8.2.0 Platform: Microsoft Windows OS: Microsoft Windows Status: REPORTED Severity: crash Priority: NOR Component: Metadata-Engine Assignee: digikam-bugs-n...@kde.org Reporter: nickbishop97+...@gmail.com Target Milestone: --- Created attachment 165224 --> https://bugs.kde.org/attachment.cgi?id=165224&action=edit Test .PNG image created in GIMP, with Exif.Photo.UserComment set to "????" using ExifTool SUMMARY When digiKam attempts to retrieve metadata from an image using Exiv2, if the Exif.Photo.UserComment field for that image contains an emoji (or any other character outside UCS-2, I assume), digiKam crashes. STEPS TO REPRODUCE 1. Select or refresh album folder containing an image with emoji in Exif.Photo.UserComment (also occurs on startup when loading last-viewed album, if that album has said image) Alternatively: 1. Add UserComment to existing image using outside program (ex. Exiftool) 2. Select image in digiKam OBSERVED RESULT digiKam crashes. Last DebugView trace reads: 00000367 48.04353714 [18128] digikam.metaengine: Exiv2 ( 2 ) : iconv: Illegal byte sequence (errno = 42) inbytesleft = 4 EXPECTED RESULT digiKam does not crash. Maybe ExifTool can be used as a fallback? SOFTWARE/OS VERSIONS Windows: Windows 10 Pro 22H2 19045.3803 macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: 5.245.0 Qt Version: 6.6.0 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.