KDevelop shell crashes
Andras Mantia
amantia at kde.org
Thu Mar 1 06:46:34 UTC 2012
On Thursday, March 01, 2012 01:41:35 AM Milian Wolff wrote:
> On Wednesday 29 February 2012 22:09:13 Andras Mantia wrote:
> > Hi,
> >
> > from time to time kdevelop crashes for me when restoring a session, and I
> >
> > have to delete the session data to work. As this is annoying, I actually
> > look at the backtrace, and come up with a hot-fix. The crash was because
> > of
> > out-of- bounds access for the QList.
> >
> > Unfortunately I don't know yet how to trigger it, but it might be related
> >
> > to closing KDevelop while the Review workset is active.
> >
> > If you wish, I can commit this patch, if not, I keep it for myself. :)
>
> ugh if it fixes an issue I'm fine with it, but please use
>
> !.isEmpty()
>
> instead of
>
> .length()
>
> thanks
Are you aware that I didn't add the .length() part, but the i < areaIndex-
>views().size() part? :) Not that you are not right.
Anyway, it seems that code was changed meantime, so the patch doesn't apply as
it is. I will see if the new code crashes or not.
Andras
More information about the KDevelop-devel
mailing list