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

[Vivate EGL]: When a QOpenGLWidget is a child of a QMainWindow then it will crash on exit

    XMLWordPrintable

Details

    • Linux/Other display system

    Description

      When a QOpenGLWidget is a child of a QMainWindow then it will crash on exit with the following stack trace:

      #0 _ApiLoseCurrent (Thread=0x19822f4, Context=0x0) at 
      gc_egl_context.c:682 
      #1 0xb5987ac8 in veglMakeCurrent (Dpy=Dpy@entry=0x1a73284, 
      Draw=Draw@entry=0x0, Read=Read@entry=0x0, Ctx=Ctx@entry=0x19a2b1c) at 
      gc_egl_context.c:2115 
      #2 0xb5988140 in eglMakeCurrent (Dpy=0x1a73284, Draw=Draw@entry=0x0, 
      Read=Read@entry=0x0, Ctx=0x19a2b1c) at gc_egl_context.c:2636 
      #3 0xb519c6cc in QEGLPlatformContext::makeCurrent 
      (this=this@entry=0x19a2978, surface=0x2022990) at 
      qeglplatformcontext.cpp:399 
      #4 0xb636e260 in QOpenGLContext::makeCurrent (this=0x19a2890, 
      surface=0x1a7ce70) at kernel/qopenglcontext.cpp:986 
      #5 0xb6648a90 in QOpenGLVertexArrayObjectPrivate::destroy 
      (this=0x19a2838) at opengl/qopenglvertexarrayobject.cpp:214 
      #6 0xb6648c44 in 
      QOpenGLVertexArrayObjectPrivate::_q_contextAboutToBeDestroyed 
      (this=<optimized out>) at opengl/qopenglvertexarrayobject.cpp:260 
      #7 0xb6648c64 in QOpenGLVertexArrayObject::qt_static_metacall 
      (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, 
      _a=<optimized out>) 
      at .moc/moc_qopenglvertexarrayobject.cpp:72 
      #8 0xb5dd03cc in QMetaObject::activate (sender=0xb6e05642, 
      sender@entry=0x19a2890, signalOffset=<optimized out>, 
      local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at 
      kernel/qobject.cpp:3766 
      #9 0xb5dd07a4 in QMetaObject::activate (sender=sender@entry=0x19a2890, 
      m=m@entry=0xb636c894 <QOpenGLContext::aboutToBeDestroyed()+44>, 
      local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at 
      kernel/qobject.cpp:3628 
      #10 0xb636c894 in QOpenGLContext::aboutToBeDestroyed 
      (this=this@entry=0x19a2890) at .moc/moc_qopenglcontext.cpp:201 
      #11 0xb636fc60 in QOpenGLContext::destroy (this=this@entry=0x19a2890) at 
      kernel/qopenglcontext.cpp:647 
      #12 0xb63700fc in QOpenGLContext::~QOpenGLContext (this=0x19a2890, 
      __in_chrg=<optimized out>) at kernel/qopenglcontext.cpp:691 
      #13 0xb637017c in QOpenGLContext::~QOpenGLContext (this=0x19a2890, 
      __in_chrg=<optimized out>) at kernel/qopenglcontext.cpp:696 
      #14 0xb5dd6aa8 in QObjectPrivate::deleteChildren 
      (this=this@entry=0x197b608) at kernel/qobject.cpp:1992 
      #15 0xb5dd7f5c in QObject::~QObject (this=<optimized out>, 
      __in_chrg=<optimized out>) at kernel/qobject.cpp:1022 
      #16 0xb5da16c4 in QCoreApplication::~QCoreApplication (this=0xbe9bc790, 
      __in_chrg=<optimized out>) at kernel/qcoreapplication.cpp:849 
      #17 0xb631eb2c in QGuiApplication::~QGuiApplication (this=0xbe9bc790, 
      __in_chrg=<optimized out>) at kernel/qguiapplication.cpp:603 
      #18 0xb67e8f94 in QApplication::~QApplication (this=0xbe9bc790, 
      __in_chrg=<optimized out>) at kernel/qapplication.cpp:800 
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jani.launonen Jani Launonen (Inactive)
            andysh Andy Shaw
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes