Skip to content

WASM link fails with SkiaSharp 4.155+ and the WebGPU backend: 'structInfo32' has already been declaredΒ #26253

Closed

Description

@ramezgerges

Current behavior πŸ›

A WebAssembly app that uses both Skia and the WebGPU backend fails to link with SkiaSharp 4.155.0 or later:

EXEC : error : …/emdawnwebgpu_pkg/webgpu/src/library_webgpu_generated_struct_info.js: error preprocessing JS library
  Internal compiler error JS compiler
  SyntaxError: Identifier 'structInfo32' has already been declared
emcc : error : '…/node … tools/compiler.mjs - --symbols-only' failed (returned 1)

SkiaSharp 4.155+ links its own copy of Dawn's emdawnwebgpu into every WebAssembly app. 4.155 passes it as link flags; 4.156+ compiles webgpu.cpp into libSkiaSharp.a and adds the JS libraries as js-library content. Uno's WebGPU backend links the same emdawnwebgpu release through --use-port, so emcc loads the same four JS libraries twice, and their build-time consts collide.

The SamplesApp always contains both backends, so the WASM build of the SkiaSharp bump (#26165, for #26179) fails in Build Wasm Skia Head.

Expected behavior 🎯

The app links with a single copy of emdawnwebgpu, and both Skia and the WebGPU backend render.

How to reproduce it (as minimally and precisely as possible) πŸ”¬

Publish the WebAssembly SamplesApp with SkiaSharpVersion set to 4.155.0 or 4.156.0-rc.1.26553.11:

dotnet publish src/SamplesApp/SamplesApp/SamplesApp.csproj -c Release -f net11.0-browserwasm -p:UnoTargetFrameworkOverride=net11.0-browserwasm

Workaround πŸ› οΈ

None in an app; staying on SkiaSharp 4.151.1 avoids it.

Affected platforms πŸ“±πŸ’»πŸ–₯️

WebAssembly

Uno.Sdk version (and other relevant versions) πŸ“¦

Uno master (7.x), SkiaSharp 4.155.0 / 4.156.0-rc.1.26553.11, emdawnwebgpu v20260624.223603.

IDE version πŸ§‘β€πŸ’»

n/a

Anything else we need to know? πŸ’¬

Both copies are the same Dawn release and the same standard webgpu.h ABI as Uno's binding, so Uno can link SkiaSharp's copy instead of its own when SkiaSharp brings one.

Activity

  1. added
    kind/bug
    triage/untriaged
    on Nov 9, 2026
  2. added a commit that references this issue on Nov 9, 2026
    9bc55e3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugtriage/untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions