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

*Panic Report* When using QOpenGLWidget in QDockWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.11.3, 5.12.1
    • 5.10.1, 5.11.2
    • GUI: OpenGL
    • None
    • MacOS Mojave, Mac mini 2014, Macbook Pro 2014, all QT versions
    • macOS

    Description

      After upgrading to MacOS Mojave, operation system always crash (death screen) when I move QDockWidget that contains QOpenGLWidget. QDockWidget without QOpenGLWidget works well.

      System crash is not dependent to Qt version, but it is dependent to Macs and operation systems:

      affected

      • Macmini (Late 2014) Processor 2.6GHz Intel Core i5, Memory 8GB 1600 MHz DDR3, Graphics Intel Iris 1536 MB, Operation system MacOS Mojave 10.14.1, Xcode 10.0, Qt 5.11.2 and Qt 5.10.1
      • Macbook Pro (Retina, 13-inch, Mid 2014), Processor 2.6GHz Intel Core i5, Memory 8GB 1600 MHz DDR3, Graphics Intel Iris 1536 MB, Operation system MacOS Mojave 10.14.1, Xcode 10.1, Qt 5.11.2

      not affected

      • Macbook Air (13-inch, Mid 2012), Processor 1.8 GHz Intel Core i5, Memory 4 GB 1600 MHz DDR3, Graphics Intel HD Graphics 4000 1536 MB, Operation system MacOS Mojave 10.14.1, Xcode 10.1, Qt 5.11.2

       

      I created minimal example to reproduce this issue ( look glwidget-dockwidget-panic.zip )

       

      Temporary solution:

      I spend 2 days to find temporary solution, that is based on re-creation QOpenGLWidget with delay after called docking changed event (look glwidget-dckwidget-fixed.zip ). This solution work well (without any crash), I'm using it in large project with many dockwidgets that contains many OpenGL contents (10-15 dockwidgets with 5-10 opengl widgets).

       

      Attachments

        1. Death screen.png
          Death screen.png
          103 kB
        2. glwidget-dockwidget-fixed.zip
          5 kB
        3. glwidget-dockwidget-panic.zip
          2 kB
        4. image-2018-11-15-20-15-25-267.png
          image-2018-11-15-20-15-25-267.png
          489 kB
        5. minimal example.png
          minimal example.png
          16 kB
        6. panic_video.mp4
          5.49 MB

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              dubovsky Marek Dubovsky
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes