Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[browser] mono runtime already exited with 0 #89425

Closed
pavelsavara opened this issue Jul 25, 2023 · 7 comments
Closed

[browser] mono runtime already exited with 0 #89425

pavelsavara opened this issue Jul 25, 2023 · 7 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm
Milestone

Comments

@pavelsavara
Copy link
Member

pavelsavara commented Jul 25, 2023

Error Blob

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=350621&view=results
Log: https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-89387-merge-7052a2aebdb04a27be/WasmTestOnNodeJS-System.Net.WebSockets.Client.Tests/1/console.ec43186b.log?helixlogtype=result

{
  "ErrorMessage": "mono runtime already exited with",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Reproduction Steps

wasm System.Net.WebSockets.Client.Tests nodeJS

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=350621
Error message validated: mono runtime already exited with
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/25/2023 9:31:59 AM UTC

Report

Build Definition Test Pull Request
457734 dotnet/runtime WasmTestOnNodeJS-System.Net.Http.Functional.Tests.WorkItemExecution #94204
457289 dotnet/runtime WasmTestOnNodeJS-System.Net.Http.Functional.Tests.WorkItemExecution #94204
456278 dotnet/runtime WasmTestOnNodeJS-System.Net.Http.Functional.Tests.WorkItemExecution #94204

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 3
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-System.Runtime.InteropServices.JavaScript Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm labels Jul 25, 2023
@pavelsavara pavelsavara added this to the 8.0.0 milestone Jul 25, 2023
@pavelsavara pavelsavara self-assigned this Jul 25, 2023
@ghost
Copy link

ghost commented Jul 25, 2023

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

Issue Details

Error Blob

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=350621&view=results

{
  "ErrorMessage": "mono runtime already exited with",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Reproduction Steps

wasm System.Net.WebSockets.Client.Tests nodeJS

Author: pavelsavara
Assignees: pavelsavara
Labels:

arch-wasm, blocking-clean-ci, area-System.Runtime.InteropServices.JavaScript, Known Build Error, os-browser

Milestone: 8.0.0

@pavelsavara
Copy link
Member Author

pavelsavara commented Aug 2, 2023

Finally we have also stack trace, WasmTestOnNodeJS-System.Net.Http.Functional.Tests Log

[17:01:34] info: === TEST EXECUTION SUMMARY ===
[17:01:34] info: Total: 511, Errors: 0, Failed: 0, Skipped: 89, Time: 4.5920939s
[17:01:34] info: 
[17:01:34] info: MONO_WASM: Proxy of C# function with GCHandle 70 was still alive. disposing.
[17:01:34] info: MONO_WASM: Proxy of C# function with GCHandle 278 was still alive. disposing.
[17:01:34] info: MONO_WASM: Proxy of C# function with GCHandle 422 was still alive. disposing.
[17:01:34] info: MONO_WASM: Proxy of C# function with GCHandle 342 was still alive. disposing.
[17:01:34] info: MONO_WASM: Proxy of C# object with GCHandle 358 was still alive. disposing.
[17:01:34] info: MONO_WASM: Proxy of C# function with GCHandle 374 was still alive. disposing.
[17:01:34] info: MONO_WASM: Proxy of C# object with GCHandle 390 was still alive. disposing.
[17:01:34] info: MONO_WASM: Proxy of C# function with GCHandle 198 was still alive. disposing.
[17:01:34] info: MONO_WASM: Proxy of C# object with GCHandle 246 was still alive. disposing.
[17:01:34] info: file:///root/helix/work/workitem/e/test-main.js:31
[17:01:34] info:             throw ex;
[17:01:34] info:             ^
[17:01:34] info: 
[17:01:34] info: Error: Assert failed: mono runtime already exited with 0
[17:01:34] info:     at fe (file:///root/helix/work/workitem/e/_framework/dotnet.js:3:17543)
[17:01:34] info:     at Object.ge [as assert_runtime_running] (file:///root/helix/work/workitem/e/_framework/dotnet.js:3:17750)
[17:01:34] info:     at Object.p.javaScriptExports.call_delegate (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:200872)
[17:01:34] info:     at i (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:31721)
[17:01:34] info:     at WebSocket.o.addEventListener.once (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:60619)
[17:01:34] info:     at WebSocket.onClose (/root/helix/work/workitem/e/node_modules/ws/lib/event-target.js:210:18)
[17:01:34] info:     at Object.onceWrapper (node:events:628:26)
[17:01:34] info:     at WebSocket.emit (node:events:513:28)
[17:01:34] info:     at WebSocket.emitClose (/root/helix/work/workitem/e/node_modules/ws/lib/websocket.js:257:10)
[17:01:34] info:     at Socket.socketOnClose (/root/helix/work/workitem/e/node_modules/ws/lib/websocket.js:1178:15)
[17:01:34] info:     at Socket.emit (node:events:513:28)
[17:01:34] info:     at TCP.<anonymous> (node:net:301:12)

@pavelsavara
Copy link
Member Author

We have another Log

[19:06:02] info: MONO_WASM: Proxy of C# function with GCHandle 422 was still alive. disposing.
[19:06:02] info: MONO_WASM: Proxy of C# object with GCHandle 438 was still alive. disposing.
[19:06:02] info: MONO_WASM: Proxy of C# function with GCHandle 454 was still alive. disposing.
[19:06:02] info: MONO_WASM: Proxy of C# object with GCHandle 470 was still alive. disposing.
[19:06:02] info: MONO_WASM: Proxy of C# function with GCHandle 230 was still alive. disposing.
[19:06:02] info: MONO_WASM: Proxy of C# function with GCHandle 374 was still alive. disposing.
[19:06:02] info: MONO_WASM: Proxy of C# function with GCHandle 390 was still alive. disposing.
[19:06:02] info: MONO_WASM: Proxy of C# function with GCHandle 486 was still alive. disposing.
[19:06:02] info: MONO_WASM: Proxy of C# object with GCHandle 86 was still alive. disposing.
[19:06:02] info: MONO_WASM: Proxy of JS object with JSHandle 5 was still alive. disposing.
[19:06:02] info: file:///root/helix/work/workitem/e/test-main.js:31
[19:06:02] info:             throw ex;
[19:06:02] info:             ^
[19:06:02] info: 
[19:06:02] info: Error: Assert failed: mono runtime already exited with 0
[19:06:02] info:     at De (file:///root/helix/work/workitem/e/_framework/dotnet.js:3:20455)
[19:06:02] info:     at Object.Oe [as assert_runtime_running] (file:///root/helix/work/workitem/e/_framework/dotnet.js:3:20662)
[19:06:02] info:     at Object.p.javaScriptExports.call_delegate (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:200981)
[19:06:02] info:     at i (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:31836)
[19:06:02] info:     at WebSocket.u (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:60647)
[19:06:02] info:     at WebSocket.onClose (/root/helix/work/workitem/e/node_modules/ws/lib/event-target.js:210:18)
[19:06:02] info:     at Object.onceWrapper (node:events:628:26)
[19:06:02] info:     at WebSocket.emit (node:events:513:28)
[19:06:02] info:     at WebSocket.emitClose (/root/helix/work/workitem/e/node_modules/ws/lib/websocket.js:257:10)
[19:06:02] info:     at Socket.socketOnClose (/root/helix/work/workitem/e/node_modules/ws/lib/websocket.js:1178:15)
[19:06:02] info:     at Socket.emit (node:events:513:28)
[19:06:02] info:     at TCP.<anonymous> (node:net:301:12)

@pavelsavara
Copy link
Member Author

Another Log

[15:01:31] info: MONO_WASM: mono_exit failed Error: WebSocket was closed before the connection was established
[15:01:31] info:     at WebSocket.close (/root/helix/work/workitem/e/node_modules/ws/lib/websocket.js:284:14)
[15:01:31] info:     at js (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:63397)
[15:01:31] info:     at WebSocket.o.dispose (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:61251)
[15:01:31] info:     at Object.ro [as forceDisposeProxies] (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:45730)
[15:01:31] info:     at xe (file:///root/helix/work/workitem/e/_framework/dotnet.js:3:22063)
[15:01:31] info:     at run (file:///root/helix/work/workitem/e/test-main.js:392:17)
[15:01:31] info:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[15:01:31] info:     at async file:///root/helix/work/workitem/e/test-main.js:406:1
[15:01:31] info: file:///root/helix/work/workitem/e/test-main.js:31
[15:01:31] info:             throw ex;
[15:01:31] info:             ^
[15:01:31] info: 
[15:01:31] info: Error: Assert failed: mono runtime already exited with 0
[15:01:31] info:     at Ee (file:///root/helix/work/workitem/e/_framework/dotnet.js:3:20026)
[15:01:31] info:     at Object.Ae [as assert_runtime_running] (file:///root/helix/work/workitem/e/_framework/dotnet.js:3:20233)
[15:01:31] info:     at Object.p.javaScriptExports.call_delegate (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:201163)
[15:01:31] info:     at i (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:31836)
[15:01:31] info:     at WebSocket.u (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:60647)
[15:01:31] info:     at WebSocket.onClose (/root/helix/work/workitem/e/node_modules/ws/lib/event-target.js:210:18)
[15:01:31] info:     at Object.onceWrapper (node:events:628:26)
[15:01:31] info:     at WebSocket.emit (node:events:513:28)
[15:01:31] info:     at WebSocket.emitClose (/root/helix/work/workitem/e/node_modules/ws/lib/websocket.js:257:10)
[15:01:31] info:     at Socket.socketOnClose (/root/helix/work/workitem/e/node_modules/ws/lib/websocket.js:1178:15)
[15:01:31] info:     at Socket.emit (node:events:513:28)
[15:01:31] info:     at TCP.<anonymous> (node:net:301:12)

pavelsavara added a commit to pavelsavara/runtime that referenced this issue Aug 8, 2023
@pavelsavara pavelsavara modified the milestones: 8.0.0, 9.0.0 Aug 10, 2023
@pavelsavara
Copy link
Member Author

Another Log

info: Error: Assert failed: mono runtime already exited with 0
info:     at De (file:///root/helix/work/workitem/e/_framework/dotnet.js:3:18481)
info:     at Object.Oe [as assert_runtime_running] (file:///root/helix/work/workitem/e/_framework/dotnet.js:3:18688)
info:     at l.javaScriptExports.call_delegate (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:211136)
info:     at i (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:31204)
info:     at WebSocket.u (file:///root/helix/work/workitem/e/_framework/dotnet.runtime.js:3:82130)
info:     at WebSocket.onClose (/root/helix/work/workitem/e/node_modules/ws/lib/event-target.js:210:18)
info:     at Object.onceWrapper (node:events:629:26)
info:     at WebSocket.emit (node:events:514:28)
info:     at WebSocket.emitClose (/root/helix/work/workitem/e/node_modules/ws/lib/websocket.js:257:10)
info:     at Socket.socketOnClose (/root/helix/work/workitem/e/node_modules/ws/lib/websocket.js:1178:15)
info:     at Socket.emit (node:events:514:28)
info:     at TCP.<anonymous> (node:net:323:12)

@build-analysis build-analysis bot removed this from the 9.0.0 milestone Nov 15, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 15, 2023
@pavelsavara pavelsavara added this to the 9.0.0 milestone Nov 20, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 20, 2023
@lewing
Copy link
Member

lewing commented Nov 29, 2023

can we close this?

@pavelsavara
Copy link
Member Author

Hopefully this was fixed by #93472

@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm
Projects
None yet
Development

No branches or pull requests

2 participants