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

Black widgets and windows using QML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.7.1
    • None

    Description

      I've been having an issue with a cordova-ubuntu app, which I traced to the Oxide webview which I've finally traced to QT/QML (or so I think).

      In short, I'm getting black windows and buttons rather than an actual display.

      You can see the original demo of the problem on
      https://www.youtube.com/watch?v=WraR3pq12vE
      that demonstrates the cordova problem.

      However, a simplified test as attached in the screenshot here reveals the same issue, using qmlscene and a very basic hello world scene.

      Running
      qmlscene --verbose test.qml
      outputs
      QSGTextureAtlas: texture atlas allocation failed, code=501

      Using apitrace, I can see errors like
      major api error 17: GL_INVALID_OPERATION in glTexSubImage2D(invalid texture image)

      owing to calls to
      glTexSubImage2D(target = GL_TEXTURE_2D, level = 0, xoffset = 0, yoffset = 26, width = 36, height = 1, format = GL_BGRA, type = GL_UNSIGNED_BYTE, pixels = blob(144))

      I am inclined to believe this is related to the format (GL_BGRA) but this is more a hunch than anything.

      Running with every debug flag I could lay my hands on:

      QT_XCB_FORCE_SOFTWARE_OPENGL=1 LIBGL_ALWAYS_SOFTWARE=1 LIBQML_DUMP_ERRORS=1 QML_XHR_DUMP=1 QML_CHECK_TYPES=1 QML_DEBUGGER_VERBOSE=1 MALIIT_DEBUG=1 QT_QPA_EVDEV_DEBUG=1 QT_QPA_EGLFS_DEBUG=1 QT_QPA_EVDEV_DEBUG=1 QT_DEBUG_BACKINGSTORE=1 QT_DEBUG_PLUGINS=1 DEBUG=1

      outputs the attached "debugoutput.txt".

      Any indications on how to circumvent or resolve would be much much appreciated.

      Please let me know if you need more data.

      Attachments

        1. test.qml
          0.6 kB
        2. qmlscene.png
          qmlscene.png
          2 kB
        3. qmlscene.png
          qmlscene.png
          10 kB
        4. debugoutput.txt
          15 kB
        5. cordovaapp.png
          cordovaapp.png
          34 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            psychogenic Pat Deegan
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes