Description
When running Avalonia applications on Linux LoongArch64, libSkiaSharp.so fails to load due to an unresolved LSX symbol from libpng:
png_init_filter_functions_lsx
This appears to be the same LoongArch libpng LSX issue fixed upstream by Skia commit 3742756 and proposed for mono/skia in PR:
mono/skia#169
This currently blocks running SkiaSharp-based applications such as v2rayN on linux-loongarch64.
The issue is reproducible on Debian loong64 (ABI 2.0 / “new world”) and AOSC OS using .NET 10 loongarch64 SDK builds.
Related downstream application:
https://github.com/2dust/v2rayN
https://github.com/xujie86/v2rayN
Code
./v2rayN
Expected Behavior
libSkiaSharp.so should load successfully on linux-loongarch64 without unresolved libpng LSX symbols.
Actual Behavior
symbol lookup error: libSkiaSharp.so: undefined symbol: png_init_filter_functions_lsx
Version of SkiaSharp
3.119.2
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Visual Studio Code (Linux)
Platform / Operating System
Linux
Platform / Operating System Version
Linux : Debian 13 Unofficial
Linux : AOSC OS
Devices
Notebook
Relevant Screenshots
Relevant Log Output
Apple@debian:~/Me$v2rayn
/opt/v2rayN/v2rayN: symbol lookup error: /opt/v2rayN/libSkiaSharp.so: undefined symbol: png_init_filter_functions_lsx
Apple@debian:~/Me$
Code of Conduct
Description
When running Avalonia applications on Linux LoongArch64,
libSkiaSharp.sofails to load due to an unresolved LSX symbol from libpng:png_init_filter_functions_lsxThis appears to be the same LoongArch libpng LSX issue fixed upstream by Skia commit
3742756and proposed for mono/skia in PR:mono/skia#169
This currently blocks running SkiaSharp-based applications such as v2rayN on linux-loongarch64.
The issue is reproducible on Debian loong64 (ABI 2.0 / “new world”) and AOSC OS using .NET 10 loongarch64 SDK builds.
Related downstream application:
https://github.com/2dust/v2rayN
https://github.com/xujie86/v2rayN
Code
./v2rayN
Expected Behavior
libSkiaSharp.so should load successfully on linux-loongarch64 without unresolved libpng LSX symbols.
Actual Behavior
symbol lookup error: libSkiaSharp.so: undefined symbol: png_init_filter_functions_lsx
Version of SkiaSharp
3.119.2
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Visual Studio Code (Linux)
Platform / Operating System
Linux
Platform / Operating System Version
Linux : Debian 13 Unofficial
Linux : AOSC OS
Devices
Notebook
Relevant Screenshots
Relevant Log Output
Code of Conduct