Summary: | Krita crashes on exit in ~KoID | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Dmitry Kazakov <dimula73> |
Component: | General | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | halla |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/calligra/87c5ee4cdcf09cd9d95b7b20ff902bef5a3f3007 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | patch that makes the colormodel and depth koid's no longer static |
Description
Dmitry Kazakov
2011-11-20 10:12:39 UTC
Desktop (crash): Qt Version: 4.7.1 KDE Version: 4.6.00 (4.6.0) "release 6" Laptop (no crash): Qt: 4.6.3 KDE: 4.4.4 "release 2" Can you add a destructor to KoID, like ~KoID() { qDebug() << m_id << m_name; } so we can see which id's are dying? I think this is caused by the fix for https://bugs.kde.org/show_bug.cgi?id=251606 (Can't launch any koffice application in locale!=en_US with kdelibs >rev 1175322) Created attachment 68699 [details]
patch that makes the colormodel and depth koid's no longer static
please test.
Okay, that didn't work either... Fortunately, this only happens in the unittests and only on Dmitry's system... Well, it happens on both untittests and Krita executable, but only on exit and only on my machine ;) Git commit 87c5ee4cdcf09cd9d95b7b20ff902bef5a3f3007 by Boudewijn Rempt. Committed on 07/05/2012 at 15:01. Pushed by rempt into branch 'master'. Do not delete some static stuff on exit Depending on the order of deletion and other variables, these delete calls might cause a crash on exit or not. And there's actually no memory leak, since this is all static stuff that's present for the lifetime of the application. In this case, it's better to just quit, than explicitly free all memory. The bytes are gone with the process, and there isn't stuff that needs to be written on quit here. Related: bug 298613 M +3 -1 libs/flake/KoInputDeviceHandlerRegistry.cpp M +3 -1 libs/pigment/lut.h http://commits.kde.org/calligra/87c5ee4cdcf09cd9d95b7b20ff902bef5a3f3007 |