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

QOpenGLWidget crash when temporary fullscreen

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes