-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text rendering artifacts when running on imx6 / wayland #2855
Comments
Here is a minimal example: Here is a video showing the issue: Changing the default font did not solve the problem. Update: So it seems there is some issue with the femtovg renderer. |
Looks similar to #2314 |
This is rather bizarre. If these artefacts change as the text changes, then that's rather worrying - I wonder if we're triggering some vivante driver bug. I've got an i.mx6 in the office, I'll try to get hold of that to reproduce it. Meanwhile, would building with with Skia be an option for you? |
I've tried building it for my target in yocto, but the skia-bindings don't compile:
This might be relevant: The above changes are merged in skia 0.63.0, in slint 1.0.2 skia-bindings are locked to 0.60.0. When trying to generate a yocto recipe for the slint master branch, |
I was able to build the minimal example with the latest slint version from master, but skia still doesn't compile. When then trying out the femtovg renderer (now with v0.7.1), the artifacts still exist. |
The skia yocto fixes went into the 0.58 release. For building against a Yocto sdk maybe this helps: https://github.com/rust-skia/rust-skia/tree/master/skia-bindings#cross-compiling-for-linux for building inside Yocto you could perhaps try our demos recipe and see if the binaries work for you without Artefacts: https://github.com/slint-ui/meta-slint/tree/main/recipes-example/slint-demos |
The compiler error looks like the build is invoking gcc when it should be running clang. Can you try setting CLANGCC/CLANGCXX? If you’re inside a recipe you might need this trick: https://github.com/slint-ui/meta-slint/blob/69feb7f0f40cc8dc4ca52777cf87a4c879d4b953/recipes-slint/slint/slint-cpp.inc#L76 |
Thanks for meta-slint, I never stumbled across this layer which makes things a bit easier. I was always building my recipe with cargo-bitbake, which is a bit of a hassle when you are in early development and i couldn't get it work without it. For both recipes (slint-hello-world and slint-demos) I had to update the LICENSE md5 hash, but then the recipe started compiling. The slint-hello-world example didn't compile:
The slint-demos recipe compiled without problems, but with femtovg the same issue exists: For the slint-demos recipe, the feature for the skia-renderer was not enabled. For my minimal recipe i've copying these lines from the slint-cpp.inc file (without do_configure/do_install) and it compiled! And the skia renderer does work without artifacts 🙂
For completness sake, here is my full recipe with working skia renderer:
I think it makes sense to have a Thank you for your help! |
That is an excellent idea! Will do that. |
Keeping this ticket open as the issue in femtovg still exists. |
Great, if you need someone to test, just tell me 🙂 |
I pushed the change to introduce a common bblcass into the meta-slint repo. Built for me locally but YMMV :). |
Thank you :-) I'll have a look at it. |
I'm trying out slint ui for embedded and i'm experience text rendering issues on a toradex apalis imx6 target. The target is running a custom yocto linux with weston as wayland compositor in kiosk mode (
shell=kiosk-shell.so
). The output is a HDMI display.I'm using slint 1.0.2.
When the text changes, the artifacts change also. Everything else like images, rectangles and backgrounds are looking good.
I appreciate any help on this issue, thank you.
The text was updated successfully, but these errors were encountered: