Skip to content

[WASM] Fix net11 exception-handling mismatch in emsdk 5.0.6 native libs - #4487

Merged
mattleibow merged 1 commit into
mainfrom
mattleibow-dev-wasm-net11-exception-handling
Jul 20, 2026
Merged

mattleibow merged 1 commit into
mainfrom
mattleibow-dev-wasm-net11-exception-handling

Conversation

@mattleibow

@mattleibow mattleibow commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

A .NET 11 Blazor WebAssembly app referencing SkiaSharp links fine (PR #4459 routes net11.0+ to the emsdk 5.0.6 static lib) but fails at runtime in a modern browser:

CompileError: WebAssembly.compileStreaming(): module uses a mix of legacy and
new exception handling instructions (function #19801)

.NET 11 (preview 6+) links WASM apps with the new exnref exception-handling model (WASM_LEGACY_EXCEPTIONS=0 → try_table/throw_ref). SkiaSharp's emsdk 5.0.6 libSkiaSharp.a/libHarfBuzzSharp.a are compiled with -fwasm-exceptions but without pinning the instruction variant, so they emit the legacy wasm-EH instructions (try/catch). V8 refuses to compile a module that mixes both schemes → the error.

Fix

Compile the 5.0.6 (net11) variant only with the new EH instruction set so it matches .NET 11:

  • native/wasm/build.cake: add a _newexc emscripten feature that appends -s WASM_LEGACY_EXCEPTIONS=0 to extra_cflags and extra_cflags_cc (a compile-time codegen flag — required both for C++ exceptions and for the wasm setjmp/longjmp in the C deps like libjpeg-turbo/libpng). Emscripten's settings.js documents that codegen-affecting settings must be passed at compile time when wasm object files are produced, which the .a build does.
  • scripts/azure-templates-stages-native-wasm.yml: add _newexc to the four 5.0.6 matrix entries only.

net8 (3.1.34) and net9/net10 (3.1.56) stay on legacy EH to match their runtimes — those emsdks predate the exnref proposal. No packaging/targets changes are needed (_-prefixed feature tokens are excluded from the artifact path, and the net11.0+ → 5.0.6 selection already exists from #4459).

Verification

Rebuilt the emsdk 5.0.6 st and st,simd libraries from source with this change and confirmed on a net11.0 Blazor WASM app in a modern browser:

TFM libSkiaSharp Result
net11 shipped 4.151.0-preview.3.2 (legacy EH) ❌ CompileError … mix of legacy and new exception handling instructions
net11 rebuilt 5.0.6/st + st,simd (new EH) ✅ SkiaSharp draws + encodes a valid PNG (native OK)
net10 shipped 3.1.56 (legacy EH) ✅ unaffected by this change

Link flags confirm the split: net11 links -mllvm -wasm-use-legacy-eh=0 + -lc++-wasmexcept; net10 links -lc++-except with no -wasm-use-legacy-eh=0. The rebuilt .a disassembles to the new try_table/throw_ref instructions with no legacy try-block/delegate/rethrow. CI (build 1517651) is green: the four native WASM (5.0.6*) jobs build with the flag and all net8/9/10 stages are unchanged.

Follow-up

Automated net11 WASM regression coverage (running the real WASM test suite on net11) is tracked as a separate stacked PR to keep this change focused on the build fix.

.NET 11 links WASM apps with the new exnref exception-handling model
(WASM_LEGACY_EXCEPTIONS=0 -> try_table/throw_ref). The emsdk 5.0.6
libSkiaSharp.a/libHarfBuzzSharp.a were compiled with -fwasm-exceptions but
without pinning the instruction variant, so they emitted the legacy wasm-EH
instructions (try/catch). A net11 app mixing the legacy SkiaSharp objects with
the new-EH .NET runtime fails to compile in the browser:

  CompileError: WebAssembly.compileStreaming(): module uses a mix of legacy and
  new exception handling instructions

Add a '_newexc' emscripten feature that appends '-s WASM_LEGACY_EXCEPTIONS=0' to
extra_cflags and extra_cflags_cc (compile-time codegen flag; required for both
C++ exceptions and the wasm setjmp/longjmp in the C deps). Enable it only for the
5.0.6 (net11) native matrix variants. net8 (3.1.34) and net9/net10 (3.1.56) keep
legacy EH to match their runtimes.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: e238622e-1dea-47a8-b3ce-e029defca5f0
@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4487

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4487"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-4487/packages --name skiasharp-pr-4487
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-4487

@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation for this PR has been deployed and is available at:

🔗 View Staging Site
🔗 View Staging Docs
🔗 View Staging Gallery (Blazor)
🔗 View Staging Gallery (Uno Platform)
🔗 View Staging SkiaFiddle

This preview will be updated automatically when you push new commits to this PR.


This comment is automatically updated by the documentation staging workflow.

@mattleibow

Copy link
Copy Markdown
Contributor Author

✅ Local verification (net11 + system Chrome 150)

Rebuilt the emsdk 5.0.6 st libSkiaSharp.a from source with this change (-fwasm-exceptions -s WASM_LEGACY_EXCEPTIONS=0, verified present in the actual libpng/core/jpeg compile commands) and tested a net11.0 Blazor WASM app in system Chrome via Playwright (channel=chrome — the bundled Chromium is too old for exnref).

Scenario libSkiaSharp Result
Baseline shipped 4.151.0-preview.3.2 (legacy EH) ❌ CompileError: module uses a mix of legacy and new exception handling instructions (function #23763) — app fails to boot
This fix locally-built 5.0.6/st (new exnref EH) ✅ App boots; SkiaSharp native executes: native OK: center=#ffff4500, pngBytes=1266 (drew an OrangeRed circle to an SKBitmap and encoded a valid PNG). No CompileError.

Objdump of the fixed .a shows the new instructions (try_table, throw_ref) and no legacy try-block / delegate / rethrow.

No net9/net10 regression: the change is gated on a new _newexc feature applied only to the 5.0.6 matrix entries; the 3.1.34/3.1.56 build paths are byte-identical (the flag is not added when _newexc is absent).

Next: adding a net11 WASM test job to CI so this is caught automatically.

@mattleibow

Copy link
Copy Markdown
Contributor Author

✅ Full end-to-end verification (local)

Both the fix and the new CI smoke test are validated end-to-end.

The fix (rebuilt 5.0.6 libs from source, net11.0 + Chromium 149/150)

TFM libSkiaSharp Result
net11 shipped 4.151.0-preview.3.2 (legacy EH) ❌ CompileError … mix of legacy and new exception handling instructions
net11 rebuilt 5.0.6/st (new EH) ✅ native OK: center=#ffff4500, pngBytes=1266
net11 rebuilt 5.0.6/st,simd (new EH) ✅ native OK … (default SIMD variant)
net10 shipped 3.1.56 (legacy EH) ✅ native OK … (untouched by the fix)

Link flags confirm the split: net11 links -mllvm -wasm-use-legacy-eh=0 + -lc++-wasmexcept; net10 links -lc++-except with no -wasm-use-legacy-eh=0. The rebuilt .a disassembles to the new try_table/throw_ref instructions with no legacy try/delegate/rethrow.

The new CI smoke test (scripts/infra/tests/wasm-net11-smoke)

Ran the actual smoke script locally against two feeds:

  • shipped (legacy-EH) package → FAIL (correctly detects the EH-mix CompileError).
  • feed carrying the new-EH st + st,simd libs → PASS (native OK, no CompileError).

So the job would have caught this regression, and passes once the fix is in. net11 is used for tests only; net10 remains the CI default.

@mattleibow

Copy link
Copy Markdown
Contributor Author

✅ CI green — build 4.151.0-pr.4487.3 (1517651) SUCCEEDED

The full complete pipeline passed end-to-end (1h38m, 0 failed records).

  • The four native WASM (5.0.6*) jobs built with the new _newexc flag and published their artifacts.
  • The new WASM net11 Exception Handling (Linux) job ran on Linux with the emsdk 5.0.6 pack and PASSED (5m22s), linking the freshly-built native lib into a net11 Blazor app and loading it in headless Chromium:
    native-status  : "native OK: center=#ffff4500, pngBytes=1266"
    PASS: SkiaSharp WASM module compiled and executed on .NET 11.
    net11 WASM smoke test PASSED.
    
    Same result as the local run — no "mix of legacy and new exception handling" CompileError, and SkiaSharp executes.
  • All net8/9/10 native + managed + test stages are unchanged and green (net10 stays the CI default; net11 is used for this test job only).

Marking ready for review.

@mattleibow
mattleibow marked this pull request as ready for review July 20, 2026 14:02
@mattleibow
mattleibow force-pushed the mattleibow-dev-wasm-net11-exception-handling branch from f2d8dd3 to 90891ad Compare July 20, 2026 14:13
@mattleibow

Copy link
Copy Markdown
Contributor Author

Refocused this PR to just the build fix (native build.cake + WASM matrix). The net11 WASM regression test has been split out into a separate stacked PR so we can land the build fix now; the follow-up will run the real WASM test suite on net11 rather than a bespoke smoke app. The fix itself was verified locally (net11 Blazor app: baseline fails with the EH-mix CompileError, rebuilt 5.0.6/st+st,simd libs pass; net10 unaffected).

@mattleibow
mattleibow merged commit 7dd8901 into main Jul 20, 2026
133 of 134 checks passed
@mattleibow
mattleibow deleted the mattleibow-dev-wasm-net11-exception-handling branch July 20, 2026 21:28
@mattleibow mattleibow added this to the 4.151.0-rc.1 milestone Jul 20, 2026
mattleibow added a commit that referenced this pull request Jul 20, 2026
…ressions (#4488)

[WASM] Add preview-.NET WASM test job to catch exception-handling regressions (#4488)

Context: #4487

The emsdk 5.0.6 WASM libSkiaSharp can emit *legacy* wasm exception-handling
instructions, while .NET 11 links Blazor WASM apps with the *new* exnref model
(WASM_LEGACY_EXCEPTIONS=0). Mixing the two makes the app fail at runtime in the
browser, before a single line of user code runs:

    CompileError: WebAssembly.compileStreaming(): module uses a mix of legacy
    and new exception handling instructions

PR #4487 fixes the native build to emit new-EH instructions, but nothing in CI
would have caught the original regression. This adds that missing guard: it runs
the existing tests/SkiaSharp.Tests.Wasm suite under the preview .NET (net11) so an
EH mismatch — or any WASM breakage on the newer runtime — turns the build red.

The preview runtime is used for TESTS ONLY. net10 remains the default for every
other job, and the shipping TFMs are unchanged.

  * source/SkiaSharp.Build.props: add an opt-in UsePreviewTFM toggle (default
    off) that shifts the .NET version window forward one release (current=net11,
    previous=net10). Dropping the now-EOL net9.0 lets the test and the SkiaSharp
    binding it references build cleanly as net11.0 under a preview SDK, without
    tripping NETSDK1202 on the EOL net9.0-* platform TFMs.
  * scripts/infra/tests/tests-wasm.cake: add --previewtfm=true, which runs the
    same suite with -p:UsePreviewTFM=true. The cake is the run, not the infra.
  * scripts/azure-templates-jobs-bootstrapper.yml: add reusable installPreviewSdk
    and previewWorkloads parameters (install the preview SDK, pin global.json to
    it, install the requested workloads via the shared install-dotnet-workloads.ps1
    at the exact preview workload set) so other jobs can opt into a preview run.
  * scripts/azure-templates-variables.yml: add DOTNET_VERSION_PREVIEW and
    DOTNET_WORKLOAD_VERSION_PREVIEW (default DOTNET_VERSION stays net10).
  * scripts/azure-templates-stages-test.yml: add the tests_wasm_preview_linux job
    (consumes the native artifact; previewWorkloads=wasm-tools,android). android
    is required because the WASM restore still evaluates the -android TFMs of the
    referenced binding projects, exactly as the net10 job already does.

Both paths were validated locally against real 5.0.6/st,simd natives pulled from
CI artifacts: the new-EH lib runs the suite green (1180 total, 1081 passed, 0
failed, 99 skipped), and the legacy-EH lib fails with the CompileError above and
takes the job red via the runner's 300s timeout — a bounded failure, not a hang
or a silent pass.

Note: the preview .NET workload set, its manifests, and the emscripten 5.0.6 and
android packs are not on the dnceng public feeds by default (preview/late-leg
builds move to internal feeds), so the exact pinned versions were mirrored to
dotnet-public to make the pinned install reproducible in CI.

Co-authored-by: Matthew Leibowitz <[email protected]>
Co-authored-by: Copilot App <[email protected]>
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 21, 2026
Context: #23626
Context: unoplatform/uno.icu#27
Context: mono/SkiaSharp#4459
Context: mono/SkiaSharp#4487

The "chore: Update to .NET 11 Preview 6" commit mentioned:

> Context: dotnet/macios#25867
> …
> TODO:
>
>   * Update **Tests - Templates** to build for and run on .NET 11.
>     Now that dotnet/macios#25867 has been fixed, this should now be
>     possible.

With a quick sed later:

	git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g'

and an update to `run-netcore-mobile-template-tests.ps1`, we see that
many tests pass, but anything related to WebAssembly fails:

	error : undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : Aborting compilation due to previous errors [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : '/agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Node.linux-x64/11.0.0-preview.6.26359.118/tools/bin/node /agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Sdk.linux-x64/11.0.0-preview.6.26359.118/tools/emscripten/tools/compiler.mjs -' failed (returned 1) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]

This is because Emscripten/LLVM broke ABI; see also #23626.

unoplatform/uno.icu#27 contains fixes for the Uno.icu-wasm NuGet,
but we also require changes to SkiaSharp by way of (at least)
mono/SkiaSharp#4459 and mono/SkiaSharp#4487.

We will need to wait for updated NuGet packages in order to address
the above WebAssembly-related errors.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 21, 2026
Context: #23626
Context: unoplatform/uno.icu#27
Context: mono/SkiaSharp#4459
Context: mono/SkiaSharp#4487

The "chore: Update to .NET 11 Preview 6" commit mentioned:

> Context: dotnet/macios#25867
> …
> TODO:
>
>   * Update **Tests - Templates** to build for and run on .NET 11.
>     Now that dotnet/macios#25867 has been fixed, this should now be
>     possible.

With a quick sed later:

	git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g'

and an update to `run-netcore-mobile-template-tests.ps1`, we see that
many tests pass, but anything related to WebAssembly fails:

	error : undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : Aborting compilation due to previous errors [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : '/agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Node.linux-x64/11.0.0-preview.6.26359.118/tools/bin/node /agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Sdk.linux-x64/11.0.0-preview.6.26359.118/tools/emscripten/tools/compiler.mjs -' failed (returned 1) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]

This is because Emscripten/LLVM broke ABI; see also #23626.

unoplatform/uno.icu#27 contains fixes for the Uno.icu-wasm NuGet,
but we also require changes to SkiaSharp by way of (at least)
mono/SkiaSharp#4459 and mono/SkiaSharp#4487.

We will need to wait for updated NuGet packages in order to address
the above WebAssembly-related errors.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 22, 2026
Context: #23626
Context: unoplatform/uno.icu#27
Context: mono/SkiaSharp#4459
Context: mono/SkiaSharp#4487
Context: https://github.com/mono/SkiaSharp/releases/tag/v4.151.0-rc.1.1

The "chore: Update to .NET 11 Preview 6" commit mentioned:

> Context: dotnet/macios#25867
> …
> TODO:
>
>   * Update **Tests - Templates** to build for and run on .NET 11.
>     Now that dotnet/macios#25867 has been fixed, this should now be
>     possible.

With a quick sed later:

	git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g'

and an update to `run-netcore-mobile-template-tests.ps1`, we see that
many tests pass, but anything related to WebAssembly fails:

	error : undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : Aborting compilation due to previous errors [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : '/agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Node.linux-x64/11.0.0-preview.6.26359.118/tools/bin/node /agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Sdk.linux-x64/11.0.0-preview.6.26359.118/tools/emscripten/tools/compiler.mjs -' failed (returned 1) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]

This is because Emscripten/LLVM broke ABI; see also #23626.

unoplatform/uno.icu#27 contains fixes for the Uno.icu-wasm NuGet,
but we also require changes to SkiaSharp by way of (at least)
mono/SkiaSharp#4459 and mono/SkiaSharp#4487.

Bump to Uno.icu* 77.3.0-dev.4 and SkiaSharp 4.151.0-rc.1.1 to get the
Emscripten fixes and fix the above WebAssembly-related errors.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 22, 2026
Context: #23626
Context: unoplatform/uno.icu#27
Context: mono/SkiaSharp#4459
Context: mono/SkiaSharp#4487
Context: https://github.com/mono/SkiaSharp/releases/tag/v4.151.0-rc.1.1

The "chore: Update to .NET 11 Preview 6" commit mentioned:

> Context: dotnet/macios#25867
> …
> TODO:
>
>   * Update **Tests - Templates** to build for and run on .NET 11.
>     Now that dotnet/macios#25867 has been fixed, this should now be
>     possible.

With a quick sed later:

	git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g'

and an update to `run-netcore-mobile-template-tests.ps1`, we see that
many tests pass, but anything related to WebAssembly fails:

	error : undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : Aborting compilation due to previous errors [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : '/agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Node.linux-x64/11.0.0-preview.6.26359.118/tools/bin/node /agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Sdk.linux-x64/11.0.0-preview.6.26359.118/tools/emscripten/tools/compiler.mjs -' failed (returned 1) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]

This is because Emscripten/LLVM broke ABI; see also #23626.

unoplatform/uno.icu#27 contains fixes for the Uno.icu-wasm NuGet,
but we also require changes to SkiaSharp by way of (at least)
mono/SkiaSharp#4459 and mono/SkiaSharp#4487.

Bump to Uno.icu* 77.3.0-dev.4 and SkiaSharp 4.151.0-rc.1.1 to get the
Emscripten fixes and fix the above WebAssembly-related errors.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 22, 2026
Context: #23626
Context: unoplatform/uno.icu#27
Context: mono/SkiaSharp#4459
Context: mono/SkiaSharp#4487
Context: https://github.com/mono/SkiaSharp/releases/tag/v4.151.0-rc.1.1

The "chore: Update to .NET 11 Preview 6" commit mentioned:

> Context: dotnet/macios#25867
> …
> TODO:
>
>   * Update **Tests - Templates** to build for and run on .NET 11.
>     Now that dotnet/macios#25867 has been fixed, this should now be
>     possible.

With a quick sed later:

	git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g'

and an update to `run-netcore-mobile-template-tests.ps1`, we see that
many tests pass, but anything related to WebAssembly fails:

	error : undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : Aborting compilation due to previous errors [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : '/agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Node.linux-x64/11.0.0-preview.6.26359.118/tools/bin/node /agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Sdk.linux-x64/11.0.0-preview.6.26359.118/tools/emscripten/tools/compiler.mjs -' failed (returned 1) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]

This is because Emscripten/LLVM broke ABI; see also #23626.

unoplatform/uno.icu#27 contains fixes for the Uno.icu-wasm NuGet,
but we also require changes to SkiaSharp by way of (at least)
mono/SkiaSharp#4459 and mono/SkiaSharp#4487.

Bump to Uno.icu* 77.3.0-dev.4 and SkiaSharp 4.151.0-rc.1.1 to get the
Emscripten fixes and fix the above WebAssembly-related errors.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 28, 2026
Context: #23626
Context: unoplatform/uno.icu#27
Context: mono/SkiaSharp#4459
Context: mono/SkiaSharp#4487
Context: https://github.com/mono/SkiaSharp/releases/tag/v4.151.0-rc.1.1

The "chore: Update to .NET 11 Preview 6" commit mentioned:

> Context: dotnet/macios#25867
> …
> TODO:
>
>   * Update **Tests - Templates** to build for and run on .NET 11.
>     Now that dotnet/macios#25867 has been fixed, this should now be
>     possible.

With a quick sed later:

	git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g'

and an update to `run-netcore-mobile-template-tests.ps1`, we see that
many tests pass, but anything related to WebAssembly fails:

	error : undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : Aborting compilation due to previous errors [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : '/agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Node.linux-x64/11.0.0-preview.6.26359.118/tools/bin/node /agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Sdk.linux-x64/11.0.0-preview.6.26359.118/tools/emscripten/tools/compiler.mjs -' failed (returned 1) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]

This is because Emscripten/LLVM broke ABI; see also #23626.

unoplatform/uno.icu#27 contains fixes for the Uno.icu-wasm NuGet,
but we also require changes to SkiaSharp by way of (at least)
mono/SkiaSharp#4459 and mono/SkiaSharp#4487.

Bump to Uno.icu* 77.3.0-dev.4 and SkiaSharp 4.151.0-rc.1.1 to get the
Emscripten fixes and fix the above WebAssembly-related errors.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 28, 2026
Context: #23626
Context: unoplatform/uno.icu#27
Context: mono/SkiaSharp#4459
Context: mono/SkiaSharp#4487
Context: https://github.com/mono/SkiaSharp/releases/tag/v4.151.0-rc.1.1

The "chore: Update to .NET 11 Preview 6" commit mentioned:

> Context: dotnet/macios#25867
> …
> TODO:
>
>   * Update **Tests - Templates** to build for and run on .NET 11.
>     Now that dotnet/macios#25867 has been fixed, this should now be
>     possible.

With some quick **sed(1)**s later:

	git grep -l net10.0 src/SolutionTemplate                  | xargs sed -i '' 's/net10\.0/net11.0/g'
	git grep -l net10.0 build/test-scripts/run*template*.ps1  | xargs sed -i '' 's/net10\.0/net11.0/g'

we see that many tests pass, but anything related to WebAssembly fails:

	error : undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : Aborting compilation due to previous errors [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : '/agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Node.linux-x64/11.0.0-preview.6.26359.118/tools/bin/node /agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Sdk.linux-x64/11.0.0-preview.6.26359.118/tools/emscripten/tools/compiler.mjs -' failed (returned 1) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]

This is because Emscripten/LLVM broke ABI; see also #23626.

unoplatform/uno.icu#27 contains fixes for the Uno.icu-wasm NuGet,
but we also require changes to SkiaSharp by way of (at least)
mono/SkiaSharp#4459 and mono/SkiaSharp#4487.

Bump to Uno.icu* 77.3.0-dev.4 and SkiaSharp 4.151.0-rc.1.1 to get the
Emscripten fixes and fix the above WebAssembly-related errors.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 28, 2026
Context: #23626
Context: unoplatform/uno.icu#27
Context: mono/SkiaSharp#4459
Context: mono/SkiaSharp#4487
Context: https://github.com/mono/SkiaSharp/releases/tag/v4.151.0-rc.1.1

The "chore: Update to .NET 11 Preview 6" commit mentioned:

> Context: dotnet/macios#25867
> …
> TODO:
>
>   * Update **Tests - Templates** to build for and run on .NET 11.
>     Now that dotnet/macios#25867 has been fixed, this should now be
>     possible.

With some quick **sed(1)**s later:

	git grep -l net10.0 src/SolutionTemplate                  | xargs sed -i '' 's/net10\.0/net11.0/g'
	git grep -l net10.0 build/test-scripts/run*template*.ps1  | xargs sed -i '' 's/net10\.0/net11.0/g'

we see that many tests pass, but anything related to WebAssembly fails:

	error : undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : Aborting compilation due to previous errors [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : '/agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Node.linux-x64/11.0.0-preview.6.26359.118/tools/bin/node /agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Sdk.linux-x64/11.0.0-preview.6.26359.118/tools/emscripten/tools/compiler.mjs -' failed (returned 1) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]

This is because Emscripten/LLVM broke ABI; see also #23626.

unoplatform/uno.icu#27 contains fixes for the Uno.icu-wasm NuGet,
but we also require changes to SkiaSharp by way of (at least)
mono/SkiaSharp#4459 and mono/SkiaSharp#4487.

Bump to Uno.icu* 77.3.0-dev.4 and SkiaSharp 4.151.0-rc.1.1 to get the
Emscripten fixes and fix the above WebAssembly-related errors.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 29, 2026
Context: #23626
Context: unoplatform/uno.icu#27
Context: mono/SkiaSharp#4459
Context: mono/SkiaSharp#4487
Context: https://github.com/mono/SkiaSharp/releases/tag/v4.151.0-rc.1.1

The "chore: Update to .NET 11 Preview 6" commit mentioned:

> Context: dotnet/macios#25867
> …
> TODO:
>
>   * Update **Tests - Templates** to build for and run on .NET 11.
>     Now that dotnet/macios#25867 has been fixed, this should now be
>     possible.

With some quick **sed(1)**s later:

	git grep -l net10.0 src/SolutionTemplate                  | xargs sed -i '' 's/net10\.0/net11.0/g'
	git grep -l net10.0 build/test-scripts/run*template*.ps1  | xargs sed -i '' 's/net10\.0/net11.0/g'

we see that many tests pass, but anything related to WebAssembly fails:

	error : undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : Aborting compilation due to previous errors [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : '/agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Node.linux-x64/11.0.0-preview.6.26359.118/tools/bin/node /agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Sdk.linux-x64/11.0.0-preview.6.26359.118/tools/emscripten/tools/compiler.mjs -' failed (returned 1) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]

This is because Emscripten/LLVM broke ABI; see also #23626.

unoplatform/uno.icu#27 contains fixes for the Uno.icu-wasm NuGet,
but we also require changes to SkiaSharp by way of (at least)
mono/SkiaSharp#4459 and mono/SkiaSharp#4487.

Bump to Uno.icu* 77.3.0-dev.4 and SkiaSharp 4.151.0-rc.1.1 to get the
Emscripten fixes and fix the above WebAssembly-related errors.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 31, 2026
Context: #23626
Context: unoplatform/uno.icu#27
Context: mono/SkiaSharp#4459
Context: mono/SkiaSharp#4487
Context: https://github.com/mono/SkiaSharp/releases/tag/v4.151.0-rc.1.1

The "chore: Update to .NET 11 Preview 6" commit mentioned:

> Context: dotnet/macios#25867
> …
> TODO:
>
>   * Update **Tests - Templates** to build for and run on .NET 11.
>     Now that dotnet/macios#25867 has been fixed, this should now be
>     possible.

With some quick **sed(1)**s later:

	git grep -l net10.0 src/SolutionTemplate                  | xargs sed -i '' 's/net10\.0/net11.0/g'
	git grep -l net10.0 build/test-scripts/run*template*.ps1  | xargs sed -i '' 's/net10\.0/net11.0/g'

we see that many tests pass, but anything related to WebAssembly fails:

	error : undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : Aborting compilation due to previous errors [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]
	error : '/agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Node.linux-x64/11.0.0-preview.6.26359.118/tools/bin/node /agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Sdk.linux-x64/11.0.0-preview.6.26359.118/tools/emscripten/tools/compiler.mjs -' failed (returned 1) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm]

This is because Emscripten/LLVM broke ABI; see also #23626.

unoplatform/uno.icu#27 contains fixes for the Uno.icu-wasm NuGet,
but we also require changes to SkiaSharp by way of (at least)
mono/SkiaSharp#4459 and mono/SkiaSharp#4487.

Bump to Uno.icu* 77.3.0-dev.4 and SkiaSharp 4.151.0-rc.1.1 to get the
Emscripten fixes and fix the above WebAssembly-related errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant