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

Black widgets and windows using QML

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.7.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

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

          Activity

            People

            • Assignee:
              srutledg Shawn Rutledge
              Reporter:
              psychogenic Pat Deegan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes