rosenbjerg / instances Goto Github PK
View Code? Open in Web Editor NEWA process wrapper for asyncronous use, using Tasks or Events
License: MIT License
A process wrapper for asyncronous use, using Tasks or Events
License: MIT License
(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)
[...]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.