Skip to content

[BUG] linux-loongarch64/libSkiaSharp.so: undefined symbol: png_init_filter_functions_lsx #3972

Description

@xujiegb

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

Image

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

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions