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

GraphicsContext::readFramebuffer calls Q_UNREACHABLE if an unsupported format is used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.12.0 Beta 3
    • 5.9.4, 5.10.1, 5.11
    • Qt3D
    • None
    • 3bc2e44bd387aa2185083fcf94eeee67f37380f3 (qt/qt3d/5.12)

      A texture may easily be set to one of the unsupported formats even though a RenderCapture is part of the frame graph. When GraphicsContext::readFramebuffer calls Q_UNREACHABLE, this leads to undefined behavior, which on my machine means the program just hangs in the render thread.

      We should rather return an empty image and print a warning in these cases.

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

            seanharmer Sean Harmer
            dragly Svenn-Arne Dragly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes