Crashes in completion model/treeview

Andreas Pakulat apaku at gmx.de
Sun Feb 22 15:40:08 UTC 2009


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.

Andreas

-- 
Best of all is never to have been born.  Second best is to die soon.




More information about the KDevelop-devel mailing list