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

Window update happens in the middle of QQuickItem creation

    XMLWordPrintable

Details

    • WebAssembly

    Description

      In some case it is observed that window update happens in the middle of QQuickItem creation. Due to this a large application application goes gray with Chrome console throws a warning with backtrace provided below

      $QRhiGles2::executeCommandBuffer(QRhiCommandBuffer*) @ 
      $QRhiGles2::endFrame(QRhiSwapChain*, QFlags<QRhi::EndFrameFlag>) @ 
      $QRhi::endFrame(QRhiSwapChain*, QFlags<QRhi::EndFrameFlag>) 
      $QSGGuiThreadRenderLoop::renderWindow(QQuickWindow*) 
      $QSGGuiThreadRenderLoop::handleUpdateRequest(QQuickWindow*) 
      ...
      $QQuickWindow::event(QEvent*)
      $QQuickWindowQmlImpl::event(QEvent*) 
      $QCoreApplicationPrivate::notify_helper(QObject*, QEvent*) 
      $QCoreApplication::notify(QObject*, QEvent*) 
      $QGuiApplication::notify(QObject*, QEvent*) 
      $::Application::notify(QObject*, QEvent*)
      invoke_iiii @ 
      $QCoreApplication::notifyInternal2(QObject*, QEvent*) 
      $QCoreApplication::sendEvent(QObject*, QEvent*) 
      $QPlatformWindow::deliverUpdateRequest() 
      $QWasmCompositor::deliverUpdateRequest(QWasmWindow*, QWasmCompositor::UpdateRequestDeliveryType)
      $QWasmCompositor::deliverUpdateRequests()
      $QWasmCompositor::requestUpdate()::$_0::__invoke(double, void*) @ 
       

      Attached is one small reproducer which does not shows the exact same stack as above but it shows that Application::notify is being called synchronously.

      If you run it with wasam it is expected that it should Assert because of one flag creationInProgress is set to true.

      Whole point of this example is to show It is refreshing window while the QQuickItem is still under construction?

       

       

      Attachments

        1. Qtbug125625.zip
          2 kB
        2. screen_20240515-091359 (1).png
          screen_20240515-091359 (1).png
          1023 kB
        3. screen_20240521-090949.png
          screen_20240521-090949.png
          222 kB
        4. stack.txt
          12 kB

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              irfan.omair@digia.com Irfan Omair
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes