Skip to content

Fix SkiaSharp native library mismatch on Linux (#139)#141

Merged
erikdarlingdata merged 2 commits intodevfrom
fix/139-skiasharp-linux
Mar 25, 2026
Merged

Fix SkiaSharp native library mismatch on Linux (#139)#141
erikdarlingdata merged 2 commits intodevfrom
fix/139-skiasharp-linux

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Pin SkiaSharp.NativeAssets.Linux to 3.119.0 in PlanViewer.App.csproj
  • Avalonia.Skia 11.3.12 transitively pulls in 2.88.9, which ships a libSkiaSharp.so (v88.1) incompatible with the managed SkiaSharp 3.119.0 — the old .so wins at publish time, causing TypeInitializationException on Linux
  • Verified macOS and Win32 native assets were already at 3.119.0 — only Linux was affected
  • WebAssembly also has a stale 2.88.9 reference but is not a deployment target

Fixes #139

Test plan

  • dotnet restore resolves SkiaSharp.NativeAssets.Linux to 3.119.0
  • Build succeeds with 0 warnings, 0 errors
  • Linux user from issue confirms app launches

🤖 Generated with Claude Code

erikdarlingdata and others added 2 commits March 23, 2026 18:58
- Replace tab indentation with spaces in FetchPlanWaitStatsAsync doc
  comments to match file convention
- Rewrite doc comment for clarity (explain why plan-level WTR differs)
- Use existing _fetchCts instead of creating untracked CancellationTokenSource
  in OnWaitStatsCollapsedChanged

Follow-up to PR #137.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Avalonia.Skia 11.3.12 transitively pulls SkiaSharp.NativeAssets.Linux
2.88.9 (libSkiaSharp.so v88.1), but the managed SkiaSharp 3.119.0
requires native libs in the [119.0, 120.0) range. At publish time the
old .so overwrites the correct one, causing a TypeInitializationException
on startup.

Pin SkiaSharp.NativeAssets.Linux to 3.119.0 so NuGet resolution picks
the correct native library. macOS and Win32 were already at 3.119.0.

Fixes #139

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 7be6dfb into dev Mar 25, 2026
2 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/139-skiasharp-linux branch March 25, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant