[Qt-jambi-interest] Modifying a QTreeWidgetItem causes the JVM to crash. (Similar to bug #80337?)
Florian Hübner
florian.huebner at psi.ch
Thu Aug 7 15:21:20 CEST 2008
Gunnar Sletta wrote:
> Florian Hübner wrote:
>> Hello,
>> after upgrading from jambi 4.3.3_01 to 4.4.0_01 I noticed that modifying
>> a QTreeWidgetItem can crash the JVM under certain conditions.
>> I have a method that takes a QTreeWidgetItem as argument, removes all
>> child nodes with takeChildren() and then adds more nodes afterwards. The
>> first time I activate this method everything works fine but when I click
>> on it twice in a row the jvm crashes with the crash log attached below.
>> Testing it some time I found out the following:
>> 1. Nodes that have a lot nested child nodes are more likely to crash,
>> Nodes without children seem not to crash at all.
>> 2. Clicking on other nodes before clicking on one that would crash
>> prevents the crash.
>> 3. Repeating #2 often enough sometimes makes it possible to click on a
>> node that would normally crash, after clicking it twice, multiple times
>> without crashing the jvm.
>> 4. Removing the takeChildren() crashes the jvm when adding nodes instead.
>> 5. Using version 4.3.3_01 stops the crashes altogether.
>>
>> best regards
>> Florian
>
> Hi Florian,
>
> Do you have an example I could look at?
Hello Gunnar,
I tried to reproduce it by crating a simple application with a lot of
nodes in a QTreeWidged but couldn't reproduce the bug. Maybe the bug
occurred due to some of the data that was stored in the nodes or some
other secondary effect of our application.
I certainly will try it again with the next Jambi release.
best regards
Florian
More information about the Qt-jambi-interest
mailing list