Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-86564

SIGSEGV due to attempt to access nullptr in QSGBatchRenderer constructor

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/Yocto

      Description

      Stack trace:

      #8  <signal handler called>
      #9  QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator-> (this=<optimized out>) 
      #10 qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > > (ptr=...) 
      #11 QOpenGLContext::d_func (this=<optimized out>) 
      #12 QOpenGLContext::form
      #13 0x0000007f7c0dcc5c in QSGBatchRenderer::Renderer::Renderer (this=0x7f38009bc0, ctx=0x559c0fe4c0) 
      #14 0x0000007f7c10a294 in QSGDefaultRenderContext::createRenderer (this=0x559c0fe4c0) 
      #15 0x0000007f7c16cfa8 in QQuickWindowPrivate::syncSceneGraph (this=this@entry=0x559c0fdc50) 
      #16 0x0000007f7c1151c8 in QSGRenderThread::sync (this=this@entry=0x559bfb2570, inExpose=inExpose@entry=true) 
      #17 0x0000007f7c1164c8 in QSGRenderThread::syncAndRender (this=this@entry=0x559bfb2570) 
      #18 0x0000007f7c119778 in QSGRenderThread::run (this=0x559bfb2570) 
      #19 0x0000007f7acf217c in QThreadPrivate::start (arg=0x559bfb2570) 
      #20 0x0000007f7ac080e0 in start_thread (arg=0x7f7ac2f000 <__pthread_keys+16328>) 
      #21 0x0000007f7a98dda8 in thread_start ()  

      Code below leads to SIGSEGV in case m_gl of QSGDefaultRenderContext is null:

       if (m_context->openglContext()->format().profile() == QSurfaceFormat::CoreProfile) {        m_vao = new QOpenGLVertexArrayObject(this);        m_vao->create();    }

      It is unfortunately not possible to provide steps or minimalistic code sample

        Attachments

        1. Selection_073.png
          Selection_073.png
          348 kB
        2. Selection_074.png
          Selection_074.png
          160 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.graphics.and.multimedia Qt Graphics Team Oslo
            Reporter:
            dredko Dmytro Redko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes