Code Monkey home page Code Monkey logo

instances's Introduction

Hello there ๐Ÿ‘‹

Rosenbjerg's GitHub stats Rosenbjerg's GitHub stats

instances's People

Contributors

rosenbjerg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

instances's Issues

ProcessInstance.WaitForExitAsync throws exception if already exited

(I'm not sure if I should submit this here or in the FFMpegCore repo, but I'm pretty sure Instances is the cause, so I post it here)

Since version 4.8.0 of FFMpegCore (where Instances Version 2.0 was first used), AnalyzeAsync sometimes throws Instances.Exceptions.InstanceProcessAlreadyExitedException.
I guess this happens because FFProbe may exit before ProcessInstance.WaitForExitAsync() is waiting.

I don't really understand why WaitForExitAsync, WaitForExit or Kill should even throw Exceptions, if it's already exited, why not return immediately?

Stacktrace:

Instances.Exceptions.InstanceProcessAlreadyExitedException: The process instance has already exited
   at Instances.ProcessInstance.WaitForExit()
   at Instances.Instance.Finish(ProcessStartInfo startInfo, EventHandler`1 outputHandler, EventHandler`1 errorHandler)
   at FFMpegCore.Helpers.FFProbeHelper.VerifyFFProbeExists(FFOptions ffMpegOptions)
   at FFMpegCore.FFProbe.PrepareInstance(String arguments, FFOptions ffOptions)
   at FFMpegCore.FFProbe.AnalyseAsync(String filePath, FFOptions ffOptions, CancellationToken cancellationToken)
[...]

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.