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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.9.4, 5.10.1, 5.11
    • Fix Version/s: 5.12.0 Beta 3
    • Component/s: Qt3D
    • Labels:
      None
    • Commits:
      3bc2e44bd387aa2185083fcf94eeee67f37380f3 (qt/qt3d/5.12)

      Description

      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.

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes