Crashes in completion model/treeview

Andreas Pakulat apaku at gmx.de
Tue Mar 3 17:17:47 UTC 2009


On 22.02.09 16:40:08, Andreas Pakulat wrote:
> On 21.02.09 14:05:14, David Nolden wrote:
> > Am Samstag 21 Februar 2009 13:33:14 schrieb Andreas Pakulat:
> > > Hi,
> > >
> > > note: I'm using Qt4.5rc1, so this could possibly be a Qt bug.
> > >
> > > I'm getting crashes here when trying to complete methods I want to
> > > implement. They're declared in the header, I'm sitting outside of anything
> > > in the cpp when hitting the completion. Also it seems I need to be typing
> > > parts of the wanted method to trigger this, choosing it via arrow keys
> > > seems to work. The output and backtrace:
> > I've never seen this before.
> > 
> > To give me a hint what might be causing this can you:
> > - Within KDevelop set code-completion to "always minimal completion", and see 
> > whether it still happens(Grouping is disabled then)
> > Probably it won't happen, so set it to full completion again before the next 
> > test.
> > - Go to cpp/codecompletionitem.cpp, and always return 0 within the data() 
> > function on "BestMatchesCount". This disabled the computation of best matches, 
> > which might also cause some problems.
> 
> Both changes don't help in any way. I've just comitted my code so I
> can try this tomorrow with a Qt4.4 install (to exclude a 4.5 bug). To
> reproduce: open documentswitcherplugin.cpp
> (kdevplatform/plugins/documentswitcher), remove the changeArea method.
> Then hit ctrl+space to get completion and start typing change, either
> put a typo in (I often happen to type can first) and delete a few
> characters, then go on typing. This crashes, sometimes not on the first
> try but after two or three repeats it always crashes in the way I've
> explained.

For the record: This has been fixed by David in trunk (hopefully also
backported to 4.2) kdelibs/kate

Andreas

-- 
There was a phone call for you.




More information about the KDevelop-devel mailing list