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][MT] RangeError: offset is out of bounds #98630

Closed
pavelsavara opened this issue Feb 18, 2024 · 1 comment
Closed

[browser][MT] RangeError: offset is out of bounds #98630

pavelsavara opened this issue Feb 18, 2024 · 1 comment
Assignees
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono 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 Feb 18, 2024

Error Blob

{
  "ErrorMessage": "RangeError: offset is out of bounds",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Reproduction Steps

Log

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

[13:10:43] info: [FAIL] System.Net.Http.Functional.Tests.HttpContentTest.ReadAsStringAsync_Buffered_IgnoresCancellationToken
[13:10:43] info: System.Runtime.InteropServices.JavaScript.JSException : RangeError: offset is out of bounds
[13:10:43] info:    at System.Net.Http.BrowserHttpInterop.GetResponseBytes(JSObject fetchResponse, Span`1 buffer)
[13:10:43] info:    at System.Net.Http.BrowserHttpContent.GetResponseData(CancellationToken cancellationToken)
[13:10:43] info:    at System.Net.Http.BrowserHttpContent.SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken)
[13:10:43] info:    at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
[13:10:43] info:    at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
[13:10:43] info:    at System.Net.Http.Functional.Tests.HttpContentTest.<>c__DisplayClass48_0.<<ReadAsStringAsync_Buffered_IgnoresCancellationToken>b__0>d.MoveNext()
[13:10:43] info: --- End of stack trace from previous location ---
[13:10:43] info:    at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
[13:10:43] info: --- End of stack trace from previous location ---
[13:10:43] info:    at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
[13:10:43] info:    at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext()
[13:10:43] info: --- End of stack trace from previous location ---
[13:10:43] info:    at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options)
[13:10:43] info:    at System.Net.Http.Functional.Tests.HttpContentTest.ReadAsStringAsync_Buffered_IgnoresCancellationToken()
[13:10:43] info: --- End of stack trace from previous location ---
[13:10:43] info: ... omitted JavaScript stack trace from another thread.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=571119
Error message validated: [RangeError: offset is out of bounds]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 2/18/2024 3:04:50 PM UTC

Report

Build Definition Test Pull Request
572034 dotnet/runtime WasmTestOnBrowser-System.Net.Http.Functional.Tests.WorkItemExecution #98118
571475 dotnet/runtime WasmTestOnBrowser-System.Net.Http.Functional.Tests.WorkItemExecution #98118
571119 dotnet/runtime WasmTestOnBrowser-System.Net.Http.Functional.Tests.WorkItemExecution #98118
570997 dotnet/runtime WasmTestOnBrowser-System.Net.Http.Functional.Tests.WorkItemExecution #98118

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 4
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-VM-threading-mono Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm labels Feb 18, 2024
@pavelsavara pavelsavara added this to the 9.0.0 milestone Feb 18, 2024
@pavelsavara pavelsavara self-assigned this Feb 18, 2024
@ghost
Copy link

ghost commented Feb 18, 2024

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

Issue Details

Error Blob

{
  "ErrorMessage": "RangeError: offset is out of bounds",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Reproduction Steps

Log

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

[13:10:43] info: [FAIL] System.Net.Http.Functional.Tests.HttpContentTest.ReadAsStringAsync_Buffered_IgnoresCancellationToken
[13:10:43] info: System.Runtime.InteropServices.JavaScript.JSException : RangeError: offset is out of bounds
[13:10:43] info:    at System.Net.Http.BrowserHttpInterop.GetResponseBytes(JSObject fetchResponse, Span`1 buffer)
[13:10:43] info:    at System.Net.Http.BrowserHttpContent.GetResponseData(CancellationToken cancellationToken)
[13:10:43] info:    at System.Net.Http.BrowserHttpContent.SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken)
[13:10:43] info:    at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
[13:10:43] info:    at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
[13:10:43] info:    at System.Net.Http.Functional.Tests.HttpContentTest.<>c__DisplayClass48_0.<<ReadAsStringAsync_Buffered_IgnoresCancellationToken>b__0>d.MoveNext()
[13:10:43] info: --- End of stack trace from previous location ---
[13:10:43] info:    at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
[13:10:43] info: --- End of stack trace from previous location ---
[13:10:43] info:    at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
[13:10:43] info:    at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext()
[13:10:43] info: --- End of stack trace from previous location ---
[13:10:43] info:    at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options)
[13:10:43] info:    at System.Net.Http.Functional.Tests.HttpContentTest.ReadAsStringAsync_Buffered_IgnoresCancellationToken()
[13:10:43] info: --- End of stack trace from previous location ---
[13:10:43] info: ... omitted JavaScript stack trace from another thread.
Author: pavelsavara
Assignees: pavelsavara
Labels:

arch-wasm, blocking-clean-ci, area-VM-threading-mono, Known Build Error, os-browser

Milestone: 9.0.0

@pavelsavara pavelsavara removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Mar 4, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-VM-threading-mono 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

1 participant