dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.09k stars 4.7k forks source link

Null ref in JSMarshalerArgument.ToManaged #104470

Open stephentoub opened 3 months ago

stephentoub commented 3 months ago

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=731120 Build error leg or test failing: System.Runtime.InteropServices.JavaScript.Tests.JSImportTest.JsImportArraySegmentOfInt32 Pull request: https://github.com/dotnet/runtime/pull/104456

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "JSMarshalerArgument.ToManaged",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Failing Configuration
[Ubuntu.2204.Amd64](https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=731120&view=ms.vss-test-web.build-test-results-tab&runId=18391794&resultId=100467)
Exception Message
System.NullReferenceException : Object reference not set to an instance of an object.
CallStack
   at System.Runtime.InteropServices.JavaScript.JSMarshalerArgument.ToManaged(ArraySegment`1& )
   at System.Runtime.InteropServices.JavaScript.Tests.JavaScriptTestHelper.echo1_ArraySegmentOfInt32(ArraySegment`1 value, Boolean edit)
   at System.Runtime.InteropServices.JavaScript.Tests.JSImportTest.JsImportArraySegmentOfInt32()
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object , BindingFlags )

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=731120 Error message validated: [JSMarshalerArgument.ToManaged] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 7/5/2024 12:54:19 PM UTC

Report

Build Definition Test Pull Request
835716 dotnet/runtime WasmTestOnChrome-MT-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution dotnet/runtime#108533
828044 dotnet/runtime WasmTestOnChrome-MT-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution dotnet/runtime#108562
813958 dotnet/runtime WasmTestOnChrome-MT-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution dotnet/runtime#108059
812671 dotnet/runtime WasmTestOnChrome-MT-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution dotnet/runtime#107836
803799 dotnet/runtime WasmTestOnChrome-MT-System.Runtime.InteropServices.JavaScript.Tests.WorkItemExecution dotnet/runtime#107593

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 2 5
pavelsavara commented 2 weeks ago

Could this be the root cause ? https://github.com/dotnet/runtime/issues/107974