Created attachment 153032 [details] pic SUMMARY krita-nightly-x64-5.2.0-prealpha-b19356bae8 This is an hdr animation file produced by krita. The author himself said that he could not open it, nor could I open it.
Created attachment 153033 [details] bug
The crash is caused by a completely null (no primaries and no transfer curve) profile being fed into Little CMS. As this is a two-fold bug, could you please send us the KRA from which this AVIF was created?
I've managed to trace how could invalid primaries slip into an AVIF file. The fix is multifaceted, and requires hardening our color space management logic. See MR here: https://invent.kde.org/graphics/krita/-/merge_requests/1631
Git commit 4d5320a0cb4a58ce71fe357789e9397a3d33f920 by L. E. Segovia. Committed on 31/10/2022 at 21:34. Pushed by lsegovia into branch 'master'. IccColorProfile: assert if LittleCMS returns a null cmsPROFILE M +11 -10 plugins/color/lcms2engine/colorprofiles/IccColorProfile.cpp https://invent.kde.org/graphics/krita/commit/4d5320a0cb4a58ce71fe357789e9397a3d33f920
Git commit 2fb91ab4c8cdc4beec13be68084f9706d3730a49 by L. E. Segovia. Committed on 31/10/2022 at 21:34. Pushed by lsegovia into branch 'master'. HEIF: consistently apply the default value for conversion policies M +10 -4 plugins/impex/heif/HeifExport.cpp https://invent.kde.org/graphics/krita/commit/2fb91ab4c8cdc4beec13be68084f9706d3730a49
Git commit 83d9f9e3a140cc9f251123a4b284b277649ec663 by L. E. Segovia. Committed on 31/10/2022 at 21:34. Pushed by lsegovia into branch 'master'. IccColorSpaceEngine: add a HDR fallback for scene linear profiles lacking primaries M +5 -1 plugins/color/lcms2engine/IccColorSpaceEngine.cpp https://invent.kde.org/graphics/krita/commit/83d9f9e3a140cc9f251123a4b284b277649ec663
Git commit c072afb514fa89ccb77cfdc1167b37bd598d9025 by L. E. Segovia. Committed on 31/10/2022 at 21:34. Pushed by lsegovia into branch 'master'. IccColorProfile: assert on invalid color space specification M +3 -2 plugins/color/lcms2engine/IccColorSpaceEngine.cpp M +5 -0 plugins/color/lcms2engine/colorprofiles/IccColorProfile.cpp https://invent.kde.org/graphics/krita/commit/c072afb514fa89ccb77cfdc1167b37bd598d9025
Git commit 463d4a7092e44c087de35f4542a947c40a479847 by L. E. Segovia. Committed on 31/10/2022 at 21:34. Pushed by lsegovia into branch 'master'. IccColorSpaceEngine: fix safe assertion with partially unspecified profiles M +8 -4 plugins/color/lcms2engine/IccColorSpaceEngine.cpp https://invent.kde.org/graphics/krita/commit/463d4a7092e44c087de35f4542a947c40a479847
Git commit 321e56ed485e8758a469badac9783d98a237e658 by L. E. Segovia. Committed on 31/10/2022 at 21:34. Pushed by lsegovia into branch 'master'. HEIF: properly catch attempts to store invalid CICP values M +32 -26 libs/ui/KisImportExportManager.cpp M +13 -7 plugins/impex/heif/HeifExport.cpp https://invent.kde.org/graphics/krita/commit/321e56ed485e8758a469badac9783d98a237e658
Git commit b839f961070d18bd2b6d692deade3a27216ddbf1 by L. E. Segovia. Committed on 31/10/2022 at 21:39. Pushed by lsegovia into branch 'krita/5.1'. IccColorProfile: assert on invalid color space specification (cherry picked from commit c072afb514fa89ccb77cfdc1167b37bd598d9025) M +3 -2 plugins/color/lcms2engine/IccColorSpaceEngine.cpp M +5 -0 plugins/color/lcms2engine/colorprofiles/IccColorProfile.cpp https://invent.kde.org/graphics/krita/commit/b839f961070d18bd2b6d692deade3a27216ddbf1
Git commit a265ff2a00d9e28c553c3b2e189e5087be23c0af by L. E. Segovia. Committed on 31/10/2022 at 21:39. Pushed by lsegovia into branch 'krita/5.1'. IccColorProfile: assert if LittleCMS returns a null cmsPROFILE (cherry picked from commit 4d5320a0cb4a58ce71fe357789e9397a3d33f920) M +11 -10 plugins/color/lcms2engine/colorprofiles/IccColorProfile.cpp https://invent.kde.org/graphics/krita/commit/a265ff2a00d9e28c553c3b2e189e5087be23c0af
Git commit 33e3f9cc8f70df3222272f7916d3459f40fc17f7 by L. E. Segovia. Committed on 31/10/2022 at 21:39. Pushed by lsegovia into branch 'krita/5.1'. HEIF: properly catch attempts to store invalid CICP values (cherry picked from commit 321e56ed485e8758a469badac9783d98a237e658) M +32 -26 libs/ui/KisImportExportManager.cpp M +13 -7 plugins/impex/heif/HeifExport.cpp https://invent.kde.org/graphics/krita/commit/33e3f9cc8f70df3222272f7916d3459f40fc17f7
Git commit 6cd3092bfd9f06482c9f3beff9ecd768f5eb5fc5 by L. E. Segovia. Committed on 31/10/2022 at 21:39. Pushed by lsegovia into branch 'krita/5.1'. IccColorSpaceEngine: fix safe assertion with partially unspecified profiles (cherry picked from commit 463d4a7092e44c087de35f4542a947c40a479847) M +8 -4 plugins/color/lcms2engine/IccColorSpaceEngine.cpp https://invent.kde.org/graphics/krita/commit/6cd3092bfd9f06482c9f3beff9ecd768f5eb5fc5
Git commit 1379b98171e8123a39347c47f8935d677b8f9f44 by L. E. Segovia. Committed on 31/10/2022 at 21:39. Pushed by lsegovia into branch 'krita/5.1'. IccColorSpaceEngine: add a HDR fallback for scene linear profiles lacking primaries (cherry picked from commit 83d9f9e3a140cc9f251123a4b284b277649ec663) M +5 -1 plugins/color/lcms2engine/IccColorSpaceEngine.cpp https://invent.kde.org/graphics/krita/commit/1379b98171e8123a39347c47f8935d677b8f9f44
Git commit 8f74d8491e90c3b33099dd60fd66af5dd11fb9d8 by L. E. Segovia. Committed on 31/10/2022 at 21:39. Pushed by lsegovia into branch 'krita/5.1'. HEIF: consistently apply the default value for conversion policies (cherry picked from commit 2fb91ab4c8cdc4beec13be68084f9706d3730a49) M +10 -4 plugins/impex/heif/HeifExport.cpp https://invent.kde.org/graphics/krita/commit/8f74d8491e90c3b33099dd60fd66af5dd11fb9d8