Git Product home page Git Product logo

Comments (5)

nohwnd avatar nohwnd commented on September 27, 2024

@cvpoienaru I think screen recorder is your alley. Please have a look.

from vstest.

apobekiaris avatar apobekiaris commented on September 27, 2024

Hello how is this progressing, this is an amazing usefull feature for our integration tests.

from vstest.

cvpoienaru avatar cvpoienaru commented on September 27, 2024

Hello, thanks for reaching out.

I had a look into the logs you've attached and there's a couple of errors but the one that caught my attention is this one:

TpTrace Error: 0 : 5260, 7, 2023/11/21, 18:49:42.561, 5926854447, datacollector.exe, MediaRecorder.Start Failed : System.ComponentModel.Win32Exception (0x80004005): Error starting recorder: 258

Server stack trace: 
   at Microsoft.VisualStudio.TestTools.VideoRecorder.RecorderEngineWrapper.ThrowIfFailed(Int32 errorCode, String errorFormat) in D:\dbs\sh\ddvsm\0619_100222\cmd\1a\src\vset\QTools\Execution\Agent\Plugins\MediaRecorder\MediaFoundationRecorder\RecorderProcess\RecorderEngineWrapper.cs:line 131
   at Microsoft.VisualStudio.TestTools.VideoRecorder.RecorderEngineWrapper.StartVideoRecorder(UInt32 bitRate, UInt32 frameRate, Boolean recordAudio, Boolean recordVideo, String outputFileName, Action`1 callback) in D:\dbs\sh\ddvsm\0619_100222\cmd\1a\src\vset\QTools\Execution\Agent\Plugins\MediaRecorder\MediaFoundationRecorder\RecorderProcess\RecorderEngineWrapper.cs:line 26
   at Microsoft.VisualStudio.TestTools.VideoRecorder.MediaFoundationRecorder.StartMediaRecorder(Int32 bitRate, Int32 frameRate, Boolean recordAudio, Boolean recordVideo, String outputFileName) in D:\dbs\sh\ddvsm\0619_100222\cmd\1a\src\vset\QTools\Execution\Agent\Plugins\MediaRecorder\MediaFoundationRecorder\RecorderProcess\MediaFoundationRecorder.cs:line 72
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.VisualStudio.TestTools.DataCollection.MediaRecorder.Model.IMediaRecorder.StartMediaRecorder(Int32 bitRate, Int32 frameRate, Boolean recordAudio, Boolean recordVideo, String outputFileName)
   at Microsoft.VisualStudio.TestTools.DataCollection.MediaRecorder.MediaFoundationRecorder.Start()

Unfortunately it's unclear why this error occurs. The error code 258 means that some sort of timeout has expired waiting for the process to start. There's no insights from the native code that actually starts the process, which brings me to the ask I have:

Can you please create a small repro solution and send it over to us for analysis ? I don't see anything obviously wrong with the pipeline configuration but it is complex and hard to analyze in the context of this issue. A repro solution would be more helpful so I can step inside the native code and get a better feeling of why process spawning fails.

from vstest.

apobekiaris avatar apobekiaris commented on September 27, 2024

I do not have a way to reproduce it in a sample repo, it happens occusionally even on self-hosted agents.

he error code 258 means that some sort of timeout has expired waiting for the process to start

I wonder, does it make sense if you can introduce a retry to the operation?

from vstest.

MarcoRossignoli avatar MarcoRossignoli commented on September 27, 2024

@apobekiaris can you collect the events from the agent and when it will happen again sent do us? If the process fails to start for some reason(crash) we could see it at machine level.

Note: these logs could contain sensitive information (paths, project name...). Make sure to clean them or use the Visual Studio Send Feedback button. Don't put anything you want to keep private in the title or content of the initial report, which is public. Instead, say that you'll send details privately in a separate comment. Once the problem report is created, it's now possible to specify who can see your replies and attachments.

I wonder, does it make sense if you can introduce a retry to the operation?

Before to update the code we prefer understand if it's an isolated case or not.

from vstest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.