Skip to content

Browser process segfaults when a WebGPU canvas is re-created after in-document navigation (macOS, 151.1) #4

Description

@Cristian-Vogel

Recreating a WebGPU canvas inside a live document crashes the browser process on macOS —
EXC_BAD_ACCESS (SIGSEGV) at 0x10 on CrBrowserMain, reached through
tauri_runtime_cef::external_message_pump::PumpState::do_work, at a constant PC, moments
after the new canvas first paints. The first WebGPU canvas of a document is always fine;
only re-creation within the same document lifecycle crashes.

Repro (Tauri app on tauri-cef-v3.0.0-alpha.23, SvelteKit frontend, macOS arm64):

  1. Page A holds a <canvas> with a configured webgpu context.
  2. Client-side navigate to page B — page A unmounts, canvas is garbage.
  3. Navigate back — new getContext("webgpu") + configure() on a fresh canvas.
  4. Browser process segfaults right after the first frame renders. 100% reproducible.

It is not the CN build: identical crash on the fork binaries (151.1.0+151.1.0-HEAD.3585,
first .ips) and on the stock crates.io/Spotify build (151.1.0+151.3.12, second .ips),

crash-reports.zip
Likely upstream Chromium in the embedded compositor path

Crash reports attached: fork build (…-195501.ips) and stock 151.3.12 (…-202511.ips).

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions