crash on start

David Nolden zwabel at
Tue Sep 21 08:48:25 UTC 2010

2010/9/21 Andreas Pakulat <apaku at>:
> On 20.09.10 23:49:05, Aleix Pol wrote:
>> Hi!
>> I've been getting a crash on a system using master and kdelibs trunk when
>> starting kdevelop with a session that already had files in it.
>> I've been trying to debug the problem a little and I've found out the
>> problem goes that way:
>> - The same file happens to be opened two times for some reason (dunno what),
>> the file that's in the workingset, of course.
>> - the first one goes to check it's mimetype using the KIO::MimetypeJob
>> - The exec function somehow tries to add again the same file we were adding,
>> I guess it's because there's some qApp->processEvents somewhere, not sure
>> why.
>> - The file tries to be opened again.
>> - When the second file is created, we hit: Q_ASSERT(!documents.contains(url)
>> || documents[url]==doc);
>> Any clue on how to fix that?
>> I'm not sure why does that happen, isn't ::exec supposed to create a new
>> event loop?
> It does, however that just means events are not processed by the main
> event loop. So the question is why is the same file being added a second
> time.

Maybe it has something to do with a split-view? However for me, even
split-views work without problems. I also guess there's something
messed up with the event-processing.

More information about the KDevelop-devel mailing list