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

QT Animation is not working on a platform which has not a phsically connected screen

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: QPA: Wayland
    • Labels:
      None
    • Platform/s:
      Linux/Wayland, Linux/Yocto

      Description

      Hello,

      I have a platform which does not have a screen connected to it and running a simple QT Quick application which has an animation running on the qml. So Animation is not running if I do not connect a screen through hdmi to my platform. If I connect a screen through hdmi animation is working great.

      So I tried to debug the issue as exporting export QT_LOGGING_RULES=qt.qpa.*=true and got the following logs when animation is not running:

      /////////////////////////////////////////////////////////////////////////////////////////////////////////
      qt.qpa.wayland: using input method: QComposeInputContext
      qt.qpa.fonts: default fonts: system QFont(Sans Serif,9,-1,5,50,0,0,0,0,0) fixed QFont(monospace,9,-1,2,50,0,0,0,0,0)
      qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
      qt.qpa.wayland: Available client buffer integrations: ("wayland-egl", "xcomposite-egl", "xcomposite-glx")
      qt.qpa.wayland: Using Wayland-EGL
      qt.qpa.wayland: Initializing client buffer integration "wayland-egl"
      qt.qpa.wayland: Using the 'xdg-shell' shell integration
      qt.qpa.wayland: sendExposeEvent: intercepted by shell extension, not sending
      function handleWindowChanged line 91
      function handleWindowChanged line 94 win QQuickWindow(0x55c37b8750, visibility=QWindow::Windowed, flags=QFlags<Qt::WindowType>(Window), geometry=0,0 640x480)
      Visibility QWindow::Windowed
      qt.qpa.wayland: Received xdg_toplevel.configure with QSize(0, 0) and QFlags<Qt::WindowState>(WindowNoState)
      qt.qpa.wayland: Applied pending xdg_toplevel configure event: QSize(0, 0) QFlags<Qt::WindowState>(WindowNoState)
      function paint line 106 win QQuickWindow(0x55c37b8750 exposed, visibility=QWindow::Windowed, flags=QFlags<Qt::WindowType>(Window), title="Hello World", geometry=0,0 640x480)
      qt.qpa.wayland.backingstore: handleUpdate QSGRenderThread(0x55c37f0640)
      qt.qpa.wayland: Received xdg_toplevel.configure with QSize(0, 0) and QFlags<Qt::WindowState>(WindowActive)
      qt.qpa.wayland.backingstore: requestUpdate
      qt.qpa.wayland: Applied pending xdg_toplevel configure event: QSize(0, 0) QFlags<Qt::WindowState>(WindowActive)
      function paint line 106 win QQuickWindow(0x55c37b8750 exposed, visibility=QWindow::Windowed, flags=QFlags<Qt::WindowType>(Window), title="Hello World", geometry=0,0 640x480)
      qt.qpa.wayland.backingstore: Didn't receive frame callback in time, window should now be inexposed
      qt.qpa.wayland.backingstore: handleUpdate QSGRenderThread(0x55c37f0640)
      qt.qpa.wayland.backingstore: Didn't receive frame callback in time, window should now be inexposed

      /////////////////////////////////////////////////////////////////////////////////////////////////////////

      It seems to me that qwaylandwindow.cpp has some bugs that maybe related to sendExposeEvent functionality. I have seen some commits for qtwayland but do not know which is related to my case.I am attaching the example code into attachments .

      Could you please check the issue and help me?
      Regards

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.graphics.and.multimedia Qt Graphics Team
            Reporter:
            ekrems Ekrem Şahin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes