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

A system limitation issue regarding the maximum allowed size of a Window on macOS.

    XMLWordPrintable

Details

    • macOS

    Description

      When setting the dimensions of the window to a value greater than 16384 on macOS, it triggers the following error:

      2024-01-26 18:46:44.227 appTestApplication2[98280:9111095] CAMetalLayer ignoring invalid setDrawableSize width=38400.000000 height=38400.000000
      -[MTLTextureDescriptorInternal validateWithDevice:]:1357: failed assertion `Texture Descriptor Validation
      MTLTextureDescriptor has width (38400) greater than the maximum allowed size of 16384.
      MTLTextureDescriptor has height (38400) greater than the maximum allowed size of 16384.

      The page 8 of the pdf below indicates that it's system limitation issue:

      https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf

      To reproduce the issue, you just need to run the following code example:

      import QtQuick
      import QtQuick.Window
      
      Window
      
      {   width: 19200   height: 10847   visible: true   title: width }
      

      Note: you might need to run it multiple times.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mahdi.belila Mehdi Belila
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes