Summary: | Krita tries to use not open database in a specific case | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Tiar <tamtamy.tymona> |
Component: | Resource Management | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | halla |
Priority: | NOR | ||
Version First Reported In: | git master (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Mint (Ubuntu based) | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/kde/krita/commit/0ddaf9ffefc4433ac11f3c40498ff088d7d1edd3 | Version Fixed In: | |
Sentry Crash Report: |
Description
Tiar
2020-04-14 12:42:23 UTC
We'll have to disable multi-process mode completely to solve this, or use something like mysql/mariadb which allows concurrent database access (with all the hairy problems that will give us.) We can just return from the function ("remove temporary something") if the database is not open, can't we? If we cannot open the database, we can do nothing... Exactly, but now in the single-instance mode, if Krita sees that another instance of Krita is already open, then it closes, calls the destructor, and the destructor tries to remove stuff from a database that wasn't open because, most probably, the opening calls are further down than checking whether we should close Krita early. So either in destructor or in the removeTemporary... call itself it should check if the database it tries to operate on is open and valid. Git commit 0ddaf9ffefc4433ac11f3c40498ff088d7d1edd3 by Boudewijn Rempt. Committed on 15/04/2020 at 08:51. Pushed by rempt into branch 'master'. Remove the option to run krita in multiple processes This is not compatible with using a database like sqlite, which doesn't allow concurrent access. Besides, changing the contents of the database from two krita processes would lead to massive confusion. M +1 -4 krita/main.cc M +1 -4 libs/ui/dialogs/kis_dlg_preferences.cc M +7 -27 libs/ui/forms/wdggeneralsettings.ui https://invent.kde.org/kde/krita/commit/0ddaf9ffefc4433ac11f3c40498ff088d7d1edd3 |