Closed
Description
failed in job: runtime-libraries outerloop 20200412.1
Error message
Assert.Throws() Failure
Expected: typeof(System.OverflowException)
Actual: typeof(System.OutOfMemoryException): Cannot allocate a buffer of size 2291549962.
---- System.OutOfMemoryException : Cannot allocate a buffer of size 2291549962.
Stack trace
at System.Buffers.ArrayBufferWriter`1.ThrowOutOfMemoryException(UInt32 capacity) in /_/src/libraries/Common/src/System/Buffers/ArrayBufferWriter.cs:line 202
at System.Buffers.ArrayBufferWriter`1.CheckAndResizeBuffer(Int32 sizeHint) in /_/src/libraries/Common/src/System/Buffers/ArrayBufferWriter.cs:line 185
at System.Buffers.ArrayBufferWriter`1.GetMemory(Int32 sizeHint) in /_/src/libraries/Common/src/System/Buffers/ArrayBufferWriter.cs:line 130
at System.Text.Json.Utf8JsonWriter.Grow(Int32 requiredSize) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.cs:line 1043
at System.Text.Json.Utf8JsonWriter.WriteStringMinimized(ReadOnlySpan`1 escapedValue) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.String.cs:line 267
at System.Text.Json.Utf8JsonWriter.WriteStringByOptions(ReadOnlySpan`1 utf8Value) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.String.cs:line 253
at System.Text.Json.Utf8JsonWriter.WriteStringValueHelper(ReadOnlySpan`1 utf8Value) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.String.cs:line 26
at System.Text.Json.Utf8JsonWriter.WriteStringValue(JsonEncodedText value) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.String.cs:line 20
at System.Text.Json.Tests.Utf8JsonWriterTests.<>c__DisplayClass34_0.<WriteLargeJsonToStreamWithoutFlushing>b__0() in /_/src/libraries/System.Text.Json/tests/Utf8JsonWriterTests.cs:line 755
----- Inner Stack Trace -----
at System.Buffers.ArrayBufferWriter`1.ThrowOutOfMemoryException(UInt32 capacity) in /_/src/libraries/Common/src/System/Buffers/ArrayBufferWriter.cs:line 202
at System.Buffers.ArrayBufferWriter`1.CheckAndResizeBuffer(Int32 sizeHint) in /_/src/libraries/Common/src/System/Buffers/ArrayBufferWriter.cs:line 185
at System.Buffers.ArrayBufferWriter`1.GetMemory(Int32 sizeHint) in /_/src/libraries/Common/src/System/Buffers/ArrayBufferWriter.cs:line 130
at System.Text.Json.Utf8JsonWriter.Grow(Int32 requiredSize) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.cs:line 1043
at System.Text.Json.Utf8JsonWriter.WriteStringMinimized(ReadOnlySpan`1 escapedValue) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.String.cs:line 267
at System.Text.Json.Utf8JsonWriter.WriteStringByOptions(ReadOnlySpan`1 utf8Value) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.String.cs:line 253
at System.Text.Json.Utf8JsonWriter.WriteStringValueHelper(ReadOnlySpan`1 utf8Value) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.String.cs:line 26
at System.Text.Json.Utf8JsonWriter.WriteStringValue(JsonEncodedText value) in /_/src/libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.String.cs:line 20
at System.Text.Json.Tests.Utf8JsonWriterTests.<>c__DisplayClass34_0.<WriteLargeJsonToStreamWithoutFlushing>b__0() in /_/src/libraries/System.Text.Json/tests/Utf8JsonWriterTests.cs:line 755