Crash in app during render after a long time. QQuickRenderControl
-
I have an application which is of the same architecture as in
https://doc.qt.io/qt-6/qtquick-rendercontrol-rendercontrol-opengl-example.htmlThink 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 belowgdb) 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