Anyone seen this? It’s a window with just some text that I want to display and possible print. In Windows, MacOS and Linux Mint its fine. On my Raspberry Pi 5, it’s all garbled…see attached image.
Have you tried other project(s) with this pi ?
What is the screen size?
Probably unrelated, but way back there was an issue like this after a MacOs update,
and on early Windows 64bit builds, a picture with a pixel width that was not a multiple of 4 would scramble in exactly that fashion.
Change the window system to xorg via “sudo raspi-config” advanced xorg and select xorg
Yes…and never had an issue.
Not being a strong Linux user, I’m a bit hesitant to do this as I wonder what effects it may have on other things with the Pi.
Now this is strange…I just tried this again and I found that if I resize the distorted window slightly, it clears up. I’m wondering if I resize it in the project, if it will go away. Or maybe have code resize it slightly. In any case, off to try that just for grins.
Well that didn’t work.
I should clarify. It’s a small window with a DesktopHTMLViewer in it. I’m going to guess that has something to do with the issue. So far, nothing I’ve tried has solved the issue. But, I’m always able to resize the window when app is running and it clears it right up.
This is an issue with WebKit and hardware acceleration, for a workaround try setting up this environment variable in your App.Opening event:
System.EnvironmentVariable("WEBKIT_HARDWARE_ACCELERATION") = "OFF"
See also:
https://tracker.xojo.com/xojoinc/xojo/-/issues/75728
https://tracker.xojo.com/xojoinc/xojo/-/issues/77329
If this is becoming more of a problem then we may disable hardware acceleration by default…
Thanks William, that did the trick. I put it on the App.opening event as suggested using the if TargetLinux and TargetARM so it won’t affect MacOS, Windows and x86 Linux.