-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kalarm crash after closing in LXQT #1193
Comments
ok - not again - not without further informations |
What information do you need? |
#1192 |
Tried with no luck to add new template to git repository. Without step by step explanation with examples it is very hard. Bug report must be SIMPLE and intuitive. Anyway I'll update first post. |
Reopening, the downstream bug looks legitimate. |
Same here, up-to-date arch with lxqt-git packages: starting kalarm and exiting by right click on trayicon → exit I get an error notification from plasma, icon stays visible with crash icon.
|
@sniper2: thank you very much |
I'm able to reproduce it here and from the stacktrace I'm guessing this is another example of the "close/unload libraries" and dangling resources problem:
So the cache is cleared in static finalization time, but the image engine plugin(s) is/are probably gone already. But confiusing is, why isn't the cache |
... and the
|
Can this issue be reproduced by a simple test program or is it specific to kalarm? |
OMG... it's not called because the application object is created on heap(https://github.com/KDE/kdepim/blob/master/kalarm/src/main.cpp#L43, https://github.com/KDE/kdepim/blob/master/kalarm/src/kalarmapp.cpp#L194), but never deleted ... I believe, this should fix it: diff --git a/kalarm/src/main.cpp b/kalarm/src/main.cpp
index 3eab588..b7d127d 100644
--- a/kalarm/src/main.cpp
+++ b/kalarm/src/main.cpp
@@ -40,7 +40,7 @@ int main(int argc, char* argv[])
KAlarmMigrateApplication migrate;
migrate.migrate();
- KAlarmApp* app = KAlarmApp::create(argc, argv);
+ QScopedPointer<KAlarmApp> app = KAlarmApp::create(argc, argv);
QStringList args = app->arguments();
app->setAttribute(Qt::AA_UseHighDpiPixmaps, true);
app->setAttribute(Qt::AA_EnableHighDpiScaling); (but I have no time to build the kalarm from sources) |
The QCoreApplication instance wasn't deleted before libraries were unloaded, which resulted in a crash during clean-up. See lxqt/lxqt#1193 (comment).
The QCoreApplication instance wasn't deleted before libraries were unloaded, which resulted in a crash during clean-up. See lxqt/lxqt#1193 (comment).
How to reproduce:
Software used
Expected behavior
Kalarm exit without crash
Actual behavior
kalarm crashes after exit
Backtrace is here: http://pastebin.com/3ay0FxxL
More info here https://bugs.kde.org/show_bug.cgi?id=372223
The text was updated successfully, but these errors were encountered: