<div class="gmail_quote">On Tue, Sep 21, 2010 at 10:48 AM, David Nolden <span dir="ltr"><<a href="mailto:zwabel@googlemail.com">zwabel@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2010/9/21 Andreas Pakulat <<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>>:<br>
<div class="im">> On 20.09.10 23:49:05, Aleix Pol wrote:<br>
>> Hi!<br>
>> I've been getting a crash on a system using master and kdelibs trunk when<br>
>> starting kdevelop with a session that already had files in it.<br>
>><br>
>> I've been trying to debug the problem a little and I've found out the<br>
>> problem goes that way:<br>
>> - The same file happens to be opened two times for some reason (dunno what),<br>
>> the file that's in the workingset, of course.<br>
>> - the first one goes to check it's mimetype using the KIO::MimetypeJob<br>
>> - The exec function somehow tries to add again the same file we were adding,<br>
>> I guess it's because there's some qApp->processEvents somewhere, not sure<br>
>> why.<br>
>> - The file tries to be opened again.<br>
>> - When the second file is created, we hit: Q_ASSERT(!documents.contains(url)<br>
>> || documents[url]==doc);<br>
>><br>
>> Any clue on how to fix that?<br>
>> I'm not sure why does that happen, isn't ::exec supposed to create a new<br>
>> event loop?<br>
><br>
> It does, however that just means events are not processed by the main<br>
> event loop. So the question is why is the same file being added a second<br>
> time.<br>
<br>
</div>Maybe it has something to do with a split-view? However for me, even<br>
split-views work without problems. I also guess there's something<br>
messed up with the event-processing.<br>
<div><div></div><div class="h5"><br>
--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</div></div></blockquote></div><br><div>No, that happens with only one file.</div><div><br></div><div>I have to say I'm not hitting that problem with 4.1 + KDE 4.5, maybe it's kdelibs that's broken?</div>