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] System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests fails with out of memory #101436

Open
ilonatommy opened this issue Apr 23, 2024 · 7 comments
Labels
arch-wasm WebAssembly architecture area-System.Buffers Known Build Error Use this to report build issues in the .NET Helix tab os-browser Browser variant of arch-wasm
Milestone

Comments

@ilonatommy
Copy link
Member

ilonatommy commented Apr 23, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=653237
Build error leg or test failing: System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths
Pull request: #101390

Error Message

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

{
  "ErrorMessage": [ "[FAIL] System.Buffers.ArrayPool", "System.OutOfMemoryException : Out of memory" ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Observed on 'WasmTestOnChrome-System.Buffers.Tests

[13:07:44] info: [FAIL] System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths(requestedMinimum: 2097152, expectedLength: 2097152)
[13:07:44] info: System.OutOfMemoryException : Out of memory
[13:07:44] info:    at System.Buffers.ConfigurableArrayPool`1[[System.String, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Rent(Int32 minimumLength)
[13:07:44] info:    at System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths(Int32 requestedMinimum, Int32 expectedLength)
[13:07:44] info:    at System.Object.InvokeStub_ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths(Object , Span`1 )
[13:07:44] info:    at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[13:07:44] info: System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests 17.1077205 ms

log

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=653237
Error message validated: [[FAIL] System.Buffers.ArrayPool System.OutOfMemoryException : Out of memory]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 4/25/2024 7:55:51 PM UTC

Report

Build Definition Test Pull Request
750326 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #103585
750301 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #105249
750269 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #105244
750158 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #105239
749848 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104793
749401 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103755
749156 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution
748265 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #105006
748540 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103755
748251 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103755
748165 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #105150
747478 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #103585
748107 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #105006
747528 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #105027
747405 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #105110
747756 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104558
747671 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #105105
747416 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104558
747297 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103755
746875 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104856
746580 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103755
745881 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104536
745812 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104558
745267 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104949
745169 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104856
744298 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #105009
744498 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104963
744406 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution
742995 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104963
744256 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104558
744231 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104923
743705 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution
743637 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104991
743071 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104949
743283 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103755
743225 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103585
743003 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104923
742847 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #103755
742693 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104949
742590 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution
741510 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #100334
734321 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #100334
728144 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103757
729051 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #100334
729164 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104149
729349 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #103837
728826 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104309
729246 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104236
729236 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104195
727882 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104206
727781 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103837
727444 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104297
728286 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103752
728178 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution
727658 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104149
725595 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104217
727159 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104149
726540 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution
725799 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104149
725778 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution
725255 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104206
725363 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103697
725358 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104195
725288 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution
725017 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104171
724838 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104103
724783 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103837
724452 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104049
724200 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #103574
723835 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104141
724102 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103635
723858 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104143
723303 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103757
723312 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #103837
723226 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #104122
722501 dotnet/runtime System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths #103412
721798 dotnet/runtime System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths #104038
721482 dotnet/runtime System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths #104052
720989 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #104027
719390 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #103881
720649 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103915
719238 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #102403
719177 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #102739
719116 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #102403
718997 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #103915
717550 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #102375
717491 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution
717472 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution #103697
717150 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution #103837

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
5 40 89
@ilonatommy ilonatommy added arch-wasm WebAssembly architecture 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 labels Apr 23, 2024
Copy link
Contributor

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

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Apr 23, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-buffers
See info in area-owners.md if you want to be subscribed.

@lewing
Copy link
Member

lewing commented Apr 24, 2024

The pattern is too broad and it is catching failures in System.Text.Json not ArrayPool tests. I'm going to close the issue, feel free to update the pattern to match the ArrayPool tests

@lewing lewing closed this as completed Apr 24, 2024
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Apr 24, 2024
@lewing
Copy link
Member

lewing commented Apr 25, 2024

Updating the condition and reopening

@lewing lewing reopened this Apr 25, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Apr 25, 2024
@lewing lewing removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label May 2, 2024
@lewing lewing added this to the 9.0.0 milestone May 2, 2024
@lewing lewing removed the untriaged New issue has not been triaged by the area owner label May 2, 2024
@lewing
Copy link
Member

lewing commented May 3, 2024

@kg here are some common arraypool failures

@lewing
Copy link
Member

lewing commented May 3, 2024

Also worth reading #853

@pavelsavara
Copy link
Member

This is great log

[11:40:08] info: System.Buffers.ArrayPool.Tests.CollectionTests 0 ms
[11:40:08] fail: [0x012251a0-dpty 11:40:08.951] [MONO] Could not allocate 131072 (1 * 131072) bytes
                 Error
                     at tu (http://127.0.0.1:40487/_framework/dotnet.runtime.js:3:199931)
                     at wasm_trace_logger (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[197]:0x155ad)
                     at eglib_log_adapter (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[697]:0x4e9fc)
                     at monoeg_g_logv_nofree (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[615]:0x4c119)
                     at monoeg_g_log (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[617]:0x4c1dc)
                     at monoeg_g_calloc (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[607]:0x4bf7c)
                     at monoeg_malloc0 (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[608]:0x4bf96)
                     at rehash_table (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[2198]:0xbd6b5)
                     at mono_conc_hashtable_insert (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[2199]:0xbd81d)
                     at mono_metadata_lookup_generic_class (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[2455]:0xd146e)
                     at inflate_generic_type (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[1235]:0x7313a)
                     at mono_class_inflate_generic_type_with_mempool (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[1234]:0x72a72)
                     at mono_class_inflate_generic_class_checked (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[1237]:0x73253)
                     at mono_class_get_and_inflate_typespec_checked (http://127.0.0.1:40487/_framework/dotnet.native.wasm:wasm-function[1293]:0x7533e)

I guess other places don't produce as nice message when they can't allocate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-System.Buffers 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

3 participants