uno: [Various Linuxes] [Skia.GTK] Text causes app crash due to incorrect HarfBuzz loading
Current behavior
When you run MyApp.Skia.Gtk on Linux, the app will appear, but not actually render anything, then disappear after a few seconds.
This happens no matter which of the three surface types is chosen.
This does not happen on Skia.Linux.FrameBuffer so appears to be GTK-specific.
Expected behavior
A window should open displaying “Hello, world!”
How to reproduce it (as minimally and precisely as possible)
minimal repro project: testuno.zip
video showing repro: https://user-images.githubusercontent.com/19270622/189496287-494f6346-2bbb-454c-96fe-29074a433e3d.mp4
dotnet new unoapp -o testunocd testuno/testuno.Skia.Gtk- Switch to software rendering purely to eliminate the possibility of this being an OpenGL issue.
dotnet run- The window is blank and closes automatically
Workaround
Haven’t found a workaround.
Works on UWP/WinUI
No response
(Have not tested on Windows.)
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
| pkg | ver |
|---|---|
| Uno.WinUI.* | 4.4.20 |
| SkiaSharp.* | 2.88.1-preview.79 |
Affected platforms
Skia (GTK on Linux/macOS/Windows)
IDE
No response (Rider for Linux was not listed in dropdown)
IDE version
Rider Linux 2022.2.2 (RD-222.3962.23)
Relevant plugins
No response
Anything else we need to know?
No response
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 37 (13 by maintainers)
i am able to start my test programm with
LD_PRELOAD=bin/Debug/net7.0/runtimes/linux-x64/native/libHarfBuzzSharp.so dotnet runthis is just a work around not a solution to the problem.
Looks good!
I’m afraid I won’t be able to test for much of today due to personal events, but if I get a chance later I will certainly give this a go on my machine!
Also good to hear that you can reproduce the issue (well not good per se, but better than not being able to)
Thank you! 😃
Yeah okay, I’ll wait for the next preview build of SkiaSharp.NativeAssets.Linux and give it a go 😃
Alright! I’ll have to do this tomorrow as I have college in the morning, but thanks for the help with using gdb 😃
I’m not familiar with GDB, but I’m pretty sure I’ll pick it up easily enough to get a dump out of it 😃
I’ve checked my packages but considering it can successfully create a window GTK seems (?) fine, and my .NET is 6.0.108 (for what its worth, I did update to 6.0.400, but got identical results and Rider wasn’t playing nice), so I don’t really know what would be missing.
I’ll have a play with GDB this afternoon!