==143808== Thread 7 QSGRenderThread: ==143808== Invalid read of size 4 ==143808== at 0x66C5FA6: toPassTrackerUsageState(QGles2Texture::UsageState const&) (qrhigles2.cpp:2867) ==143808== by 0x66C60DA: QRhiGles2::trackedRegisterTexture(QRhiPassResourceTracker*, QGles2Texture*, QRhiPassResourceTracker::TextureAccess, QRhiPassResourceTracker::TextureStage) (qrhigles2.cpp:2888) ==143808== by 0x66C205B: QRhiGles2::setShaderResources(QRhiCommandBuffer*, QRhiShaderResourceBindings*, int, std::pair const*) (qrhigles2.cpp:1726) ==143808== by 0x64783BE: QRhiCommandBuffer::setShaderResources(QRhiShaderResourceBindings*, int, std::pair const*) (qrhi.cpp:9271) ==143808== by 0x4C37448: QSGBatchRenderer::Renderer::setGraphicsPipeline(QRhiCommandBuffer*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, bool) (qsgbatchrenderer.cpp:3475) ==143808== by 0x4C37014: QSGBatchRenderer::Renderer::renderUnmergedBatch(QSGBatchRenderer::Renderer::PreparedRenderBatch*, bool) (qsgbatchrenderer.cpp:3422) ==143808== by 0x4C39746: QSGBatchRenderer::Renderer::recordRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3831) ==143808== by 0x4C377F6: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3529) ==143808== by 0x4C73F0C: QSGRenderer::renderScene() (qsgrenderer.cpp:143) ==143808== by 0x4CB6A7C: QSGDefaultRenderContext::renderNextFrame(QSGRenderer*) (qsgdefaultrendercontext.cpp:174) ==143808== by 0x4BCB251: QQuickWindowPrivate::renderSceneGraph() (qquickwindow.cpp:652) ==143808== by 0x4F50AEB: QSGRenderThread::syncAndRender() (qsgthreadedrenderloop.cpp:734) ==143808== Address 0x121b92f0 is 144 bytes inside a block of size 152 free'd ==143808== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66D0E3A: QGles2Texture::~QGles2Texture() (qrhigles2.cpp:5308) ==143808== by 0x1705C757: std::default_delete::operator()(QRhiTexture*) const (unique_ptr.h:85) ==143808== by 0x1705BF0B: std::unique_ptr >::~unique_ptr() (unique_ptr.h:361) ==143808== by 0x1705B752: std::array >, 3ul>::~array() (array:95) ==143808== by 0x1705A085: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:722) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== Block was alloc'd at ==143808== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66C1BB1: QRhiGles2::createTexture(QRhiTexture::Format, QSize const&, int, int, int, QFlags) (qrhigles2.cpp:1649) ==143808== by 0x6479179: QRhi::newTexture(QRhiTexture::Format, QSize const&, int, QFlags) (qrhi.cpp:10299) ==143808== by 0x170595F3: QVideoTextureHelper::updateTextureWithMap(QVideoFrame, QRhi*, QRhiResourceUpdateBatch*, int, std::unique_ptr >&) (qvideotexturehelper.cpp:604) ==143808== by 0x17059FF9: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:716) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== by 0x4C377C2: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3527) ==143808== ==143808== Invalid write of size 4 ==143808== at 0x66C6116: QRhiGles2::trackedRegisterTexture(QRhiPassResourceTracker*, QGles2Texture*, QRhiPassResourceTracker::TextureAccess, QRhiPassResourceTracker::TextureStage) (qrhigles2.cpp:2889) ==143808== by 0x66C205B: QRhiGles2::setShaderResources(QRhiCommandBuffer*, QRhiShaderResourceBindings*, int, std::pair const*) (qrhigles2.cpp:1726) ==143808== by 0x64783BE: QRhiCommandBuffer::setShaderResources(QRhiShaderResourceBindings*, int, std::pair const*) (qrhi.cpp:9271) ==143808== by 0x4C37448: QSGBatchRenderer::Renderer::setGraphicsPipeline(QRhiCommandBuffer*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, bool) (qsgbatchrenderer.cpp:3475) ==143808== by 0x4C37014: QSGBatchRenderer::Renderer::renderUnmergedBatch(QSGBatchRenderer::Renderer::PreparedRenderBatch*, bool) (qsgbatchrenderer.cpp:3422) ==143808== by 0x4C39746: QSGBatchRenderer::Renderer::recordRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3831) ==143808== by 0x4C377F6: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3529) ==143808== by 0x4C73F0C: QSGRenderer::renderScene() (qsgrenderer.cpp:143) ==143808== by 0x4CB6A7C: QSGDefaultRenderContext::renderNextFrame(QSGRenderer*) (qsgdefaultrendercontext.cpp:174) ==143808== by 0x4BCB251: QQuickWindowPrivate::renderSceneGraph() (qquickwindow.cpp:652) ==143808== by 0x4F50AEB: QSGRenderThread::syncAndRender() (qsgthreadedrenderloop.cpp:734) ==143808== by 0x4F51C89: QSGRenderThread::run() (qsgthreadedrenderloop.cpp:946) ==143808== Address 0x121b92f0 is 144 bytes inside a block of size 152 free'd ==143808== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66D0E3A: QGles2Texture::~QGles2Texture() (qrhigles2.cpp:5308) ==143808== by 0x1705C757: std::default_delete::operator()(QRhiTexture*) const (unique_ptr.h:85) ==143808== by 0x1705BF0B: std::unique_ptr >::~unique_ptr() (unique_ptr.h:361) ==143808== by 0x1705B752: std::array >, 3ul>::~array() (array:95) ==143808== by 0x1705A085: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:722) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== Block was alloc'd at ==143808== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66C1BB1: QRhiGles2::createTexture(QRhiTexture::Format, QSize const&, int, int, int, QFlags) (qrhigles2.cpp:1649) ==143808== by 0x6479179: QRhi::newTexture(QRhiTexture::Format, QSize const&, int, QFlags) (qrhi.cpp:10299) ==143808== by 0x170595F3: QVideoTextureHelper::updateTextureWithMap(QVideoFrame, QRhi*, QRhiResourceUpdateBatch*, int, std::unique_ptr >&) (qvideotexturehelper.cpp:604) ==143808== by 0x17059FF9: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:716) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== by 0x4C377C2: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3527) ==143808== ==143808== Invalid read of size 4 ==143808== at 0x66D7B2E: operator==(QGles2SamplerData const&, QGles2SamplerData const&) (qrhigles2_p.h:94) ==143808== by 0x66C9FC8: QRhiGles2::bindCombinedSampler(QGles2CommandBuffer*, QGles2Texture*, QGles2Sampler*, void*, unsigned int, int, int*, bool*) (qrhigles2.cpp:3831) ==143808== by 0x66CB81F: QRhiGles2::bindShaderResources(QGles2CommandBuffer*, QRhiGraphicsPipeline*, QRhiComputePipeline*, QRhiShaderResourceBindings*, unsigned int const*, int) (qrhigles2.cpp:4178) ==143808== by 0x66C725D: QRhiGles2::executeCommandBuffer(QRhiCommandBuffer*) (qrhigles2.cpp:3224) ==143808== by 0x66C33C2: QRhiGles2::endFrame(QRhiSwapChain*, QFlags) (qrhigles2.cpp:2114) ==143808== by 0x647954D: QRhi::endFrame(QRhiSwapChain*, QFlags) (qrhi.cpp:10514) ==143808== by 0x4F50B56: QSGRenderThread::syncAndRender() (qsgthreadedrenderloop.cpp:743) ==143808== by 0x4F51C89: QSGRenderThread::run() (qsgthreadedrenderloop.cpp:946) ==143808== by 0x74D2630: QThreadPrivate::start(void*)::{lambda()#1}::operator()() const (qthread_unix.cpp:326) ==143808== by 0x74D3894: void (anonymous namespace)::terminate_on_exception(QThreadPrivate::start(void*)::{lambda()#1}&&) (qthread_unix.cpp:262) ==143808== by 0x74D26FC: QThreadPrivate::start(void*) (qthread_unix.cpp:285) ==143808== by 0x7D75B42: start_thread (pthread_create.c:442) ==143808== Address 0x121b92d0 is 112 bytes inside a block of size 152 free'd ==143808== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66D0E3A: QGles2Texture::~QGles2Texture() (qrhigles2.cpp:5308) ==143808== by 0x1705C757: std::default_delete::operator()(QRhiTexture*) const (unique_ptr.h:85) ==143808== by 0x1705BF0B: std::unique_ptr >::~unique_ptr() (unique_ptr.h:361) ==143808== by 0x1705B752: std::array >, 3ul>::~array() (array:95) ==143808== by 0x1705A085: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:722) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== Block was alloc'd at ==143808== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66C1BB1: QRhiGles2::createTexture(QRhiTexture::Format, QSize const&, int, int, int, QFlags) (qrhigles2.cpp:1649) ==143808== by 0x6479179: QRhi::newTexture(QRhiTexture::Format, QSize const&, int, QFlags) (qrhi.cpp:10299) ==143808== by 0x170595F3: QVideoTextureHelper::updateTextureWithMap(QVideoFrame, QRhi*, QRhiResourceUpdateBatch*, int, std::unique_ptr >&) (qvideotexturehelper.cpp:604) ==143808== by 0x17059FF9: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:716) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== by 0x4C377C2: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3527) ==143808== ==143808== Invalid read of size 4 ==143808== at 0x66D7B3E: operator==(QGles2SamplerData const&, QGles2SamplerData const&) (qrhigles2_p.h:95) ==143808== by 0x66C9FC8: QRhiGles2::bindCombinedSampler(QGles2CommandBuffer*, QGles2Texture*, QGles2Sampler*, void*, unsigned int, int, int*, bool*) (qrhigles2.cpp:3831) ==143808== by 0x66CB81F: QRhiGles2::bindShaderResources(QGles2CommandBuffer*, QRhiGraphicsPipeline*, QRhiComputePipeline*, QRhiShaderResourceBindings*, unsigned int const*, int) (qrhigles2.cpp:4178) ==143808== by 0x66C725D: QRhiGles2::executeCommandBuffer(QRhiCommandBuffer*) (qrhigles2.cpp:3224) ==143808== by 0x66C33C2: QRhiGles2::endFrame(QRhiSwapChain*, QFlags) (qrhigles2.cpp:2114) ==143808== by 0x647954D: QRhi::endFrame(QRhiSwapChain*, QFlags) (qrhi.cpp:10514) ==143808== by 0x4F50B56: QSGRenderThread::syncAndRender() (qsgthreadedrenderloop.cpp:743) ==143808== by 0x4F51C89: QSGRenderThread::run() (qsgthreadedrenderloop.cpp:946) ==143808== by 0x74D2630: QThreadPrivate::start(void*)::{lambda()#1}::operator()() const (qthread_unix.cpp:326) ==143808== by 0x74D3894: void (anonymous namespace)::terminate_on_exception(QThreadPrivate::start(void*)::{lambda()#1}&&) (qthread_unix.cpp:262) ==143808== by 0x74D26FC: QThreadPrivate::start(void*) (qthread_unix.cpp:285) ==143808== by 0x7D75B42: start_thread (pthread_create.c:442) ==143808== Address 0x121b92d4 is 116 bytes inside a block of size 152 free'd ==143808== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66D0E3A: QGles2Texture::~QGles2Texture() (qrhigles2.cpp:5308) ==143808== by 0x1705C757: std::default_delete::operator()(QRhiTexture*) const (unique_ptr.h:85) ==143808== by 0x1705BF0B: std::unique_ptr >::~unique_ptr() (unique_ptr.h:361) ==143808== by 0x1705B752: std::array >, 3ul>::~array() (array:95) ==143808== by 0x1705A085: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:722) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== Block was alloc'd at ==143808== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66C1BB1: QRhiGles2::createTexture(QRhiTexture::Format, QSize const&, int, int, int, QFlags) (qrhigles2.cpp:1649) ==143808== by 0x6479179: QRhi::newTexture(QRhiTexture::Format, QSize const&, int, QFlags) (qrhi.cpp:10299) ==143808== by 0x170595F3: QVideoTextureHelper::updateTextureWithMap(QVideoFrame, QRhi*, QRhiResourceUpdateBatch*, int, std::unique_ptr >&) (qvideotexturehelper.cpp:604) ==143808== by 0x17059FF9: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:716) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== by 0x4C377C2: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3527) ==143808== ==143808== Invalid read of size 4 ==143808== at 0x66D7B50: operator==(QGles2SamplerData const&, QGles2SamplerData const&) (qrhigles2_p.h:96) ==143808== by 0x66C9FC8: QRhiGles2::bindCombinedSampler(QGles2CommandBuffer*, QGles2Texture*, QGles2Sampler*, void*, unsigned int, int, int*, bool*) (qrhigles2.cpp:3831) ==143808== by 0x66CB81F: QRhiGles2::bindShaderResources(QGles2CommandBuffer*, QRhiGraphicsPipeline*, QRhiComputePipeline*, QRhiShaderResourceBindings*, unsigned int const*, int) (qrhigles2.cpp:4178) ==143808== by 0x66C725D: QRhiGles2::executeCommandBuffer(QRhiCommandBuffer*) (qrhigles2.cpp:3224) ==143808== by 0x66C33C2: QRhiGles2::endFrame(QRhiSwapChain*, QFlags) (qrhigles2.cpp:2114) ==143808== by 0x647954D: QRhi::endFrame(QRhiSwapChain*, QFlags) (qrhi.cpp:10514) ==143808== by 0x4F50B56: QSGRenderThread::syncAndRender() (qsgthreadedrenderloop.cpp:743) ==143808== by 0x4F51C89: QSGRenderThread::run() (qsgthreadedrenderloop.cpp:946) ==143808== by 0x74D2630: QThreadPrivate::start(void*)::{lambda()#1}::operator()() const (qthread_unix.cpp:326) ==143808== by 0x74D3894: void (anonymous namespace)::terminate_on_exception(QThreadPrivate::start(void*)::{lambda()#1}&&) (qthread_unix.cpp:262) ==143808== by 0x74D26FC: QThreadPrivate::start(void*) (qthread_unix.cpp:285) ==143808== by 0x7D75B42: start_thread (pthread_create.c:442) ==143808== Address 0x121b92d8 is 120 bytes inside a block of size 152 free'd ==143808== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66D0E3A: QGles2Texture::~QGles2Texture() (qrhigles2.cpp:5308) ==143808== by 0x1705C757: std::default_delete::operator()(QRhiTexture*) const (unique_ptr.h:85) ==143808== by 0x1705BF0B: std::unique_ptr >::~unique_ptr() (unique_ptr.h:361) ==143808== by 0x1705B752: std::array >, 3ul>::~array() (array:95) ==143808== by 0x1705A085: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:722) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== Block was alloc'd at ==143808== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66C1BB1: QRhiGles2::createTexture(QRhiTexture::Format, QSize const&, int, int, int, QFlags) (qrhigles2.cpp:1649) ==143808== by 0x6479179: QRhi::newTexture(QRhiTexture::Format, QSize const&, int, QFlags) (qrhi.cpp:10299) ==143808== by 0x170595F3: QVideoTextureHelper::updateTextureWithMap(QVideoFrame, QRhi*, QRhiResourceUpdateBatch*, int, std::unique_ptr >&) (qvideotexturehelper.cpp:604) ==143808== by 0x17059FF9: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:716) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== by 0x4C377C2: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3527) ==143808== ==143808== Invalid read of size 4 ==143808== at 0x66D7B62: operator==(QGles2SamplerData const&, QGles2SamplerData const&) (qrhigles2_p.h:97) ==143808== by 0x66C9FC8: QRhiGles2::bindCombinedSampler(QGles2CommandBuffer*, QGles2Texture*, QGles2Sampler*, void*, unsigned int, int, int*, bool*) (qrhigles2.cpp:3831) ==143808== by 0x66CB81F: QRhiGles2::bindShaderResources(QGles2CommandBuffer*, QRhiGraphicsPipeline*, QRhiComputePipeline*, QRhiShaderResourceBindings*, unsigned int const*, int) (qrhigles2.cpp:4178) ==143808== by 0x66C725D: QRhiGles2::executeCommandBuffer(QRhiCommandBuffer*) (qrhigles2.cpp:3224) ==143808== by 0x66C33C2: QRhiGles2::endFrame(QRhiSwapChain*, QFlags) (qrhigles2.cpp:2114) ==143808== by 0x647954D: QRhi::endFrame(QRhiSwapChain*, QFlags) (qrhi.cpp:10514) ==143808== by 0x4F50B56: QSGRenderThread::syncAndRender() (qsgthreadedrenderloop.cpp:743) ==143808== by 0x4F51C89: QSGRenderThread::run() (qsgthreadedrenderloop.cpp:946) ==143808== by 0x74D2630: QThreadPrivate::start(void*)::{lambda()#1}::operator()() const (qthread_unix.cpp:326) ==143808== by 0x74D3894: void (anonymous namespace)::terminate_on_exception(QThreadPrivate::start(void*)::{lambda()#1}&&) (qthread_unix.cpp:262) ==143808== by 0x74D26FC: QThreadPrivate::start(void*) (qthread_unix.cpp:285) ==143808== by 0x7D75B42: start_thread (pthread_create.c:442) ==143808== Address 0x121b92dc is 124 bytes inside a block of size 152 free'd ==143808== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66D0E3A: QGles2Texture::~QGles2Texture() (qrhigles2.cpp:5308) ==143808== by 0x1705C757: std::default_delete::operator()(QRhiTexture*) const (unique_ptr.h:85) ==143808== by 0x1705BF0B: std::unique_ptr >::~unique_ptr() (unique_ptr.h:361) ==143808== by 0x1705B752: std::array >, 3ul>::~array() (array:95) ==143808== by 0x1705A085: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:722) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== Block was alloc'd at ==143808== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66C1BB1: QRhiGles2::createTexture(QRhiTexture::Format, QSize const&, int, int, int, QFlags) (qrhigles2.cpp:1649) ==143808== by 0x6479179: QRhi::newTexture(QRhiTexture::Format, QSize const&, int, QFlags) (qrhi.cpp:10299) ==143808== by 0x170595F3: QVideoTextureHelper::updateTextureWithMap(QVideoFrame, QRhi*, QRhiResourceUpdateBatch*, int, std::unique_ptr >&) (qvideotexturehelper.cpp:604) ==143808== by 0x17059FF9: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:716) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== by 0x4C377C2: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3527) ==143808== ==143808== Invalid read of size 4 ==143808== at 0x66D7B74: operator==(QGles2SamplerData const&, QGles2SamplerData const&) (qrhigles2_p.h:98) ==143808== by 0x66C9FC8: QRhiGles2::bindCombinedSampler(QGles2CommandBuffer*, QGles2Texture*, QGles2Sampler*, void*, unsigned int, int, int*, bool*) (qrhigles2.cpp:3831) ==143808== by 0x66CB81F: QRhiGles2::bindShaderResources(QGles2CommandBuffer*, QRhiGraphicsPipeline*, QRhiComputePipeline*, QRhiShaderResourceBindings*, unsigned int const*, int) (qrhigles2.cpp:4178) ==143808== by 0x66C725D: QRhiGles2::executeCommandBuffer(QRhiCommandBuffer*) (qrhigles2.cpp:3224) ==143808== by 0x66C33C2: QRhiGles2::endFrame(QRhiSwapChain*, QFlags) (qrhigles2.cpp:2114) ==143808== by 0x647954D: QRhi::endFrame(QRhiSwapChain*, QFlags) (qrhi.cpp:10514) ==143808== by 0x4F50B56: QSGRenderThread::syncAndRender() (qsgthreadedrenderloop.cpp:743) ==143808== by 0x4F51C89: QSGRenderThread::run() (qsgthreadedrenderloop.cpp:946) ==143808== by 0x74D2630: QThreadPrivate::start(void*)::{lambda()#1}::operator()() const (qthread_unix.cpp:326) ==143808== by 0x74D3894: void (anonymous namespace)::terminate_on_exception(QThreadPrivate::start(void*)::{lambda()#1}&&) (qthread_unix.cpp:262) ==143808== by 0x74D26FC: QThreadPrivate::start(void*) (qthread_unix.cpp:285) ==143808== by 0x7D75B42: start_thread (pthread_create.c:442) ==143808== Address 0x121b92e0 is 128 bytes inside a block of size 152 free'd ==143808== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66D0E3A: QGles2Texture::~QGles2Texture() (qrhigles2.cpp:5308) ==143808== by 0x1705C757: std::default_delete::operator()(QRhiTexture*) const (unique_ptr.h:85) ==143808== by 0x1705BF0B: std::unique_ptr >::~unique_ptr() (unique_ptr.h:361) ==143808== by 0x1705B752: std::array >, 3ul>::~array() (array:95) ==143808== by 0x1705A085: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:722) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== Block was alloc'd at ==143808== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66C1BB1: QRhiGles2::createTexture(QRhiTexture::Format, QSize const&, int, int, int, QFlags) (qrhigles2.cpp:1649) ==143808== by 0x6479179: QRhi::newTexture(QRhiTexture::Format, QSize const&, int, QFlags) (qrhi.cpp:10299) ==143808== by 0x170595F3: QVideoTextureHelper::updateTextureWithMap(QVideoFrame, QRhi*, QRhiResourceUpdateBatch*, int, std::unique_ptr >&) (qvideotexturehelper.cpp:604) ==143808== by 0x17059FF9: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:716) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== by 0x4C377C2: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3527) ==143808== ==143808== Invalid read of size 4 ==143808== at 0x66D7B86: operator==(QGles2SamplerData const&, QGles2SamplerData const&) (qrhigles2_p.h:99) ==143808== by 0x66C9FC8: QRhiGles2::bindCombinedSampler(QGles2CommandBuffer*, QGles2Texture*, QGles2Sampler*, void*, unsigned int, int, int*, bool*) (qrhigles2.cpp:3831) ==143808== by 0x66CB81F: QRhiGles2::bindShaderResources(QGles2CommandBuffer*, QRhiGraphicsPipeline*, QRhiComputePipeline*, QRhiShaderResourceBindings*, unsigned int const*, int) (qrhigles2.cpp:4178) ==143808== by 0x66C725D: QRhiGles2::executeCommandBuffer(QRhiCommandBuffer*) (qrhigles2.cpp:3224) ==143808== by 0x66C33C2: QRhiGles2::endFrame(QRhiSwapChain*, QFlags) (qrhigles2.cpp:2114) ==143808== by 0x647954D: QRhi::endFrame(QRhiSwapChain*, QFlags) (qrhi.cpp:10514) ==143808== by 0x4F50B56: QSGRenderThread::syncAndRender() (qsgthreadedrenderloop.cpp:743) ==143808== by 0x4F51C89: QSGRenderThread::run() (qsgthreadedrenderloop.cpp:946) ==143808== by 0x74D2630: QThreadPrivate::start(void*)::{lambda()#1}::operator()() const (qthread_unix.cpp:326) ==143808== by 0x74D3894: void (anonymous namespace)::terminate_on_exception(QThreadPrivate::start(void*)::{lambda()#1}&&) (qthread_unix.cpp:262) ==143808== by 0x74D26FC: QThreadPrivate::start(void*) (qthread_unix.cpp:285) ==143808== by 0x7D75B42: start_thread (pthread_create.c:442) ==143808== Address 0x121b92e4 is 132 bytes inside a block of size 152 free'd ==143808== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66D0E3A: QGles2Texture::~QGles2Texture() (qrhigles2.cpp:5308) ==143808== by 0x1705C757: std::default_delete::operator()(QRhiTexture*) const (unique_ptr.h:85) ==143808== by 0x1705BF0B: std::unique_ptr >::~unique_ptr() (unique_ptr.h:361) ==143808== by 0x1705B752: std::array >, 3ul>::~array() (array:95) ==143808== by 0x1705A085: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:722) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== Block was alloc'd at ==143808== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66C1BB1: QRhiGles2::createTexture(QRhiTexture::Format, QSize const&, int, int, int, QFlags) (qrhigles2.cpp:1649) ==143808== by 0x6479179: QRhi::newTexture(QRhiTexture::Format, QSize const&, int, QFlags) (qrhi.cpp:10299) ==143808== by 0x170595F3: QVideoTextureHelper::updateTextureWithMap(QVideoFrame, QRhi*, QRhiResourceUpdateBatch*, int, std::unique_ptr >&) (qvideotexturehelper.cpp:604) ==143808== by 0x17059FF9: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:716) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== by 0x4C377C2: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3527) ==143808== ==143808== Invalid read of size 4 ==143808== at 0x66CA0A3: QRhiGles2::bindCombinedSampler(QGles2CommandBuffer*, QGles2Texture*, QGles2Sampler*, void*, unsigned int, int, int*, bool*) (qrhigles2.cpp:3852) ==143808== by 0x66CB81F: QRhiGles2::bindShaderResources(QGles2CommandBuffer*, QRhiGraphicsPipeline*, QRhiComputePipeline*, QRhiShaderResourceBindings*, unsigned int const*, int) (qrhigles2.cpp:4178) ==143808== by 0x66C725D: QRhiGles2::executeCommandBuffer(QRhiCommandBuffer*) (qrhigles2.cpp:3224) ==143808== by 0x66C33C2: QRhiGles2::endFrame(QRhiSwapChain*, QFlags) (qrhigles2.cpp:2114) ==143808== by 0x647954D: QRhi::endFrame(QRhiSwapChain*, QFlags) (qrhi.cpp:10514) ==143808== by 0x4F50B56: QSGRenderThread::syncAndRender() (qsgthreadedrenderloop.cpp:743) ==143808== by 0x4F51C89: QSGRenderThread::run() (qsgthreadedrenderloop.cpp:946) ==143808== by 0x74D2630: QThreadPrivate::start(void*)::{lambda()#1}::operator()() const (qthread_unix.cpp:326) ==143808== by 0x74D3894: void (anonymous namespace)::terminate_on_exception(QThreadPrivate::start(void*)::{lambda()#1}&&) (qthread_unix.cpp:262) ==143808== by 0x74D26FC: QThreadPrivate::start(void*) (qthread_unix.cpp:285) ==143808== by 0x7D75B42: start_thread (pthread_create.c:442) ==143808== by 0x7E06BB3: clone (clone.S:100) ==143808== Address 0x121b92b4 is 84 bytes inside a block of size 152 free'd ==143808== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66D0E3A: QGles2Texture::~QGles2Texture() (qrhigles2.cpp:5308) ==143808== by 0x1705C757: std::default_delete::operator()(QRhiTexture*) const (unique_ptr.h:85) ==143808== by 0x1705BF0B: std::unique_ptr >::~unique_ptr() (unique_ptr.h:361) ==143808== by 0x1705B752: std::array >, 3ul>::~array() (array:95) ==143808== by 0x1705A085: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:722) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== Block was alloc'd at ==143808== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66C1BB1: QRhiGles2::createTexture(QRhiTexture::Format, QSize const&, int, int, int, QFlags) (qrhigles2.cpp:1649) ==143808== by 0x6479179: QRhi::newTexture(QRhiTexture::Format, QSize const&, int, QFlags) (qrhi.cpp:10299) ==143808== by 0x170595F3: QVideoTextureHelper::updateTextureWithMap(QVideoFrame, QRhi*, QRhiResourceUpdateBatch*, int, std::unique_ptr >&) (qvideotexturehelper.cpp:604) ==143808== by 0x17059FF9: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:716) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== by 0x4C377C2: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3527) ==143808== ==143808== Invalid read of size 4 ==143808== at 0x66CA0AA: QRhiGles2::bindCombinedSampler(QGles2CommandBuffer*, QGles2Texture*, QGles2Sampler*, void*, unsigned int, int, int*, bool*) (qrhigles2.cpp:3852) ==143808== by 0x66CB81F: QRhiGles2::bindShaderResources(QGles2CommandBuffer*, QRhiGraphicsPipeline*, QRhiComputePipeline*, QRhiShaderResourceBindings*, unsigned int const*, int) (qrhigles2.cpp:4178) ==143808== by 0x66C725D: QRhiGles2::executeCommandBuffer(QRhiCommandBuffer*) (qrhigles2.cpp:3224) ==143808== by 0x66C33C2: QRhiGles2::endFrame(QRhiSwapChain*, QFlags) (qrhigles2.cpp:2114) ==143808== by 0x647954D: QRhi::endFrame(QRhiSwapChain*, QFlags) (qrhi.cpp:10514) ==143808== by 0x4F50B56: QSGRenderThread::syncAndRender() (qsgthreadedrenderloop.cpp:743) ==143808== by 0x4F51C89: QSGRenderThread::run() (qsgthreadedrenderloop.cpp:946) ==143808== by 0x74D2630: QThreadPrivate::start(void*)::{lambda()#1}::operator()() const (qthread_unix.cpp:326) ==143808== by 0x74D3894: void (anonymous namespace)::terminate_on_exception(QThreadPrivate::start(void*)::{lambda()#1}&&) (qthread_unix.cpp:262) ==143808== by 0x74D26FC: QThreadPrivate::start(void*) (qthread_unix.cpp:285) ==143808== by 0x7D75B42: start_thread (pthread_create.c:442) ==143808== by 0x7E06BB3: clone (clone.S:100) ==143808== Address 0x121b92bc is 92 bytes inside a block of size 152 free'd ==143808== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66D0E3A: QGles2Texture::~QGles2Texture() (qrhigles2.cpp:5308) ==143808== by 0x1705C757: std::default_delete::operator()(QRhiTexture*) const (unique_ptr.h:85) ==143808== by 0x1705BF0B: std::unique_ptr >::~unique_ptr() (unique_ptr.h:361) ==143808== by 0x1705B752: std::array >, 3ul>::~array() (array:95) ==143808== by 0x1705A085: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:722) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== Block was alloc'd at ==143808== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66C1BB1: QRhiGles2::createTexture(QRhiTexture::Format, QSize const&, int, int, int, QFlags) (qrhigles2.cpp:1649) ==143808== by 0x6479179: QRhi::newTexture(QRhiTexture::Format, QSize const&, int, QFlags) (qrhi.cpp:10299) ==143808== by 0x170595F3: QVideoTextureHelper::updateTextureWithMap(QVideoFrame, QRhi*, QRhiResourceUpdateBatch*, int, std::unique_ptr >&) (qvideotexturehelper.cpp:604) ==143808== by 0x17059FF9: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:716) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== by 0x4C377C2: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3527) ==143808== ==143808== Invalid read of size 4 ==143808== at 0x66CA12A: QRhiGles2::bindCombinedSampler(QGles2CommandBuffer*, QGles2Texture*, QGles2Sampler*, void*, unsigned int, int, int*, bool*) (qrhigles2.cpp:3857) ==143808== by 0x66CB81F: QRhiGles2::bindShaderResources(QGles2CommandBuffer*, QRhiGraphicsPipeline*, QRhiComputePipeline*, QRhiShaderResourceBindings*, unsigned int const*, int) (qrhigles2.cpp:4178) ==143808== by 0x66C725D: QRhiGles2::executeCommandBuffer(QRhiCommandBuffer*) (qrhigles2.cpp:3224) ==143808== by 0x66C33C2: QRhiGles2::endFrame(QRhiSwapChain*, QFlags) (qrhigles2.cpp:2114) ==143808== by 0x647954D: QRhi::endFrame(QRhiSwapChain*, QFlags) (qrhi.cpp:10514) ==143808== by 0x4F50B56: QSGRenderThread::syncAndRender() (qsgthreadedrenderloop.cpp:743) ==143808== by 0x4F51C89: QSGRenderThread::run() (qsgthreadedrenderloop.cpp:946) ==143808== by 0x74D2630: QThreadPrivate::start(void*)::{lambda()#1}::operator()() const (qthread_unix.cpp:326) ==143808== by 0x74D3894: void (anonymous namespace)::terminate_on_exception(QThreadPrivate::start(void*)::{lambda()#1}&&) (qthread_unix.cpp:262) ==143808== by 0x74D26FC: QThreadPrivate::start(void*) (qthread_unix.cpp:285) ==143808== by 0x7D75B42: start_thread (pthread_create.c:442) ==143808== by 0x7E06BB3: clone (clone.S:100) ==143808== Address 0x121b92b4 is 84 bytes inside a block of size 152 free'd ==143808== at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66D0E3A: QGles2Texture::~QGles2Texture() (qrhigles2.cpp:5308) ==143808== by 0x1705C757: std::default_delete::operator()(QRhiTexture*) const (unique_ptr.h:85) ==143808== by 0x1705BF0B: std::unique_ptr >::~unique_ptr() (unique_ptr.h:361) ==143808== by 0x1705B752: std::array >, 3ul>::~array() (array:95) ==143808== by 0x1705A085: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:722) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== Block was alloc'd at ==143808== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==143808== by 0x66C1BB1: QRhiGles2::createTexture(QRhiTexture::Format, QSize const&, int, int, int, QFlags) (qrhigles2.cpp:1649) ==143808== by 0x6479179: QRhi::newTexture(QRhiTexture::Format, QSize const&, int, QFlags) (qrhi.cpp:10299) ==143808== by 0x170595F3: QVideoTextureHelper::updateTextureWithMap(QVideoFrame, QRhi*, QRhiResourceUpdateBatch*, int, std::unique_ptr >&) (qvideotexturehelper.cpp:604) ==143808== by 0x17059FF9: QVideoTextureHelper::createTexturesFromMemory(QVideoFrame const&, QRhi*, QRhiResourceUpdateBatch*, QVideoFrameTextures*) (qvideotexturehelper.cpp:716) ==143808== by 0x1705A1EB: QVideoTextureHelper::createTextures(QVideoFrame&, QRhi*, QRhiResourceUpdateBatch*, std::unique_ptr >&&) (qvideotexturehelper.cpp:736) ==143808== by 0x16EE3A09: QSGVideoMaterial::updateTextures(QRhi*, QRhiResourceUpdateBatch*) (qsgvideonode_p.cpp:129) ==143808== by 0x16EE3C37: QSGVideoMaterialRhiShader::updateUniformData(QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) (qsgvideonode_p.cpp:158) ==143808== by 0x4C33790: QSGBatchRenderer::Renderer::updateMaterialDynamicData(QSGBatchRenderer::ShaderManagerShader*, QSGMaterialShader::RenderState&, QSGMaterial*, QSGBatchRenderer::Batch const*, QSGBatchRenderer::Element*, int, int) (qsgbatchrenderer.cpp:2837) ==143808== by 0x4C36966: QSGBatchRenderer::Renderer::prepareRenderUnmergedBatch(QSGBatchRenderer::Batch*, QSGBatchRenderer::Renderer::PreparedRenderBatch*) (qsgbatchrenderer.cpp:3339) ==143808== by 0x4C391DB: QSGBatchRenderer::Renderer::prepareRenderPass(QSGBatchRenderer::Renderer::RenderPassContext*) (qsgbatchrenderer.cpp:3738) ==143808== by 0x4C377C2: QSGBatchRenderer::Renderer::render() (qsgbatchrenderer.cpp:3527) ==143808==