runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[browser] `System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests` fails with out of memory

Open ilonatommy opened this issue 1 year ago • 7 comments

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: https://github.com/dotnet/runtime/pull/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: :mag_right: 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: :x: 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
724838 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#104103
724783 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103837
724452 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#104049
724200 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103574
723835 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#104141
724102 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103635
723858 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#104143
723303 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103757
723312 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103837
723226 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#104122
722501 dotnet/runtime System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths dotnet/runtime#103412
721798 dotnet/runtime System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths dotnet/runtime#104038
721482 dotnet/runtime System.Buffers.ArrayPool.Tests.ArrayPoolUnitTests.RentingSpecificLengthsYieldsExpectedLengths dotnet/runtime#104052
720989 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#104027
719390 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103881
720649 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103915
719238 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#102403
719177 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#102739
719116 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#102403
718997 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103915
717550 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#102375
717491 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution
717472 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103697
717150 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103837
716928 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103837
715218 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#102403
714040 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103697
713808 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution
713005 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#102739
711372 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103621
712515 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution
706184 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103186
711360 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#102670
711142 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103612
710004 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103422
709900 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#101337
709579 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution
707989 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103441
709198 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103529
707574 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103226
707934 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103422
707826 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103412
707110 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103441
706820 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103422
706713 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103402
706432 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103398
706355 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103226
706077 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#100056
705573 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103363
705232 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103195
704974 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103037
703661 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103229
703687 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#102987
703718 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103031
704790 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103221
703396 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#100048
702656 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103233
701662 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution
701555 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution
701443 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103031
700647 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103031
700618 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#102987
699382 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103030
700110 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#101938
699711 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103088
699655 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103037
699412 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#102987
699395 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103118
698275 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#102254
698972 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#102476
698654 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103052
698503 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103043
696809 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#103027
697448 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution
697434 dotnet/runtime WasmTestOnChrome-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#100334
696573 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#101938
693861 dotnet/runtime WasmTestOnFirefox-MT-System.Buffers.Tests.WorkItemExecution dotnet/runtime#100675

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 24 77

ilonatommy avatar Apr 23 '24 16:04 ilonatommy

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

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

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 avatar Apr 24 '24 19:04 lewing

Updating the condition and reopening

lewing avatar Apr 25 '24 19:04 lewing

@kg here are some common arraypool failures

lewing avatar May 03 '24 19:05 lewing

Also worth reading https://github.com/dotnet/runtime/issues/853

lewing avatar May 03 '24 19:05 lewing

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

pavelsavara avatar May 14 '24 13:05 pavelsavara