Skip to content

Test failure: System.Media.Test.SoundPlayerTests.Play_InvalidFile_ShortTimeout_ThrowsWebException #39259

Closed

Description

@v-haren

failed in job: runtime-libraries outerloop 20200713.2

Error message

Assert.Throws() Failure
Expected: typeof(System.Net.WebException)
Actual:   typeof(System.IO.IOException): The operation is not allowed on non-connected sockets.
---- System.IO.IOException : The operation is not allowed on non-connected sockets.


Stack trace
   at System.Net.HttpWebRequest.GetResponse() in /_/src/libraries/System.Net.Requests/src/System/Net/HttpWebRequest.cs:line 1025
   at System.Media.SoundPlayer.LoadSync() in /_/src/libraries/System.Windows.Extensions/src/System/Media/SoundPlayer.cs:line 265
   at System.Media.SoundPlayer.LoadAndPlay(Int32 flags) in /_/src/libraries/System.Windows.Extensions/src/System/Media/SoundPlayer.cs:line 228
   at System.Media.SoundPlayer.Play() in /_/src/libraries/System.Windows.Extensions/src/System/Media/SoundPlayer.cs:line 326
   at System.Media.Test.SoundPlayerTests.<>c__DisplayClass9_0.<Play_InvalidFile_ShortTimeout_ThrowsWebException>b__0() in /_/src/libraries/System.Windows.Extensions/tests/System/Media/SoundPlayerTests.cs:line 157
----- Inner Stack Trace -----
   at System.Net.HttpWebRequest.GetResponse() in /_/src/libraries/System.Net.Requests/src/System/Net/HttpWebRequest.cs:line 1025
   at System.Media.SoundPlayer.LoadSync() in /_/src/libraries/System.Windows.Extensions/src/System/Media/SoundPlayer.cs:line 265
   at System.Media.SoundPlayer.LoadAndPlay(Int32 flags) in /_/src/libraries/System.Windows.Extensions/src/System/Media/SoundPlayer.cs:line 228
   at System.Media.SoundPlayer.Play() in /_/src/libraries/System.Windows.Extensions/src/System/Media/SoundPlayer.cs:line 326
   at System.Media.Test.SoundPlayerTests.<>c__DisplayClass9_0.<Play_InvalidFile_ShortTimeout_ThrowsWebException>b__0() in /_/src/libraries/System.Windows.Extensions/tests/System/Media/SoundPlayerTests.cs:line 157

Activity

  1. added
    untriaged
    on Jul 14, 2020
  2. BruceForstall commented on Jul 14, 2020

    @BruceForstall
    Contributor

    @danmosemsft What is the correct area for this?

  3. danmoseley commented on Jul 14, 2020

    @danmoseley
    Contributor
  4. danmoseley commented on Jul 14, 2020

    @danmoseley
    Contributor

    Relevant code is very simple

                    WebRequest webRequest = WebRequest.Create(_uri);
                    webRequest.Timeout = LoadTimeout;
    
                    WebResponse webResponse;
                    webResponse = webRequest.GetResponse(); // <<<<

    cc @dotnet/ncl are we doing this right here?

  5. wfurt commented on Jul 14, 2020

    @wfurt
    Member

    I don't know if it is related but this looks like synchronous API and there was recent change to use new sync implementation instead of using sync over async inside HTTP. The socket error also looks suspicious.
    cc: @ManickaP

  6. ManickaP commented on Jul 14, 2020

    @ManickaP
    Member

    This is the same underlying issue as in #39279
    Since it's obviously a different test, should we keep both issues open?
    If not, I'd close this one as a dupe, the original one is closer to the stack where it's happening.

  7. danmoseley commented on Jul 14, 2020

    @danmoseley
    Contributor

    Duplicate of #39279.

  8. ghost locked as resolved and limited conversation to collaborators on Dec 8, 2020
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-Microsoft.Win32untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions