Created attachment 4948 [details] Images of the issue While running qt5 based application in yocto, there are lines/blanks appearing on screen for unknown reason. The application however runs fine on the host pc running Ubuntu 20.04 LTS. The yocto build is core-image-minimal built for intel-core-i7-64. I'm using matchbox terminal to run the application. other details: poky- 3.4.4 kernel- 5.10.100-pk-standard x.org- 1.20.14 qt- 5.15.3 Any ideas how to fix this?
Created attachment 4949 [details] Images of the issue
First, poky 3.4 has been end-of-life for a year now (https://wiki.yoctoproject.org/wiki/Releases), so I recommend you move to a supported release. From the screenshots it looks like a stride issue with specifically qt5 rendering, for example I don't see any distortion on the window manager decoration. Can you confirm that non-qt5 applications render fine?
Marking needinfo.
(In reply to Ross Burton from comment #2) > First, poky 3.4 has been end-of-life for a year now > (https://wiki.yoctoproject.org/wiki/Releases), so I recommend you move to a > supported release. > > From the screenshots it looks like a stride issue with specifically qt5 > rendering, for example I don't see any distortion on the window manager > decoration. Can you confirm that non-qt5 applications render fine? Yes, you're right about the issue being specifically with the qt5 rendering. I have tested a gtk example app in it and it doesn't have this issue. I even tried core-image-sato image of yocto but getting same issue in qt5 app.
My hunch is that your Qt5 app is using the GL-based painting engine and the driver is broken. I know next-to-nothing about Qt: can you change the engine to be the software renderer to test? Google tells me that if you're using QtQuick then exporting QT_QUICK_BACKEND=software will do that.
(In reply to Anurag from comment #4) > (In reply to Ross Burton from comment #2) > > First, poky 3.4 has been end-of-life for a year now > > (https://wiki.yoctoproject.org/wiki/Releases), so I recommend you move to a > > supported release. > > > > From the screenshots it looks like a stride issue with specifically qt5 > > rendering, for example I don't see any distortion on the window manager > > decoration. Can you confirm that non-qt5 applications render fine? > > Yes, you're right about the issue being specifically with the qt5 rendering. > I have tested a gtk example app in it and it doesn't have this issue. I even > tried core-image-sato image of yocto but getting same issue in qt5 app. Thanks for the reply btw. (In reply to Ross Burton from comment #5) > My hunch is that your Qt5 app is using the GL-based painting engine and the > driver is broken. I know next-to-nothing about Qt: can you change the > engine to be the software renderer to test? Google tells me that if you're > using QtQuick then exporting QT_QUICK_BACKEND=software will do that. Yeah, I've already tried that. It doesn't show any difference.
I'd approach the Qt people upstream about this, see if they recognise the failure. There might be driver bugs in the intel gpu driver as 3.4 is old, copying in the meta-intel maintainer.
(In reply to Ross Burton from comment #7) > I'd approach the Qt people upstream about this, see if they recognise the > failure. There might be driver bugs in the intel gpu driver as 3.4 is old, > copying in the meta-intel maintainer. Sure, I appreciate your help. I'm looking into qt qpa platform plugins- directfb for now. Posted in qt forum. Hope to get some form of help from them. Does the later versions of poky have smooth qt5 render? If so I might look into that. Thanks again for your replies.
I've never used Qt5 so can't comment on that, sorry.
Can you see the same issue on qemux86-64 ? and try with xcb backend as well.
I don't see this issue with qemux86-64 while testing the app with xcb plugin. This could mean the issue might be specific to the platform (intel-corei7-64). Any suggestions where to look next?
Kernel/GPU drivers, but you'll have more luck talking to the Qt support channels.
Moving to the meta-intel BSP as it doesn't replicate in qemux86-64.
I appreciate the help. Updates on the topic- Tried a patch on i915 driver. Issue in qt render is still there. Added x11vnc to the poky build to view the screen remotely. The issues are not seen in remote screen running vncviewer, even though it is visible in the local screen. Need to look into that next. No response from the qt forum yet. Thanks
Updated to poky-4.0.10. Qt 5.15.3 works without any issues.