Skip to content

[tvOS] OutOfMemoryException in System.IO.Pipelines.Tests.PipeWriterTests.CompleteWithLargeWriteThrows #64930

Closed

Description

@runfoapp

Runfo Tracking Issue: OutOfMemoryException in System.IO.Pipelines.Tests.PipeWriterTests.CompleteWithLargeWriteThrows

Build Definition Kind Run Name Console Core Dump Test Results Run Client
1619019 runtime-extra-platforms Rolling net7.0-tvOS-Release-arm64-Mono_Release-OSX.1015.Amd64.AppleTV.Open console.log test results runclient.py
1616876 runtime-extra-platforms Rolling net7.0-tvOS-Release-arm64-Mono_Release-OSX.1015.Amd64.AppleTV.Open console.log test results runclient.py
1613945 runtime-extra-platforms PR 64743 net7.0-tvOS-Release-arm64-Mono_Release-OSX.1015.Amd64.AppleTV.Open console.log test results runclient.py
1612202 runtime-extra-platforms Rolling net7.0-Android-Release-arm-Mono_Release-Windows.10.Amd64.Android.Open console.log test results runclient.py
1611370 runtime-extra-platforms PR 64452 net7.0-tvOS-Release-arm64-Mono_Release-OSX.1015.Amd64.AppleTV.Open console.log test results runclient.py
1602008 runtime-extra-platforms Rolling net7.0-tvOS-Release-arm64-Mono_Release-OSX.1015.Amd64.AppleTV.Open console.log test results runclient.py
1600670 runtime-extra-platforms Rolling net7.0-tvOS-Release-arm64-Mono_Release-OSX.1015.Amd64.AppleTV.Open console.log test results runclient.py
1596337 runtime-extra-platforms Rolling net7.0-tvOS-Release-arm64-Mono_Release-OSX.1015.Amd64.AppleTV.Open console.log runclient.py
1595549 runtime-extra-platforms PR 64867 net7.0-tvOS-Release-arm64-Mono_Release-OSX.1015.Amd64.AppleTV.Open console.log test results runclient.py

Build Result Summary

Day Hit Count Week Hit Count Month Hit Count
1 5 9

Activity

  1. ghost added
    untriaged
    on Feb 7, 2022
  2. added
    runtime-mono
    os-tvos
    on Feb 7, 2022
  3. changed the title [-]OutOfMemoryException in System.IO.Pipelines.Tests.PipeWriterTests.CompleteWithLargeWriteThrows[/-] [+][tvOS] OutOfMemoryException in System.IO.Pipelines.Tests.PipeWriterTests.CompleteWithLargeWriteThrows[/+] on Feb 9, 2022
  4. elinor-fung commented on Feb 9, 2022

    @elinor-fung
    Member

    3 of the last 5 rolling builds have hit this. @steveisok / @akoeplinger any ideas on who might be able to investigate what is going on here?

  5. removed
    untriaged
    on Feb 9, 2022
  6. added this to the 7.0.0 milestone on Feb 9, 2022
  7. steveisok commented on Feb 9, 2022

    @steveisok
    Member

    Yes, we'll take a look at it. Seems contention related - maybe allocate a smaller amount in

    public async Task CompleteWithLargeWriteThrows()
    {
    var pipe = new Pipe();
    pipe.Reader.Complete();
    var task = Task.Run(async () =>
    {
    await Task.Delay(10);
    pipe.Writer.Complete();
    });
    try
    {
    for (int i = 0; i < 1000; i++)
    {
    var buffer = new byte[10000000];
    await pipe.Writer.WriteAsync(buffer);
    }
    }
    catch (InvalidOperationException)
    {
    // Complete while writing
    }
    await task;
    }
    ?

  8. MaximLipnin commented on Feb 17, 2022

    @MaximLipnin
    Contributor

    What if OutOfMemoryException could play the same role in tvOS case as InvalidOperationException does in the test - sorta an invalid operation ? Then we could just add another catch section. Anyway It would be weird.

  9. ghost added
    in-pr
    on Feb 17, 2022
  10. ghost removed
    in-pr
    on Feb 18, 2022
  11. ghost locked as resolved and limited conversation to collaborators on Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.IO.Pipelinesos-tvosruntime-mono

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions