[Xperia X] QML image load black [answered]
Hi,
I develop several apps for SFOS and I realised while testing that the Xperia X sometimes in QML can't load some images. The Image object says that's ready but in reality a black image is shown, this doesn't happen on the Jolla 1 for example with the same app and the same images (images are loaded from the network).
What's happing
QML Image object can't load images in some cases. No error is thrown, just a black image and it appears randomly (not always the same image)
What's expected to happen
QML Image loads the image over the network asynchronous.
How to reproduce
- Open an app that loads a lot of images over the network, for example: Sailfinder
- Scroll heavily through a long list of matches or swipe some people left/right
- Some images are just black.
I am not sure if this is same issue but I am also experiencing a black image in QML for some images. The affected images are large images, which Sailfish OS is unable to handle/render correctly. I think on Jolla 1 you will hit this isdue for images with a size > 4096x4096.Here is my question for reference: https://together.jolla.com/question/183847/xperia-x-qml-image-load-black/
So did you check tge dimensions of the images if you are hitting your issue?:)
Alex ( 2018-05-14 11:48:07 +0200 )editThe images are max 640x640. That's not the same issue... The issue is related to the Xperia X, after enforcing the QT_OPENGL_BGRA environment variable to 1 it's gone, thanks to Andrew!
Dylan Van Assche ( 2018-05-14 11:57:41 +0200 )edit