[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 304852] crash in QDeclarativeObjectScriptClass::newQObject when switching areas
From:       Olivier.jg <olivier.jg () gmail ! com>
Date:       2012-11-12 16:05:52
Message-ID: bug-304852-17878-wOrUpLFWt5 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=304852

--- Comment #13 from Olivier.jg <olivier.jg@gmail.com> ---
(In reply to comment #12)
> Could you please point commit that fixed this thing in kdevelop? I have
> identical crash in my own application and cant find whats wrong.

https://projects.kde.org/projects/extragear/kdevelop/kdevelop/repository/revision?rev=512cb5623501be8052d0bd9b6b674c3bf627095c


The "model" property of a QDeclarative ListView was set to recentProjects,
which was a QList of QActions. The QActions were taken from whatever was in the
Recent Projects submenu at the time.
Unfortunately the Recent Projects menu gets updated when projects are loaded,
leading to the deletion of one or more of the QActions. The ListView's model
was never updated to reflect the changes, leading to crashes when the ListView
would attempt to read the dangling pointers left in the model.
If you're experiencing this crash, take a look at whatever model(s) you're
giving to the QDeclarativeView(s) to find pointers to data that may be outlived
by the view.

-- 
You are receiving this mail because:
You are watching all bug changes.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic