Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Crash in app during render after a long time. QQuickRenderControl

Crash in app during render after a long time. QQuickRenderControl

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 85 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MickeyMouse1234
    wrote last edited by
    #1

    I have an application which is of the same architecture as in
    https://doc.qt.io/qt-6/qtquick-rendercontrol-rendercontrol-opengl-example.html

    Think of it as an application in which the rendering is done using QQuickRenderControl, how ever the application is bombarded with information and the drawing is done very frequently as the signals or informations comes . The crash happens as below after a long time.
    I have checked that everything is in main thread in the application.
    No thread issues.

    Also i have one more question

    m_renderControl->beginFrame();
    m_renderControl->polishItems(); ---> should this be outside beginframe? In the documention it is outside but in the sample app it is inside
    m_renderControl->sync();
    m_renderControl->render();
    m_renderControl->endFrame();

    The crash stack is given below
    

    gdb) bt
    #0 0x000000007d0d17d8 in QtPrivate::QMetaTypeInterfaceWrapper<void>::metaType ()
    from /home/worker/cMyApp/sdk/qt-qc_qualcomProcessor/lib/libQt6Core.so.6.8.3
    #1 0x000000007a6dd55c in QSGOpaqueTextureMaterialRhiShader::updateSampledImage(QSGMaterialShader::RenderState&, int, QSGTexture**, QSGMaterial*, QSGMaterial*) ()
    from /home/worker/cMyApp/sdk/qt-qc_qualcomProcessor/lib/libQt6Quick.so.6.8.3
    #2 0x000000007a63d2d0 in QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int, char*) ()
    from /home/worker/cMyApp/sdk/qt-qc_qualcomProcessor/lib/libQt6Quick.so.6.8.3
    #3 0x000000007a63ed90 in QSGBatchRenderer::Renderer::prepareRenderMergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) [clone .part.560] () from /home/worker/cMyApp/sdk/qt-qc_qualcomProcessor/lib/libQt6Quick.so.6.8.3
    #4 0x000000007a640fcc in QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) ()
    from /home/worker/cMyApp/sdk/qt-qc_qualcomProcessor/lib/libQt6Quick.so.6.8.3
    #5 0x000000007a641784 in QSGBatchRenderer::Renderer::render() ()
    from /home/worker/cMyApp/sdk/qt-qc_qualcomProcessor/lib/libQt6Quick.so.6.8.3
    #6 0x000000007a656130 in QSGRenderer::renderScene() ()
    from /home/worker/cMyApp/sdk/qt-qc_qualcomProcessor/lib/libQt6Quick.so.6.8.3
    #7 0x000000007a5fd220 in QQuickWindowPrivate::renderSceneGraph() ()
    --Type <RET> for more, q to quit, c to continue without paging--c
    from /home/worker/cMyApp/sdk/qt-qc_qualcomProcessor/lib/libQt6Quick.so.6.8.3

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved