| Summary: | After finishing editing a bundle file, Krita will not launch the next time you try to launch it | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | AppTest <xeses16388> |
| Component: | Resource Management | Assignee: | Dmitry Kazakov <dimula73> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | dimula73, halla, info, lynx.mw+kde |
| Priority: | NOR | Keywords: | regression, release_blocker |
| Version First Reported In: | nightly build (please specify the git hash!) | ||
| Target Milestone: | --- | ||
| Platform: | Android | ||
| OS: | Android 14.x | ||
| Latest Commit: | https://invent.kde.org/graphics/krita/-/commit/34c55c0bb3f458c79f23a2b70fa36595e241e9ab | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
AppTest
2025-08-11 02:23:06 UTC
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 |