crash, bt and patch

Andreas Pakulat apaku at gmx.de
Sat Apr 18 06:46:40 UTC 2009


On 18.04.09 04:38:23, Jens Dagerbo wrote:
> I took a stroll through KDev4 tonight, and I must say it looks fantastic in 
> parts. Very impressive!
> 
> Of course it didn't take long to crash it though. After a while I figured out 
> what I was doing to cause it and reproduced it:
> 
> The following patch avoids the crash:
> Index: outputwidget.cpp
> ===================================================================
> --- outputwidget.cpp    (revision 955540)
> +++ outputwidget.cpp    (working copy)
> @@ -167,6 +167,7 @@
>                  stackwidget->removeWidget( w );
>              }
>              delete w;
> +            views.remove(id);
>          } else
>          {
>              views.value( id )->setModel( 0 );
> 
> 
> 
> I'm fairly certain the fix is correct and I still have an SVN account, but I 
> didn't want to commit anything without checking first.

I didn't test the patch, but it does seem reasonable and the surrounding
code doesn't seem to imply that the view shouldn't be removed. If you
don't notice any bugs whith the patch and multiple outputviews (for
example start more than one build), then please commit.

Andreas

-- 
Better hope the life-inspector doesn't come around while you have your
life in such a mess.




More information about the KDevelop-devel mailing list