Replies: 2 comments 7 replies
-
|
Thanks for the report! Indeed, the null reference is not supposed to happen and it generally failed way before that point. We'll add some safeguards to avoid this. That being said, we're not aware of specifics that could cause this particular issue, which could be related to GTK itself. It looks similar to GtkSharp/GtkSharp#292. Could you try running a simple |
Beta Was this translation helpful? Give feedback.
-
|
@HakanL, it looks like you've managed to get further than we. May I ask some specific questions? I am not our Linux guy unfortunately and embedded Linux is new to us generally. As mentioned, it appears we're missing some fundamentals of GL/GLES on our system. The OpenGL Area example shows "No GL Implementation is available", even with If you're using Yocto, what relevant Yocto recipes are you using? You mentioned As for your specific issue, in case you missed it, there was a discussion of the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We're really struggling to get any OpenGL rendering with Uno (4.10.13) and Skia on our custom Linux-embedded image. We would appreciate any help from those who have gone down this path. We're finding that basic UI performance is lacking with software rendering.
Like others (#8643), the app bombs out with either OpenGL or OpenGLES rendering options.
The common workaround appears to be to run under X11 (
GDK_BACKEND=x11) using Xwayland. We've tried that to no avail:Gtk-WARNING **: cannot open display:. We've tried variousDISPLAYsettings, all with similar results. We are settingGDK_GL=gles.We're using an NXP i.MX8-X ARM Cortex-A35 which should support both OpenGL and GL ES. As far as we can tell, the requisite packages are installed; demo apps such as
glmark2-es2-waylandrun, demonstrating the hardware rendering.We've done some troubleshooting by looking at Uno's interaction with SkiaSharp. When we call
GRGlInterface.CreateGles()with Native Context "libGLESv2.so", we can see thatTryGetProcAddressgets called once withglGetStringreturning a reasonable lookingaddr, yetCreateGlesreturnsnull.I'm a bit surprised the lambda gets called only once. It appears that several queries of the library are typical:
How do I properly build a .NET 7 application using SkiaSharp on Linux?.
We see the same behavior when calling
GRGlInterface.Create()with Native Context "libGL.so.1". Our feeling that our Linux image is likely missing something; but we've run out of ideas.Again, any ideas are appreciated. Thanks
Beta Was this translation helpful? Give feedback.
All reactions