Bug 506086 - [5.3.0 Nightly] Safe Assert Warning containing "KisResourceCacheDb.cpp, line 2085" with 'Noto-serif Hebrew' font from Debian
Summary: [5.3.0 Nightly] Safe Assert Warning containing "KisResourceCacheDb.cpp, line ...
Status: REOPENED
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (other bugs)
Version First Reported In: nightly build (please specify the git hash!)
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-24 05:19 UTC by Protoniv
Modified: 2025-11-21 02:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Protoniv 2025-06-24 05:19:58 UTC
SUMMARY

When krita startup, loading cache font database, it will popup safe assert warning which mentioned "KisResourceCacheDb.cpp, line 2085", ignore it will proceed same warning (loading another font in the same family), until krita start normally. After welcome screen, everything seems to work as expect.

Tested in Debian 12/13, still can reproduce in krita-5.3.0-prealpha-88295ba7c3
Cannot trigger the warning in OpenSUSE 15.6 (not have this certain font family)

Here is the output launching from terminal.
```
Could not execute addResourceVersionImpl statement QSqlError("19", "Unable to fetch row", "UNIQUE constraint failed: versioned_resources.resource_id, versioned_resources.storage_id, versioned_resources.version") 2474 "fontregistry" "fontregistry" "Noto Serif Hebrew SemBd" "Noto Serif Hebrew SemBd" version 0
SAFE ASSERT (krita): "result" in file /builds/graphics/krita/libs/resources/KisResourceCacheDb.cpp, line 2085
Could not execute addResourceVersionImpl statement QSqlError("19", "Unable to fetch row", "UNIQUE constraint failed: versioned_resources.resource_id, versioned_resources.storage_id, versioned_resources.version") 2475 "fontregistry" "fontregistry" "Noto Serif Hebrew ExtLt" "Noto Serif Hebrew ExtLt" version 0
SAFE ASSERT (krita): "result" in file /builds/graphics/krita/libs/resources/KisResourceCacheDb.cpp, line 2085
Could not execute addResourceVersionImpl statement QSqlError("19", "Unable to fetch row", "UNIQUE constraint failed: versioned_resources.resource_id, versioned_resources.storage_id, versioned_resources.version") 2476 "fontregistry" "fontregistry" "Noto Serif Hebrew Thin" "Noto Serif Hebrew Thin" version 0
SAFE ASSERT (krita): "result" in file /builds/graphics/krita/libs/resources/KisResourceCacheDb.cpp, line 2085
Could not execute addResourceVersionImpl statement QSqlError("19", "Unable to fetch row", "UNIQUE constraint failed: versioned_resources.resource_id, versioned_resources.storage_id, versioned_resources.version") 2477 "fontregistry" "fontregistry" "Noto Serif Hebrew ExtBd" "Noto Serif Hebrew ExtBd" version 0
SAFE ASSERT (krita): "result" in file /builds/graphics/krita/libs/resources/KisResourceCacheDb.cpp, line 2085
Could not execute addResourceVersionImpl statement QSqlError("19", "Unable to fetch row", "UNIQUE constraint failed: versioned_resources.resource_id, versioned_resources.storage_id, versioned_resources.version") 2478 "fontregistry" "fontregistry" "Noto Serif Hebrew Blk" "Noto Serif Hebrew Blk" version 0
SAFE ASSERT (krita): "result" in file /builds/graphics/krita/libs/resources/KisResourceCacheDb.cpp, line 2085
Could not execute addResourceVersionImpl statement QSqlError("19", "Unable to fetch row", "UNIQUE constraint failed: versioned_resources.resource_id, versioned_resources.storage_id, versioned_resources.version") 2479 "fontregistry" "fontregistry" "Noto Serif Hebrew Light" "Noto Serif Hebrew Light" version 0
SAFE ASSERT (krita): "result" in file /builds/graphics/krita/libs/resources/KisResourceCacheDb.cpp, line 2085
Could not execute addResourceVersionImpl statement QSqlError("19", "Unable to fetch row", "UNIQUE constraint failed: versioned_resources.resource_id, versioned_resources.storage_id, versioned_resources.version") 2480 "fontregistry" "fontregistry" "Noto Serif Hebrew Med" "Noto Serif Hebrew Med" version 0
SAFE ASSERT (krita): "result" in file /builds/graphics/krita/libs/resources/KisResourceCacheDb.cpp, line 2085

```

STEPS TO REPRODUCE
1. Debian 12/13 with "font-noto-core" package from repo, start krita to build font resource cache
2. Close krita, start again, safe assert warning appears

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 13
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.12.32-amd64 (64-bit)

ADDITIONAL INFORMATION

Disable the font family "Noto-serif Hebrew" in Debian 12/13, the safe assert warning will disappear.
The font files installed in Debian seems a little different from google website, but I didn't test google version yet.
Comment 1 Protoniv 2025-09-12 12:19:24 UTC
Cannot reproduce the issue in newer build after August 31st, closing the ticket.
Comment 2 Protoniv 2025-11-21 02:32:19 UTC
The issue appears again after commit 5605f408 `Revert "Remove the FontFamily resource loader for now."`
tested on 
krita-5.3.0-prealpha-5605f40865-x86_64.AppImage (after the commit)
krita-5.3.0-prealpha-7e99c06256-x86_64.AppImage (before the commit)