Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to disable logs while running QML application



  • I'm running a qml application on ti jacintos j6+ while the application is running it is generating continous logs which are affecting the speed of the speed transitions in the application so i need to disable them but i'm not able to do that can someone help me ?
    here are the logs

    qt.scenegraph.renderloop: (RT) sceneGraphChanged
    qt.quick.dirty: QSGNode: QQuickImage(0x207c78, parent=0x1e8f28, geometry=-1280,0 1280x800) ChildrenStackingChanged|Visible
    qt.scenegraph.renderloop: (RT) - sync complete, waking Gui
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.renderer: time in renderer: total=1ms, preprocess=0, updates=0, binding=0, rendering=1
    qt.scenegraph.renderloop: - unlock after sync
    qt.scenegraph.renderloop: - advancing animations
    qt.scenegraph.renderloop: - animations done..
    qt.scenegraph.time.renderloop: Frame prepared with 'threaded' renderloop, polish=0, lock=0, blockedForSync=6, animations=0 - (on Gui thread) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: (RT) - rendering done
    qt.scenegraph.time.renderloop: Frame rendered with 'threaded' renderloop in 11ms, sync=4, render=1, swap=5 - (on render thread)
    qt.scenegraph.renderloop: (RT) --- begin processEvents()
    qt.scenegraph.renderloop: (RT) --- done processEvents()
    qt.scenegraph.renderloop: (RT) syncAndRender()
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.renderer: time in renderer: total=0ms, preprocess=0, updates=0, binding=0, rendering=0
    qt.scenegraph.renderloop: - polish and sync update request
    qt.scenegraph.renderloop: polishAndSync (normal) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - lock for sync
    qt.scenegraph.renderloop: - wait for sync
    qt.scenegraph.renderloop: (RT) - rendering done
    qt.scenegraph.time.renderloop: Frame rendered with 'threaded' renderloop in 18ms, sync=0, render=0, swap=18 - (on render thread)
    qt.scenegraph.renderloop: (RT) --- begin processEvents()
    qt.scenegraph.renderloop: (RT) WM_RequestSync
    qt.scenegraph.renderloop: (RT) --- done processEvents()
    qt.scenegraph.renderloop: (RT) syncAndRender()
    qt.scenegraph.renderloop: (RT) - updatePending, doing sync
    qt.scenegraph.renderloop: (RT) sync()
    qt.quick.dirty: QQuickWindowPrivate::updateDirtyNodes():
    qt.scenegraph.renderloop: (RT) - sync complete, waking Gui
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: (RT) sceneGraphChanged
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - unlock after sync
    qt.scenegraph.renderloop: - advancing animations
    qt.scenegraph.renderloop: - animations done..
    qt.scenegraph.time.renderloop: Frame prepared with 'threaded' renderloop, polish=0, lock=0, blockedForSync=17, animations=0 - (on Gui thread) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: update from item QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: update from item QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.renderer: time in renderer: total=1ms, preprocess=0, updates=0, binding=0, rendering=1
    qt.scenegraph.renderloop: - polish and sync update request
    qt.scenegraph.renderloop: polishAndSync (normal) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - lock for sync
    qt.scenegraph.renderloop: - wait for sync
    qt.scenegraph.renderloop: (RT) - rendering done
    qt.scenegraph.time.renderloop: Frame rendered with 'threaded' renderloop in 17ms, sync=0, render=1, swap=16 - (on render thread)
    qt.scenegraph.renderloop: (RT) --- begin processEvents()
    qt.scenegraph.renderloop: (RT) WM_RequestSync
    qt.scenegraph.renderloop: (RT) --- done processEvents()
    qt.scenegraph.renderloop: (RT) syncAndRender()
    qt.scenegraph.renderloop: (RT) - updatePending, doing sync
    qt.scenegraph.renderloop: (RT) sync()
    qt.quick.dirty: QQuickWindowPrivate::updateDirtyNodes():
    qt.quick.dirty: QSGNode: QQuickImage(0x384660, parent=0x388470, geometry=0,0 128x128) Content
    qt.scenegraph.renderloop: (RT) sceneGraphChanged
    qt.scenegraph.renderloop: (RT) - sync complete, waking Gui
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: - unlock after sync
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - advancing animations
    qt.scenegraph.renderloop: - animations done..
    qt.scenegraph.time.renderloop: Frame prepared with 'threaded' renderloop, polish=0, lock=0, blockedForSync=11, animations=0 - (on Gui thread) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.texture: atlastexture uploaded in: 0ms (250x210)
    qt.scenegraph.time.renderer: time in renderer: total=1ms, preprocess=0, updates=0, binding=0, rendering=1
    qt.scenegraph.renderloop: - polish and sync update request
    qt.scenegraph.renderloop: polishAndSync (normal) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - lock for sync
    qt.scenegraph.renderloop: - wait for sync
    qt.scenegraph.renderloop: (RT) - rendering done
    qt.scenegraph.time.renderloop: Frame rendered with 'threaded' renderloop in 16ms, sync=0, render=2, swap=14 - (on render thread)
    qt.scenegraph.renderloop: (RT) --- begin processEvents()
    qt.scenegraph.renderloop: (RT) WM_RequestSync
    qt.scenegraph.renderloop: (RT) --- done processEvents()
    qt.scenegraph.renderloop: (RT) syncAndRender()
    qt.scenegraph.renderloop: (RT) - updatePending, doing sync
    qt.scenegraph.renderloop: (RT) sync()
    qt.quick.dirty: QQuickWindowPrivate::updateDirtyNodes():
    qt.scenegraph.renderloop: (RT) - sync complete, waking Gui
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: (RT) sceneGraphChanged
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - unlock after sync
    qt.scenegraph.renderloop: - advancing animations
    qt.scenegraph.renderloop: - animations done..
    qt.scenegraph.time.renderloop: Frame prepared with 'threaded' renderloop, polish=0, lock=0, blockedForSync=10, animations=0 - (on Gui thread) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.renderer: time in renderer: total=1ms, preprocess=0, updates=0, binding=0, rendering=1
    qt.scenegraph.renderloop: - polish and sync update request
    qt.scenegraph.renderloop: polishAndSync (normal) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - lock for sync
    qt.scenegraph.renderloop: - wait for sync
    qt.scenegraph.renderloop: (RT) - rendering done
    qt.scenegraph.time.renderloop: Frame rendered with 'threaded' renderloop in 16ms, sync=0, render=1, swap=15 - (on render thread)
    qt.scenegraph.renderloop: (RT) --- begin processEvents()
    qt.scenegraph.renderloop: (RT) WM_RequestSync
    qt.scenegraph.renderloop: (RT) --- done processEvents()
    qt.scenegraph.renderloop: (RT) syncAndRender()
    qt.scenegraph.renderloop: (RT) - updatePending, doing sync
    qt.scenegraph.renderloop: (RT) sync()
    qt.quick.dirty: QQuickWindowPrivate::updateDirtyNodes():
    qt.scenegraph.renderloop: (RT) - sync complete, waking Gui
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: (RT) sceneGraphChanged
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - unlock after sync
    qt.scenegraph.renderloop: - advancing animations
    qt.scenegraph.renderloop: - animations done..
    qt.scenegraph.time.renderloop: Frame prepared with 'threaded' renderloop, polish=0, lock=0, blockedForSync=10, animations=0 - (on Gui thread) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.renderer: time in renderer: total=1ms, preprocess=0, updates=0, binding=0, rendering=0
    qt.scenegraph.renderloop: - polish and sync update request
    qt.scenegraph.renderloop: polishAndSync (normal) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - lock for sync
    qt.scenegraph.renderloop: - wait for sync
    qt.scenegraph.renderloop: (RT) - rendering done
    qt.scenegraph.time.renderloop: Frame rendered with 'threaded' renderloop in 16ms, sync=0, render=1, swap=15 - (on render thread)
    qt.scenegraph.renderloop: (RT) --- begin processEvents()
    qt.scenegraph.renderloop: (RT) WM_RequestSync
    qt.scenegraph.renderloop: (RT) --- done processEvents()
    qt.scenegraph.renderloop: (RT) syncAndRender()
    qt.scenegraph.renderloop: (RT) - updatePending, doing sync
    qt.scenegraph.renderloop: (RT) sync()
    qt.quick.dirty: QQuickWindowPrivate::updateDirtyNodes():
    qt.scenegraph.renderloop: (RT) - sync complete, waking Gui
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: (RT) sceneGraphChanged
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - unlock after sync
    qt.scenegraph.renderloop: - advancing animations
    qt.scenegraph.renderloop: - animations done..
    qt.scenegraph.time.renderloop: Frame prepared with 'threaded' renderloop, polish=0, lock=0, blockedForSync=10, animations=0 - (on Gui thread) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.renderer: time in renderer: total=0ms, preprocess=0, updates=0, binding=0, rendering=0
    qt.scenegraph.renderloop: - polish and sync update request
    qt.scenegraph.renderloop: polishAndSync (normal) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - lock for sync
    qt.scenegraph.renderloop: - wait for sync
    qt.scenegraph.renderloop: (RT) - rendering done
    qt.scenegraph.time.renderloop: Frame rendered with 'threaded' renderloop in 16ms, sync=0, render=1, swap=15 - (on render thread)
    qt.scenegraph.renderloop: (RT) --- begin processEvents()
    qt.scenegraph.renderloop: (RT) WM_RequestSync
    qt.scenegraph.renderloop: (RT) --- done processEvents()
    qt.scenegraph.renderloop: (RT) syncAndRender()
    qt.scenegraph.renderloop: (RT) - updatePending, doing sync
    qt.scenegraph.renderloop: (RT) sync()
    qt.quick.dirty: QQuickWindowPrivate::updateDirtyNodes():
    qt.scenegraph.renderloop: (RT) - sync complete, waking Gui
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: (RT) sceneGraphChanged
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - unlock after sync
    qt.scenegraph.renderloop: - advancing animations
    qt.scenegraph.renderloop: - animations done..
    qt.scenegraph.time.renderloop: Frame prepared with 'threaded' renderloop, polish=0, lock=0, blockedForSync=10, animations=0 - (on Gui thread) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.renderer: time in renderer: total=1ms, preprocess=0, updates=0, binding=0, rendering=0
    qt.scenegraph.renderloop: - polish and sync update request
    qt.scenegraph.renderloop: polishAndSync (normal) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - lock for sync
    qt.scenegraph.renderloop: - wait for sync
    qt.scenegraph.renderloop: (RT) - rendering done
    qt.scenegraph.time.renderloop: Frame rendered with 'threaded' renderloop in 16ms, sync=0, render=1, swap=15 - (on render thread)
    qt.scenegraph.renderloop: (RT) --- begin processEvents()
    qt.scenegraph.renderloop: (RT) WM_RequestSync
    qt.scenegraph.renderloop: (RT) --- done processEvents()
    qt.scenegraph.renderloop: (RT) syncAndRender()
    qt.scenegraph.renderloop: (RT) - updatePending, doing sync
    qt.scenegraph.renderloop: (RT) sync()
    qt.quick.dirty: QQuickWindowPrivate::updateDirtyNodes():
    qt.scenegraph.renderloop: (RT) - sync complete, waking Gui
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: (RT) sceneGraphChanged
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - unlock after sync
    qt.scenegraph.renderloop: - advancing animations
    qt.scenegraph.renderloop: - animations done..
    qt.scenegraph.time.renderloop: Frame prepared with 'threaded' renderloop, polish=0, lock=0, blockedForSync=10, animations=0 - (on Gui thread) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.renderer: time in renderer: total=0ms, preprocess=0, updates=0, binding=0, rendering=0
    qt.scenegraph.renderloop: - polish and sync update request
    qt.scenegraph.renderloop: polishAndSync (normal) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - lock for sync
    qt.scenegraph.renderloop: - wait for sync
    qt.scenegraph.renderloop: (RT) - rendering done
    qt.scenegraph.time.renderloop: Frame rendered with 'threaded' renderloop in 16ms, sync=0, render=1, swap=15 - (on render thread)
    qt.scenegraph.renderloop: (RT) --- begin processEvents()
    qt.scenegraph.renderloop: (RT) WM_RequestSync
    qt.scenegraph.renderloop: (RT) --- done processEvents()
    qt.scenegraph.renderloop: (RT) syncAndRender()
    qt.scenegraph.renderloop: (RT) - updatePending, doing sync
    qt.scenegraph.renderloop: (RT) sync()
    qt.quick.dirty: QQuickWindowPrivate::updateDirtyNodes():
    qt.scenegraph.renderloop: (RT) - sync complete, waking Gui
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: (RT) sceneGraphChanged
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - unlock after sync
    qt.scenegraph.renderloop: - advancing animations
    qt.scenegraph.renderloop: - animations done..
    qt.scenegraph.time.renderloop: Frame prepared with 'threaded' renderloop, polish=0, lock=0, blockedForSync=10, animations=0 - (on Gui thread) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.renderer: time in renderer: total=1ms, preprocess=0, updates=0, binding=0, rendering=0
    qt.scenegraph.renderloop: - polish and sync update request
    qt.scenegraph.renderloop: polishAndSync (normal) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - lock for sync
    qt.scenegraph.renderloop: - wait for sync
    qt.scenegraph.renderloop: (RT) - rendering done
    qt.scenegraph.time.renderloop: Frame rendered with 'threaded' renderloop in 16ms, sync=0, render=1, swap=15 - (on render thread)
    qt.scenegraph.renderloop: (RT) --- begin processEvents()
    qt.scenegraph.renderloop: (RT) WM_RequestSync
    qt.scenegraph.renderloop: (RT) --- done processEvents()
    qt.scenegraph.renderloop: (RT) syncAndRender()
    qt.scenegraph.renderloop: (RT) - updatePending, doing sync
    qt.scenegraph.renderloop: (RT) sync()
    qt.quick.dirty: QQuickWindowPrivate::updateDirtyNodes():
    qt.scenegraph.renderloop: (RT) - sync complete, waking Gui
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: (RT) sceneGraphChanged
    qt.scenegraph.renderloop: - unlock after sync
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - advancing animations
    qt.scenegraph.renderloop: - animations done..
    qt.scenegraph.time.renderloop: Frame prepared with 'threaded' renderloop, polish=0, lock=0, blockedForSync=10, animations=0 - (on Gui thread) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.renderer: time in renderer: total=0ms, preprocess=0, updates=0, binding=0, rendering=0
    qt.scenegraph.renderloop: - polish and sync update request
    qt.scenegraph.renderloop: polishAndSync (normal) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - lock for sync
    qt.scenegraph.renderloop: - wait for sync
    qt.scenegraph.renderloop: (RT) - rendering done
    qt.scenegraph.time.renderloop: Frame rendered with 'threaded' renderloop in 16ms, sync=0, render=1, swap=15 - (on render thread)
    qt.scenegraph.renderloop: (RT) --- begin processEvents()
    qt.scenegraph.renderloop: (RT) WM_RequestSync
    qt.scenegraph.renderloop: (RT) --- done processEvents()
    qt.scenegraph.renderloop: (RT) syncAndRender()
    qt.scenegraph.renderloop: (RT) - updatePending, doing sync
    qt.scenegraph.renderloop: (RT) sync()
    qt.quick.dirty: QQuickWindowPrivate::updateDirtyNodes():
    qt.scenegraph.renderloop: (RT) - sync complete, waking Gui
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: (RT) sceneGraphChanged
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - unlock after sync
    qt.scenegraph.renderloop: - advancing animations
    qt.scenegraph.renderloop: - animations done..
    qt.scenegraph.time.renderloop: Frame prepared with 'threaded' renderloop, polish=0, lock=0, blockedForSync=10, animations=0 - (on Gui thread) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.renderer: time in renderer: total=0ms, preprocess=0, updates=0, binding=0, rendering=0
    qt.scenegraph.renderloop: - polish and sync update request
    qt.scenegraph.renderloop: polishAndSync (normal) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - lock for sync
    qt.scenegraph.renderloop: - wait for sync
    qt.scenegraph.renderloop: (RT) - rendering done
    qt.scenegraph.time.renderloop: Frame rendered with 'threaded' renderloop in 16ms, sync=0, render=1, swap=15 - (on render thread)
    qt.scenegraph.renderloop: (RT) --- begin processEvents()
    qt.scenegraph.renderloop: (RT) WM_RequestSync
    qt.scenegraph.renderloop: (RT) --- done processEvents()
    qt.scenegraph.renderloop: (RT) syncAndRender()
    qt.scenegraph.renderloop: (RT) - updatePending, doing sync
    qt.scenegraph.renderloop: (RT) sync()
    qt.quick.dirty: QQuickWindowPrivate::updateDirtyNodes():
    qt.scenegraph.renderloop: (RT) - sync complete, waking Gui
    qt.scenegraph.renderloop: (RT) - rendering started
    qt.scenegraph.renderloop: - unlock after sync
    qt.scenegraph.renderloop: (RT) sceneGraphChanged
    qt.scenegraph.renderloop: - advancing animations
    qt.scenegraph.renderloop: update on window - on render thread QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - animations done..
    qt.scenegraph.time.renderloop: Frame prepared with 'threaded' renderloop, polish=0, lock=0, blockedForSync=10, animations=0 - (on Gui thread) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.time.renderer: time in renderer: total=1ms, preprocess=0, updates=0, binding=0, rendering=1
    qt.scenegraph.renderloop: - polish and sync update request
    qt.scenegraph.renderloop: polishAndSync (normal) QQuickApplicationWindow_QML_0(0x1e2130)
    qt.scenegraph.renderloop: - lock for sync
    qt.scenegraph.renderloop: - wait for sync



  • @vamsi1992
    hi try to call

     QLoggingCategory::setFilterRules("qt.scenegraph.general=false"); 
    

    after instantiating the app



  • QLoggingCategory::setFilterRules("qt.scenegraph.general=false");

    it didn't worked



  • Hi @vamsi1992

    Try the below line in main.cpp for disabling QML logs.

    qputenv("QT_LOGGING_RULES", "qml=false");
    
    

    Do you have the below lines in your .pro file ?

       DEFINES += QT_NO_DEBUG_OUTPUT
       DEFINES += QT_NO_DEBUG
    

    All the best.



  • thanks for the reply @Pradeep-P-N the solution din't worked


  • Lifetime Qt Champion

    Hi @vamsi1992,

    Which Qt version is that?

    Regards



  • @aha_1980 its 5.9.1


Log in to reply