[Interest] QGraphicsScene/View getting stuck
maitai
maitai at virtual-winds.org
Tue Mar 29 18:37:19 CEST 2016
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
More information about the Interest
mailing list