[Interest] QGraphicsScene/View getting stuck -CLOSED-

maitai maitai at virtual-winds.org
Wed Mar 30 09:24:45 CEST 2016


Hello,

Just to close this issue.

The problem was coming from a qt-bug (QTBUG-3018) which I just 
re-opened. Basically if you draw a line with a pen that has a DashLine 
style, and the line is null (the 2 points are identical), then QPainter 
enters an infinite loop. It occurs only if the QPen has a DahsLine 
style...

Philippe.

Le 29-03-2016 18:37, maitai a écrit :
> Hello,
> 
> I have a QGraphicsScene (Qt 5.6 / Windows 10) in which I am injecting
> quite a lot of items (around 10,000). After a while, the application
> freezes (i.e the main thread in which the QGraphicsScene/View resides
> is not responding anymore).
> 
> After much digging, my conclusion is that the scene is never returning
> from a private slot, namely _q_processDirtyItems(). The last events
> processed by the main thread are:
> 
> Metacall: "_q_processDirtyItems()"
> processing event QEvent::Type(MetaCall) 0x1554
> event in view QEvent::Type(Paint)
> event in view ok 0x1554
> And here I normally have a qWarning() saying that the metacall has
> returned, which I never get, so I believe it enters in an infinite
> loop somewhere.
> 
> At that point of the application no items were ever deleted, just 
> added.
> 
> I had a look at qt sources but couldn't find anything relevant to my 
> case.
> 
> I am sure I do not update/manipulate/etc any items or QGraphicsScene
> related object from another thread.
> 
> Any insight that can help understanding what is going on here?
> 
> Thanks
> Philippe
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list