Reproducable Crash in UIController
Andreas Pakulat
apaku at gmx.de
Wed Jun 17 19:28:42 UTC 2009
On 17.06.09 19:09:25, Milian Wolff wrote:
> Hi, found a reproducable crash. To see it, do the following:
>
> Open Kdevelop
> Open a second main window (shift + ctrl + n)
> close one of the main windows
> close kdevelop => crash
>
> Why?
> Thread 1 (Thread 0xb5429710 (LWP 5531)):
> [KCrash Handler]
> #6 0xb7c407db in KDevelop::UiController::cleanup (this=0xa151970) at
> /home/milianw/projects/kde4/kdevplatform/shell/uicontroller.cpp:355
> #7 0xb7c3c84d in KDevelop::Core::cleanup (this=0xa0ffe00) at
> /home/milianw/projects/kde4/kdevplatform/shell/core.cpp:247
> #8 0xb7c2fba6 in ~MainWindow (this=0xa1583d8) at
> /home/milianw/projects/kde4/kdevplatform/shell/mainwindow.cpp:99
>
> In cleanup:
>
> foreach (Sublime::MainWindow* w, mainWindows())
> w->saveSettings();
>
> Problem:
> mainWindows() (controlledMainWindows in pointer of Controller) is never
> cleaned up! I thought it would be an easy fix but had bad luck:
>
> I thought I'd just have to add something like
Check the bugreports of the last few days, I've created a bug for
exactly that missing cleanup. I didn't further look into it, but a crash
inside qobject_cast means your pointer is broken.
Andreas
--
Be cheerful while you are alive.
-- Phathotep, 24th Century B.C.
More information about the KDevelop-devel
mailing list