Details
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.