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

Qt Quick Live preview not working on Toradex Apalis i.MX 8 with Yocto 2.7

    XMLWordPrintable

Details

    • 6e3170b67 (dev)

    Description

      I tried the Toradex Apalis i.MX 8 with Yocto 2.7 with the Qt Quick Live Preview

      > QML Debugger: Waiting for connection on port 10001...
      > Failed to commit atomic request (code=-22

      The error message is from QKmsDevice::threadLocalAtomicCommit() in
      src/platformsupport/kmsconvenience/qkmsdevice.cpp in qtbase. It does
      something with direct rendering. Most likely the platform plugins internals
      have changed and now the window replacement code in the preview plugin
      does not work anymore.

      Defining QT_QPA_EGLFS_KMS_ATOMIC=0 does fix the crash, but rendering does not work anymore.

      How to reproduce:

      Simply use Qt Quick Live Preview with Toradex Apalis i.MX 8.
      (qt5\qtdeclarative\tools\qmlpreview)

      Using "-platform linuxfb" does not crash, but I get a black screen with the otherwise correctly running Live Preview.

      With this in the envoriment:
      QT_QPA_EGLFS_KMS_ATOMIC: "0"
      QT_QPA_EGLFS_ALWAYS_SET_MODE: "1"

      The crash also disappears. The result is the same as with linuxfb, the replacment window does not appear.
      I get this error message: Could not queue DRM page flip on screen HDMI1 (Device or resource busy).

      This seems to confirm that the window replacement code in the preview plugin does not work anymore.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            thohartm Thomas Hartmann
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes