Repository navigation
Closed
Description
Curent Bugs
- In the Reviews tab, shows a difference: the NativeAOT build is missing numbers next to the "thumbs up" and "thumbs down" icons
- Search doesn't work. You can go to the Search page, but entering text and pressing [ENTER] doesn't show results.
Runtime Comparisons
| Uno.Sdk | Runtime | App | Publish Size 1 | Startup Times (s) 2 | Notes |
|---|---|---|---|---|---|
| Uno.Sdk 6.6.0-dev.168 | .NET 10 CoreCLR 3 | unoplatform/uno.chefs@d54bceea | 451M | 3.31 user 0.46 system 3.57 total |
|
| Uno.Sdk 6.6.0-dev.168 | .NET 10 NativeAOT 4 | unoplatform/uno.chefs@d54bceea | 534M | 0.54 user 0.19 system 0.78 total |
|
| Uno.Sdk 6.6.0-dev.168 | .NET 10 CoreCLR 5 | unoplatform/Uno.Gallery@54a08b15 | 393M | 1.24 user 0.16 system 1.93 total |
|
| Uno.Sdk 6.6.0-dev.168 | .NET 10 NativeAOT 6 | unoplatform/Uno.Gallery@54a08b15 | 429M | 0.22 user 0.06 system 0.34 total |
|
| Uno.Sdk 6.6.0-dev.127 | .NET 10 CoreCLR 3 | unoplatform/uno.chefs@06f4f804 | 460556 450M |
1.99 user 0.37 system 2.58 total |
|
| Uno.Sdk 6.6.0-dev.127 | .NET 10 NativeAOT 4 | unoplatform/uno.chefs@06f4f804 | 545684 533M |
0.46 user 0.13 system 1.06 total |
|
| Uno.Sdk 6.6.0-dev.3 | .NET 10 CoreCLR 3 | unoplatform/uno.chefs@e838af94 | 459364 449M |
2.03 user 0.25 system 2.10 total |
|
| Uno.Sdk 6.6.0-dev.3 | .NET 10 NativeAOT 4 | unoplatform/uno.chefs@e838af94 | 539952 528M |
0.33 user 0.08 system 0.52 total |
Issues |
Footnotes
-
Size as reported by
du -sk Chefs/bin/Release/net10.0-desktop/linux-x64/publishanddu -sh Chefs/bin/Release/net10.0-desktop/linux-x64/publish, ordu -sh Uno.Gallery/bin/Release/net10.0-desktop/linux-x64/publish↩ -
Time as reported by:
/usr/bin/time "--format=%U user %S system %e total" Chefs/bin/Release/net10.0-desktop/linux-x64/publish/Chefs --exitor/usr/bin/time "--format=%U user %S system %e total" Uno.Gallery/bin/Release/net10.0-desktop/linux-x64/publish/Uno.Gallery --exit↩ -
Uno.Chefs CoreCLR Build command
↩ ↩2 ↩3dotnet publish -c Release -r linux-x64 -f net10.0-desktop -p:TargetFrameworkOverride=net10.0-desktop \ -bl Chefs/Chefs.csproj -p:UseSkiaRendering=true -p:SelfContained=true \ -p:EmitCompilerGeneratedFiles=true "-p:CompilerGeneratedFilesOutputPath=`pwd`/_gen" -
Uno.Chefs NativeAOT Build command
↩ ↩2 ↩3dotnet publish -c Release -r linux-x64 -f net10.0-desktop -p:TargetFrameworkOverride=net10.0-desktop \ -bl Chefs/Chefs.csproj -p:UseSkiaRendering=true -p:SelfContained=true \ -p:SkiaPublishAot=true -p:IsAotCompatible=true -p:TrimmerSingleWarn=false -p:_ExtraTrimmerArgs=--verbose \ -p:IlcGenerateMapFile=true -p:IlcGenerateMstatFile=true -p:IlcGenerateDgmlFile=true -p:IlcGenerateMetadataLog=true \ -p:EmitCompilerGeneratedFiles=true "-p:CompilerGeneratedFilesOutputPath=`pwd`/_gen" -
Uno.Gallery CoreCLR Build command
↩dotnet publish -c Release -r linux-x64 -f net10.0-desktop -p:TargetFrameworkOverride=net10.0-desktop \ -bl Uno.Gallery/Uno.Gallery.csproj -p:UseSkiaRendering=true -p:SelfContained=true -
Uno.Gallery NativeAOT Build command
↩dotnet publish -c Release -r linux-x64 -f net10.0-desktop -p:TargetFrameworkOverride=net10.0-desktop \ -bl Uno.Gallery/Uno.Gallery.csproj -p:UseSkiaRendering=true -p:SelfContained=true \ -p:SkiaPublishAot=true
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-][Skia] Native AOT support for X11[/-][+][AOT] Native AOT support for X11[/+]jonpryor commentedon Jan 23, 2026
2026-01-23 State of Affairs
Starting with unoplatform/uno.chefs@e838af9 and the following patch applied:
Build for NativeAOT:
Run:
Interestingly (to me), it produces more fail messages than I see elsewhere:
I don't see any UI or behavioral differences between the CoreCLR and NativeAOT builds due to these messages.
Clicking on a recipe, then clicking the Reviews tab, shows a difference: the CoreCLR build shows numbers next to the "thumbs up" and "thumbs down" icons, while the NativeAOT build is missing those numbers.
Linux doesn't support media playback.
This happens with CoreCLR as well, so this is not a NativeAOT bug.
Search doesn't work properly:
After clicking around a bit, additional
failmessages are printed:jonpryor commentedon Mar 11, 2026
2026-Mar-10: Uno.Chefs State of Affairs
Starting with unoplatform/uno.chefs@06f4f80 and using Uno.Sdk 6.6.0-dev.127:
All previously mentioned issues have been fixed.
jonpryor commentedon Apr 14, 2026
What about arm64?
All my prior testing has been done within an x64 VM.
Now that I have access to arm64 hardware, how do things fare in linux-arm64?
The answer? Not immediately good.
Starting with unoplatform/uno.chefs@d54bcee and using Uno.Sdk 6.6.0-dev.128:
Build and run for linux-arm64:
Note: building requires more than 2GB RAM; I built it on a VM with 8GB RAM.
The app immediately crashes, in Skia:
"Funnily enough", Jerome reported this on SkiaSharp already: mono/SkiaSharp#3229 (comment)
I'm using an Ubuntu 24.04.3 VM, which appears to include libfreetype 6.20.1.
This comment suggests that freetype2 2.15 or later is required.
6.20.1 is newer than 2.15; what's going on here?
Does the symbol exist?
$ nm -D /usr/lib/aarch64-linux-gnu/libfreetype.so.6.20.1 | grep FT_Get_BDF_Property 0000000000019020 T FT_Get_BDF_PropertyYes.
Yet apparently it's not found, presumably because
libfreetype.so.6isn't being loaded.We can force it to be loaded, via
LD_PRELOAD. That works:LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libfreetype.so.6.20.1 ./Chefs/bin/Release/net10.0-desktop/linux-arm64/publish/Chefs # no crash!Thus, the question: why isn't
libfreetype.so.6loaded?Answer: because
libSkiaSharp.sodoesn't link against it!$ readelf -d /home/parallels/Developer/src/unoplatform/uno.chefs/Chefs/bin/Release/net10.0-desktop/linux-arm64/publish/libSkiaSharp.so | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [libdl.so.2] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x0000000000000001 (NEEDED) Shared library: [ld-linux-aarch64.so.1]Notably absent:
libfreetype.so.6.This appears to be fixed upstream: mono/SkiaSharp#3494
However, there have been no new releases which include that fix.
If I check the build for a recent commit to mono/SkiaSharp@03f6d25: https://dev.azure.com/xamarin/public/_build/results?buildId=156657&view=results
libSkiaSharp.so.132.0.0does contain a NEEDED ref forlibfontconfig.so.1, andlibfontconfig.so.1has a NEEDED ref tolibfreetype.so.6, which contains the symbol:jonpryor commentedon Apr 14, 2026
Earlier I said:
This is not true; the SkiaSharp.NativeAssets.Linux 3.119.3-preview.1.1 package contains the fix:
% unzip skiasharp.nativeassets.linux.3.119.3-preview.1.1.nupkg runtimes/linux-arm64/native/libSkiaSharp.so % readelf -d runtimes/linux-arm64/native/libSkiaSharp.so | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [libfontconfig.so.1] 0x0000000000000001 (NEEDED) Shared library: [libdl.so.2] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6]The workaround, then, is to build Chefs while referencing the SkiaSharp 3.119.3-preview.1.1 package. This can be done by setting the
$(SkiaSharpVersion)MSBuild property:With that change, the app launches without crashing, and without requiring
LD_PRELOAD:$ ./Chefs/bin/Release/net10.0-desktop/linux-arm64/publish/Chefs $ time ./Chefs/bin/Release/net10.0-desktop/linux-arm64/publish/Chefs --exit … real 0m0.336s user 0m0.193s sys 0m0.074sfix(linux): X11NativeWebView exports GDK_BACKEND=x11