dotnet / dotnet/runtime

Wasm.Build.Tests.LibraryInitializerTests.AbortStartupOnError failure in CI on Linux

Open
#129,617 2 comments 0 reactions 1 assignee Claimed by @pavelsavara View on GitHub
arch-wasm area-Infrastructure Known Build Error os-browser
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

## Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1466790
Build error leg or test failing: Wasm.Build.Tests.LibraryInitializerTests.AbortStartupOnError
Pull request: https://github.com/dotnet/runtime/pull/129207

## Error Message

**DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK** otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.

Fill the error message using [step by step known issues guidance](https://github.com/dotnet/arcade/blob/main/Documentation/Build%20Analysis/KnownIssueJsonStepByStep.md).

```json
{
"ErrorMessage": ["The library initializer test didn't emit expected error message.","WASM EXIT 1"],
"BuildRetry": false,
"ExcludeConsoleLog": false
}
```

```
Wasm.Build.Tests.LibraryInitializerTests.AbortStartupOnError [STARTING]

** -------- publish -------- **

Binlog path: /root/helix/work/workitem/uploads/xharness-output/logs/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/WasmBasicTestApp-publish.binlog
[] Executing (Captured Output) - /root/helix/work/workitem/e/dotnet-none/dotnet publish -bl:/root/helix/work/workitem/uploads/xharness-output/logs/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/WasmBasicTestApp-publish.binlog -p:Configuration=Debug -nr:false -p:CompressionEnabled=false -p:WasmEnableHotReload=false - in pwd /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/App
[DOTNET_ROOT] = /root/helix/work/workitem/e/dotnet-none
[DOTNET_INSTALL_DIR] = /root/helix/work/workitem/e/dotnet-none
[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
[PATH] = /root/helix/work/workitem/e/dotnet-none:/__w/1/s/artifacts/bin/geckodriver/geckodriver:/root/helix/work/correlation/dotnet-none:/root/helix/work/correlation/xharness-cli:/root/helix/work/correlation/dotnet-cli:/root/helix/work/correlation/chrome-linux:/root/helix/work/correlation/chromedriver_linux64:/home/helixbot/.jsvu/bin:/home/helixbot/.vsts-env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[EM_WORKAROUND_PYTHON_BUG_34780] = 1
[WasmTestSupport] = true
[WasmTestExitOnUnhandledError] = true
[WasmTestLogExitCode] = true
[REPOSITORY_ENGINEERING_DIR] = /root/helix/work/correlation/build/eng/
[BROWSER_BUILD_TARGETS_DIR] = /root/helix/work/correlation/build/wasm/
[WASM_APP_BUILDER_TASKS_ASSEMBLY_PATH] = /root/helix/work/correlation/build/WasmAppBuilder/WasmAppBuilder.dll
[EMSDK_PATH] = /root/helix/work/correlation/build/emsdk/
[MINIPAL_INCLUDE_DIR] = /root/helix/work/correlation/build/minipal/
[CORECLR_VM_WASM_INCLUDE_DIR] = /root/helix/work/correlation/build/coreclr-vm-wasm/
[NUGET_PACKAGES] = /root/helix/work/workitem/e/wbt artifacts/nuget/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉
[TreatPreviousAsCurrent] = false
[] Determining projects to restore...
[] Restored /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/Json/Json.csproj (in 124 ms).
[] Restored /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/ResourceLibrary/ResourceLibrary.csproj (in 3 ms).
[] Restored /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/LazyLibrary/LazyLibrary.csproj (in 12 ms).
[] Restored /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/App/WasmBasicTestApp.csproj (in 2.23 sec).
[] /root/helix/work/workitem/e/dotnet-none/sdk/11.0.100-preview.6.26302.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/App/WasmBasicTestApp.csproj]
[] /root/helix/work/workitem/e/dotnet-none/sdk/11.0.100-preview.6.26302.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/ResourceLibrary/ResourceLibrary.csproj]
[] ResourceLibrary -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/ResourceLibrary/bin/Debug/net11.0/ResourceLibrary.dll
[] Json -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/Json/bin/Debug/net11.0/Json.dll
[] LazyLibrary -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/LazyLibrary/bin/Debug/net11.0/browser-wasm/LazyLibrary.dll
[] WasmBasicTestApp -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/App/bin/Debug/net11.0/WasmBasicTestApp.dll
[] ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/wbt artifacts/nuget/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/microsoft.netcore.app.runtime.browser-wasm/11.0.0-ci'
[] Optimizing assemblies for size. This process might take a while.
[] Json -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/Json/bin/Debug/net11.0/Json.dll
[] ResourceLibrary -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/ResourceLibrary/bin/Debug/net11.0/ResourceLibrary.dll
[] LazyLibrary -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/LazyLibrary/bin/Debug/net11.0/browser-wasm/LazyLibrary.dll
[] Publishing without optimizations. Although it's optional for Blazor, we strongly recommend using `wasm-tools` workload! You can install it by running `dotnet workload install wasm-tools` from the command line.
[] WasmBasicTestApp -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/App/bin/Debug/net11.0/publish/
Replacing dotnet process output with messages from binlog
[] Executing - /root/helix/work/workitem/e/dotnet-none/dotnet /root/helix/work/correlation/microsoft.dotnet.xharness.cli/11.0.0-prerelease.26301.2/tools/net8.0/any/Microsoft.DotNet.XHarness.CLI.dll wasm webserver --app=. --web-server-use-default-files in pwd /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/App/bin/Debug/net11.0/publish/wwwroot
[DOTNET_ROOT] = /root/helix/work/workitem/e/dotnet-none
[DOTNET_INSTALL_DIR] = /root/helix/work/workitem/e/dotnet-none
[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
[PATH] = /root/helix/work/workitem/e/dotnet-none:/__w/1/s/artifacts/bin/geckodriver/geckodriver:/root/helix/work/correlation/dotnet-none:/root/helix/work/correlation/xharness-cli:/root/helix/work/correlation/dotnet-cli:/root/helix/work/correlation/chrome-linux:/root/helix/work/correlation/chromedriver_linux64:/home/helixbot/.jsvu/bin:/home/helixbot/.vsts-env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[EM_WORKAROUND_PYTHON_BUG_34780] = 1
[WasmTestSupport] = true
[WasmTestExitOnUnhandledError] = true
[WasmTestLogExitCode] = true
[REPOSITORY_ENGINEERING_DIR] = /root/helix/work/correlation/build/eng/
[BROWSER_BUILD_TARGETS_DIR] = /root/helix/work/correlation/build/wasm/
[WASM_APP_BUILDER_TASKS_ASSEMBLY_PATH] = /root/helix/work/correlation/build/WasmAppBuilder/WasmAppBuilder.dll
[EMSDK_PATH] = /root/helix/work/correlation/build/emsdk/
[MINIPAL_INCLUDE_DIR] = /root/helix/work/correlation/build/minipal/
[CORECLR_VM_WASM_INCLUDE_DIR] = /root/helix/work/correlation/build/coreclr-vm-wasm/
[] [11.0.0-prerelease.26301.2+fa7fbebf9168e8858971f9d0c71b2b08f2f7b106] XHarness command issued: wasm webserver --app=. --web-server-use-default-files
[] [09:41:02] info: Now listening on: http://127.0.0.1:36695
Launching chrome ('/root/helix/work/correlation/chrome-linux/chrome') via playwright with args = --explicitly-allowed-ports=36695,--ignore-certificate-errors,--lang=en-US,--headless
Waiting for page to load
Waiting for additional 10secs to see if any errors are reported
Exited with 1
[log] WASM EXIT 1
Browser has been disconnected
Wasm.Build.Tests.LibraryInitializerTests.AbortStartupOnError [FAIL]
The library initializer test didn't emit expected error message.
Console output:
WASM EXIT 1
Stack Trace:
/_/src/mono/wasm/Wasm.Build.Tests/LibraryInitializerTests.cs(63,0): at Wasm.Build.Tests.LibraryInitializerTests.AbortStartupOnError()
--- End of stack trace from previous location ---
Output:

** -------- publish -------- **

Binlog path: /root/helix/work/workitem/uploads/xharness-output/logs/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/WasmBasicTestApp-publish.binlog
[] Executing (Captured Output) - /root/helix/work/workitem/e/dotnet-none/dotnet publish -bl:/root/helix/work/workitem/uploads/xharness-output/logs/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/WasmBasicTestApp-publish.binlog -p:Configuration=Debug -nr:false -p:CompressionEnabled=false -p:WasmEnableHotReload=false - in pwd /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/App
[DOTNET_ROOT] = /root/helix/work/workitem/e/dotnet-none
[DOTNET_INSTALL_DIR] = /root/helix/work/workitem/e/dotnet-none
[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
[PATH] = /root/helix/work/workitem/e/dotnet-none:/__w/1/s/artifacts/bin/geckodriver/geckodriver:/root/helix/work/correlation/dotnet-none:/root/helix/work/correlation/xharness-cli:/root/helix/work/correlation/dotnet-cli:/root/helix/work/correlation/chrome-linux:/root/helix/work/correlation/chromedriver_linux64:/home/helixbot/.jsvu/bin:/home/helixbot/.vsts-env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[EM_WORKAROUND_PYTHON_BUG_34780] = 1
[WasmTestSupport] = true
[WasmTestExitOnUnhandledError] = true
[WasmTestLogExitCode] = true
[REPOSITORY_ENGINEERING_DIR] = /root/helix/work/correlation/build/eng/
[BROWSER_BUILD_TARGETS_DIR] = /root/helix/work/correlation/build/wasm/
[WASM_APP_BUILDER_TASKS_ASSEMBLY_PATH] = /root/helix/work/correlation/build/WasmAppBuilder/WasmAppBuilder.dll
[EMSDK_PATH] = /root/helix/work/correlation/build/emsdk/
[MINIPAL_INCLUDE_DIR] = /root/helix/work/correlation/build/minipal/
[CORECLR_VM_WASM_INCLUDE_DIR] = /root/helix/work/correlation/build/coreclr-vm-wasm/
[NUGET_PACKAGES] = /root/helix/work/workitem/e/wbt artifacts/nuget/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉
[TreatPreviousAsCurrent] = false
[] Determining projects to restore...
[] Restored /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/Json/Json.csproj (in 124 ms).
[] Restored /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/ResourceLibrary/ResourceLibrary.csproj (in 3 ms).
[] Restored /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/LazyLibrary/LazyLibrary.csproj (in 12 ms).
[] Restored /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/App/WasmBasicTestApp.csproj (in 2.23 sec).
[] /root/helix/work/workitem/e/dotnet-none/sdk/11.0.100-preview.6.26302.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/App/WasmBasicTestApp.csproj]
[] /root/helix/work/workitem/e/dotnet-none/sdk/11.0.100-preview.6.26302.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/ResourceLibrary/ResourceLibrary.csproj]
[] ResourceLibrary -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/ResourceLibrary/bin/Debug/net11.0/ResourceLibrary.dll
[] Json -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/Json/bin/Debug/net11.0/Json.dll
[] LazyLibrary -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/LazyLibrary/bin/Debug/net11.0/browser-wasm/LazyLibrary.dll
[] WasmBasicTestApp -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/App/bin/Debug/net11.0/WasmBasicTestApp.dll
[] ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/wbt artifacts/nuget/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/microsoft.netcore.app.runtime.browser-wasm/11.0.0-ci'
[] Optimizing assemblies for size. This process might take a while.
[] Json -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/Json/bin/Debug/net11.0/Json.dll
[] ResourceLibrary -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/ResourceLibrary/bin/Debug/net11.0/ResourceLibrary.dll
[] LazyLibrary -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/LazyLibrary/bin/Debug/net11.0/browser-wasm/LazyLibrary.dll
[] Publishing without optimizations. Although it's optional for Blazor, we strongly recommend using `wasm-tools` workload! You can install it by running `dotnet workload install wasm-tools` from the command line.
[] WasmBasicTestApp -> /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/App/bin/Debug/net11.0/publish/
Replacing dotnet process output with messages from binlog
[] Executing - /root/helix/work/workitem/e/dotnet-none/dotnet /root/helix/work/correlation/microsoft.dotnet.xharness.cli/11.0.0-prerelease.26301.2/tools/net8.0/any/Microsoft.DotNet.XHarness.CLI.dll wasm webserver --app=. --web-server-use-default-files in pwd /root/helix/work/workitem/e/wbt artifacts/LibraryInitializerTests_AbortStartupOnError_Debug_False_ewk4nkln_njh_鿀蜒枛遫䡫煉/App/bin/Debug/net11.0/publish/wwwroot
[DOTNET_ROOT] = /root/helix/work/workitem/e/dotnet-none
[DOTNET_INSTALL_DIR] = /root/helix/work/workitem/e/dotnet-none
[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
[PATH] = /root/helix/work/workitem/e/dotnet-none:/__w/1/s/artifacts/bin/geckodriver/geckodriver:/root/helix/work/correlation/dotnet-none:/root/helix/work/correlation/xharness-cli:/root/helix/work/correlation/dotnet-cli:/root/helix/work/correlation/chrome-linux:/root/helix/work/correlation/chromedriver_linux64:/home/helixbot/.jsvu/bin:/home/helixbot/.vsts-env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[EM_WORKAROUND_PYTHON_BUG_34780] = 1
[WasmTestSupport] = true
[WasmTestExitOnUnhandledError] = true
[WasmTestLogExitCode] = true
[REPOSITORY_ENGINEERING_DIR] = /root/helix/work/correlation/build/eng/
[BROWSER_BUILD_TARGETS_DIR] = /root/helix/work/correlation/build/wasm/
[WASM_APP_BUILDER_TASKS_ASSEMBLY_PATH] = /root/helix/work/correlation/build/WasmAppBuilder/WasmAppBuilder.dll
[EMSDK_PATH] = /root/helix/work/correlation/build/emsdk/
[MINIPAL_INCLUDE_DIR] = /root/helix/work/correlation/build/minipal/
[CORECLR_VM_WASM_INCLUDE_DIR] = /root/helix/work/correlation/build/coreclr-vm-wasm/
[] [11.0.0-prerelease.26301.2+fa7fbebf9168e8858971f9d0c71b2b08f2f7b106] XHarness command issued: wasm webserver --app=. --web-server-use-default-files
[] [09:41:02] info: Now listening on: http://127.0.0.1:36695
Launching chrome ('/root/helix/work/correlation/chrome-linux/chrome') via playwright with args = --explicitly-allowed-ports=36695,--ignore-certificate-errors,--lang=en-US,--headless
Waiting for page to load
Waiting for additional 10secs to see if any errors are reported
Exited with 1
[log] WASM EXIT 1
Browser has been disconnected
Wasm.Build.Tests.LibraryInitializerTests.AbortStartupOnError [FINISHED] Time: 41.4848842s
```

### Known issue validation
**Build: :mag_right:** https://dev.azure.com/dnceng-public/public/_build/results?buildId=1466790
**Error message validated:** `[The library initializer test didn't emit expected error message. WASM EXIT 1`]
**Result validation:** :white_check_mark: Known issue matched with the provided build.
**Validation performed at:** 6/19/2026 1:08:31 PM UTC

### Report

|Build|Repository|Test|Pull Request|
|---|---|---|---|
|[1580550](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1580550)|dotnet/runtime|[Wasm.Build.Tests.AppSettingsTests.LoadAppSettingsBasedOnApplicationEnvironment](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1580550&view=ms.vss-test-web.build-test-results-tab&runId=43601138&resultId=100002)|dotnet/runtime#132965|
#### Summary
|24-Hour Hit Count|7-Day Hit Count|1-Month Count|
|---|---|---|
|0|0|1|

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.