SUMMARY See title STEPS TO REPRODUCE 1. Go to Settings, Manage Resource Libraries, Edit Bundle 2. Make a new version of your bundle file 3. Close Krita and restart it OBSERVED RESULT Krita won't start, and you get the error message: "Krita: Fatal error Could not remove storage [bundle name] from the database Krita will quit now." Krita quits, and the same result will occur if you try to launch it again. EXPECTED RESULT Krita launches SOFTWARE/OS VERSIONS Android 16 Krita 5.3 nightly git 3d98e69 arm64 apk
This issue seems to occur when a bundle is removed from the resource folder, editing a bundle is just one way to create that situation. It is also not OS specific, as it happens here on Linux, 5.3.0-prealpha (git 6fd2d50) In console, I get an additional error message like this: ERROR: deleteStorage: Failed to execute sql from file file: inline://delete_current_resources_for_storage statement: 0 error: FOREIGN KEY constraint failed Unable to fetch row ("Could not remove storage /home/lynx/.local/share/krita/[resource_bundle_name].bundle from the database")
maybe related but observed on Windows: https://krita-artists.org/t/5-3-new-edit-bundle-function-ux-irritating/143748
Okay, the problem happens because when you remove the bundle, some external resources may still be linked to that. And removing the bundle will make them broken.
Git commit 34c55c0bb3f458c79f23a2b70fa36595e241e9ab by Dmitry Kazakov. Committed on 15/01/2026 at 14:53. Pushed by dkazakov into branch 'master'. Fix deletion of a resource storage We should also remove all resource-tag links before the removal of actual resources. FOREIGN KEY constraint tracks it down correctly. M +7 -0 libs/resources/KisResourceCacheDb.cpp M +1 -0 libs/resources/sql.qrc A +8 -0 libs/resources/sql/delete_resource_tags_for_storage_indirect.sql https://invent.kde.org/graphics/krita/-/commit/34c55c0bb3f458c79f23a2b70fa36595e241e9ab