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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.0 Beta 3
    • 5.9.4, 5.10.1, 5.11
    • Qt3D
    • None
    • 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

        For Gerrit Dashboard: QTBUG-66515
        # Subject Branch Project Status CR V

        Activity

          People

            seanharmer Sean Harmer
            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