dotnet / dotnet/runtime

[browser][coreclr] TypeError: (Module.preRun || []) is not iterable

Open
#132,555 1 comment 1 reaction 1 assignee Claimed by @pavelsavara View on GitHub
arch-wasm area-System.Runtime.InteropServices.JavaScript os-browser
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Raised on https://github.com/dotnet/runtime/pull/132478 ([log](https://helix.dot.net/api/2019-06-17/jobs/82572f47-234f-47d8-a327-9ba5fc717360/workitems/WBT-Workloads-CLR-ST-Wasm.Build.Tests.MemoryTests/console)) when migrated CoreCLR Wasm.Build.Tests to standard workload.

```
[error] DOTNET: Unhandled error: (Module.preRun || []) is not iterable
TypeError: (Module.preRun || []) is not iterable
at Object.dotnetInitializeModule (http://127.0.0.1:44895/_framework/dotnet.native.0ywy2ly7o4.js:1:71378)
at Object.selfInitialize (http://127.0.0.1:44895/_framework/dotnet.native.0ywy2ly7o4.js:1:70132)
at createDotnetRuntime (http://127.0.0.1:44895/_framework/dotnet.native.0ywy2ly7o4.js:1:111050)
at Module.dotnetInitializeModule (http://127.0.0.1:44895/_framework/dotnet.native.0ywy2ly7o4.js:18:12)
at Fe (http://127.0.0.1:44895/_framework/dotnet.u8pojv2t7z.js:5:26906)
at async Object.create (http://127.0.0.1:44895/_framework/dotnet.u8pojv2t7z.js:5:32740)
at async http://127.0.0.1:44895/main.js:281:106
[info] DOTNET: Aborting startup, reason: TypeError: (Module.preRun || []) is not iterable
Exited with 1
[log] WASM EXIT 1
[ERROR] PageError: TypeError: (Module.preRun || []) is not iterable
at Object.dotnetInitializeModule (http://127.0.0.1:44895/_framework/dotnet.native.0ywy2ly7o4.js:1:71378)
at Object.selfInitialize (http://127.0.0.1:44895/_framework/dotnet.native.0ywy2ly7o4.js:1:70132)
at createDotnetRuntime (http://127.0.0.1:44895/_framework/dotnet.native.0ywy2ly7o4.js:1:111050)
at Module.dotnetInitializeModule (http://127.0.0.1:44895/_framework/dotnet.native.0ywy2ly7o4.js:18:12)
at Fe (http://127.0.0.1:44895/_framework/dotnet.u8pojv2t7z.js:5:26906)
at async Object.create (http://127.0.0.1:44895/_framework/dotnet.u8pojv2t7z.js:5:32740)
at async http://127.0.0.1:44895/main.js:281:106
Browser has been disconnected
Wasm.Build.Tests.MemoryTests.AllocateLargeHeapThenRepeatedlyInterop [FAIL]
System.Exception : Expected exit code 0 but got 1.
consoleOutput=DOTNET: Unhandled error: (Module.preRun || []) is not iterable
TypeError: (Module.preRun || []) is not iterable
at Object.dotnetInitializeModule (http://127.0.0.1:44895/_framework/dotnet.native.0ywy2ly7o4.js:1:71378)
at Object.selfInitialize (http://127.0.0.1:44895/_framework/dotnet.native.0ywy2ly7o4.js:1:70132)
at createDotnetRuntime (http://127.0.0.1:44895/_framework/dotnet.native.0ywy2ly7o4.js:1:111050)
at Module.dotnetInitializeModule (http://127.0.0.1:44895/_framework/dotnet.native.0ywy2ly7o4.js:18:12)
at Fe (http://127.0.0.1:44895/_framework/dotnet.u8pojv2t7z.js:5:26906)
at async Object.create (http://127.0.0.1:44895/_framework/dotnet.u8pojv2t7z.js:5:32740)
at async http://127.0.0.1:44895/main.js:281:106
DOTNET: Aborting startup, reason: TypeError: (Module.preRun || []) is not iterable
Stack Trace:
/_/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTestsBase.cs(570,0): at Wasm.Build.Tests.WasmTemplateTestsBase.BrowserRun(ToolCommand cmd, String runArgs, RunOptions runOptions)
/_/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTestsBase.cs(572,0): at Wasm.Build.Tests.WasmTemplateTestsBase.BrowserRun(ToolCommand cmd, String runArgs, RunOptions runOptions)
/_/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTestsBase.cs(513,0): at Wasm.Build.Tests.WasmTemplateTestsBase.BrowserRunTest(String runArgs, String workingDirectory, RunOptions runOptions)
/_/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTestsBase.cs(484,0): at Wasm.Build.Tests.WasmTemplateTestsBase.BrowserRun(RunOptions runOptions)
/_/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTestsBase.cs(470,0): at Wasm.Build.Tests.WasmTemplateTestsBase.RunForBuildWithDotnetRun(RunOptions runOptions)
/_/src/mono/wasm/Wasm.Build.Tests/MemoryTests.cs(46,0): at Wasm.Build.Tests.MemoryTests.AllocateLargeHeapThenRepeatedlyInterop()
```

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.