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

QOpenGLWidget crash when temporary fullscreen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P1: Critical P1: Critical
    • None
    • 5.9.1
    • GUI: OpenGL
    • None
    • CentOS 7
    • Linux/X11

      Hi,

       

      When taking a QOpenGLWidget fullscreen by removing its parent and calling `showFullScreen` and then trying to re-attach it, I experience a crash (and the stack indicates it happens in Qt event handling, valgrind does not show any warning).

       

      It seems the event (either keyboard or context menu) is sent to the QWindow that is deleted by re-attaching the QOpenGLWidget to the main window.

       

      I managed to work around the bug by using a Qt::QueuedConnection, but I am afraid this work only because the events have time to get handled and the error may occur again.

       

      Please see the attached reproducer.

        1. MainWindow.cpp
          1 kB
        2. MainWindow.h
          0.5 kB
        3. main.cpp
          0.2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lagocs Laszlo Agocs
            charleshuet Charles Huet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes