Skip to content

[browser][mono][MT] Uncaught TypeError: He._emscripten_force_exit is not a function - #131524

Merged
pavelsavara merged 2 commits into
dotnet:mainfrom
pavelsavara:fix_MT
Jul 29, 2026
Merged

[browser][mono][MT] Uncaught TypeError: He._emscripten_force_exit is not a function#131524
pavelsavara merged 2 commits into
dotnet:mainfrom
pavelsavara:fix_MT

Conversation

@pavelsavara

Copy link
Copy Markdown
Member

Log

[10:48:35] info: MONO_WASM: Uncaught TypeError: He._emscripten_force_exit is not a function
                 Error
                     at Object.eo [as mono_exit] (http://127.0.0.1:37617/_framework/dotnet.js:4:24400)
                     at tt.config.exitOnUnhandledError.e.onerror (http://127.0.0.1:37617/_framework/dotnet.runtime.1f097nq1pv.js:3:207546)

@pavelsavara pavelsavara added this to the 11.0.0 milestone Jul 29, 2026
@pavelsavara
pavelsavara requested review from akoeplinger and maraf July 29, 2026 12:39
@pavelsavara pavelsavara self-assigned this Jul 29, 2026
Copilot AI review requested due to automatic review settings July 29, 2026 12:39
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-Build-mono labels Jul 29, 2026
@pavelsavara

Copy link
Copy Markdown
Member Author

/azp run runtime-wasm

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Mono browser build configuration (browser.proj) to export an additional Emscripten symbol when building with WasmEnableThreads=true, in response to a missing _emscripten_force_exit function at runtime.

Changes:

  • Adds emscripten_force_exit to the list of exported Emscripten runtime methods under the threads-enabled condition.

Comment thread src/mono/browser/browser.proj
@pavelsavara

Copy link
Copy Markdown
Member Author

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 29, 2026 13:37
@pavelsavara

Copy link
Copy Markdown
Member Author

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@pavelsavara

Copy link
Copy Markdown
Member Author

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@pavelsavara
pavelsavara marked this pull request as ready for review July 29, 2026 16:42
@pavelsavara
pavelsavara requested a review from lewing as a code owner July 29, 2026 16:42
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-wasm WebAssembly architecture area-Build-mono

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants