Planner issues 1#

Tomaz Canabrava tcanabrava at kde.org
Sun Jun 1 05:51:43 PDT 2014


infinite recursion on recalculate.
Qt should only send the itemChangeEvent *if* the position changed ( if
I setPos with the same pos() things shouldn't trigger itemChange) but
it seems that this is not true. Can you two put a qDebug() << pos();
on the recalculate to see if the positions are the same or if we are
getting something weirder on?

Tomaz

On Sun, Jun 1, 2014 at 6:58 AM, Henrik Brautaset Aronsen
<subsurface at henrik.synth.no> wrote:
> Joakim Bygdell wrote:
>
> Latest master doesn’t crash on me when I open the Planner, but the ADD Dive
> still crashes.
>
>
>
> Yup, for me as well:
>
> VM Regions Near 0x7fff559ccf58:
>     MALLOC_SMALL           00007fc312800000-00007fc313800000 [ 16.0M]
> rw-/rwx SM=PRV
> --> STACK GUARD            00007fff521cd000-00007fff559cd000 [ 56.0M]
> ---/rwx SM=NUL  stack guard for thread 0
>     Stack                  00007fff559cd000-00007fff561cd000 [ 8192K]
> rw-/rwx SM=COW  thread 0
>
> Application Specific Information:
> Performing @selector(qtDispatcherToQAction:) from sender NSMenuItem
> 0x6080002aada0
>
>
> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> 0   QtGui                             0x000000010c8f6cab
> QGraphicsScenePrivate::markDirty(QGraphicsItem*, QRectF const&, bool, bool,
> bool, bool, bool) + 169
> 1   QtGui                             0x000000010c8d0498
> QGraphicsItem::prepareGeometryChange() + 310
> 2   QtGui                             0x000000010c8d6a1d
> QGraphicsItemPrivate::setPosHelper(QPointF const&) + 67
> 3   QtGui                             0x000000010c8d68ba
> QGraphicsItem::setPos(QPointF const&) + 296
> 4   org.hohndel.subsurface            0x0000000109aef4ef
> RulerNodeItem2::recalculate() + 415
> 5   org.hohndel.subsurface            0x0000000109aef684
> RulerNodeItem2::itemChange(QGraphicsItem::GraphicsItemChange, QVariant
> const&) + 372
> 6   org.hohndel.subsurface            0x0000000109aefcf2 non-virtual thunk
> to RulerNodeItem2::itemChange(QGraphicsItem::GraphicsItemChange, QVariant
> const&) + 18
> 7   QtGui                             0x000000010c8d68d6
> QGraphicsItem::setPos(QPointF const&) + 324
> 8   org.hohndel.subsurface            0x0000000109aef4ef
> RulerNodeItem2::recalculate() + 415
> 9   org.hohndel.subsurface            0x0000000109aef684
> RulerNodeItem2::itemChange(QGraphicsItem::GraphicsItemChange, QVariant
> const&) + 372
> 10  org.hohndel.subsurface            0x0000000109aefcf2 non-virtual thunk
> to RulerNodeItem2::itemChange(QGraphicsItem::GraphicsItemChange, QVariant
> const&) + 18
> 11  QtGui                             0x000000010c8d68d6
> QGraphicsItem::setPos(QPointF const&) + 324
> 12  org.hohndel.subsurface            0x0000000109aef4ef
> RulerNodeItem2::recalculate() + 415
> 13  org.hohndel.subsurface            0x0000000109aef684
> RulerNodeItem2::itemChange(QGraphicsItem::GraphicsItemChange, QVariant
> const&) + 372
> 14  org.hohndel.subsurface            0x0000000109aefcf2 non-virtual thunk
> to
>
> H
>
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
>


More information about the subsurface mailing list