Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.7.0, 5.8.0
-
None
-
Ubuntu 14.04
Description
The following code invokes the crank() callback many tens of times per millisecond, and prevents any other content from showing in the application (e.g. the "Hi Mom!" text).
import QtQuick 2.7 import QtQuick.Window 2.2 Window { visible:true; width:100; height:100 Text { text:"Hi Mom!" } Canvas { anchors.fill:parent Component.onCompleted: crank() function crank(){ console.log(+new Date) requestAnimationFrame(crank) } } }
It appears that requestAnimationFrame() is broken and useless.
Attachments
Issue Links
- relates to
-
QTBUG-88339 Application Zoom freezes with "Polish loop detected"
- Closed
-
QTBUG-64741 qmlscene eats up all CPU (infinite loop)
- Closed
For Gerrit Dashboard: QTBUG-55778 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
184377,3 | Canvas Item: Prevent polish loop when calling requestAnimationFrame | 5.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |