Summary: | Calligra Words crashes after closing | ||
---|---|---|---|
Product: | [Applications] calligracommon | Reporter: | Felix Michel <felix_michel> |
Component: | general | Assignee: | Calligra Bugs <calligra-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | cbo, halla, maninc |
Priority: | NOR | ||
Version: | 2.4.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/calligra/87c5ee4cdcf09cd9d95b7b20ff902bef5a3f3007 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
Log calligra words with valgrind
Crash log patch that disables some deletion of static objects |
Description
Felix Michel
2012-04-22 17:03:36 UTC
That looks a bit weird. Do you have any mose stylus, attached or is it a tablet pc? No, it is a normal notebook (Lenovo T410). If I open the file again and close calligra again it happens again. I dont want to attach the file here, can i send you an email with the file? Ok thanks Don't have your hops high, as unless we can reproduce it too we can probably not figure out how to fix it and yes you can send me the file but i doubt it's related to the file It doesnt seem ti be related, it also happens with other files. Can i do something to make fixing it possible? Hm.... This is a bit mysterious. Could you run with valgrind and attach the log? That might show us what happens. It's a very uncommon crash in any case... Created attachment 70572 [details]
Log calligra words with valgrind
No idea if i did it in the right way.
Created attachment 70845 [details]
Crash log
I can confirm the crash. Happens everytime I open&close calligra words Hm, that's actually a different crash -- but the same cause, I guess. It happens when we try to cleanly delete static objects. Created attachment 70849 [details]
patch that disables some deletion of static objects
This patch removes the deletes that cause problems for some people; it's all a bit mysterious, but if we try to delete static stuff on shutdown, it sometimes fails for some people, never fails for others and always fails for yet other people. Basically, on app-exit, it's faster to just leak everything that doesn't need to be explicitly destructed because it needs to save something.
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 287053 M +3 -1 libs/flake/KoInputDeviceHandlerRegistry.cpp M +3 -1 libs/pigment/lut.h http://commits.kde.org/calligra/87c5ee4cdcf09cd9d95b7b20ff902bef5a3f3007 Yay!! It did not crash now... |