-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.IO.IOException: Write fault on path /[Unknown] #22
Comments
Hi @sushihangover thanks for reporting this. There is a mechanism in place that is supposed to guard against this, but right now it is only enabled on Mono. We detect Mono by doing:
What do you get when running this check on Xamarin/Android? What version of Mono are you running? EDIT Looking more closely at the stack trace, it seems like this is actually failing inside That said, I'm not against having MedallionShell work around this, since one of the library's main goals is working around oddities in the EDIT I've tried to reproduce this using ffmpeg and Mono on Windows but I don't see the error. Could be an OS difference around how processes start. Windows process start isn't the fastest so maybe it just gets lucky and avoids this race condition. |
I could work around it by not using The Android's Java Process/ProcessBuilder's API is sooooo so so bad (but does work), that is way I started down the MedallionShell path. Currently on Xamarin.Mac|iOS I am currently using the native |
Thanks for the info @sushihangover ! I've cobbled together an alpha build (see attached zip) with an attempt at handling this case. Mind giving it a try and letting me know if it works? |
@madelson The alpha version on I also tested the MD alpha version on macOS: Via a Version: Mono JIT compiler version 5.10.1.38 (2017-12/b4e428d7c41 Thu Apr 5 19:49:28 EDT 2018)
Via a Version: Mono version: 5.10.1 (tarball)
|
@sushihangover thanks for testing. Looking at the Mono implementation of Given this, to me the next question is is the alpha package behavior worth incorporating into the main MedallionShell source? My inclination is yes, but wanted to confirm that this feels to you like an improvement to you over the previous behavior. The output of your tests on other platforms suggests that on those platforms the same edge-case simply doesn't get hit, since with the codechange I made when |
@madelson I would vote yes 👍 on incorporating your alpha changes in the master branch even though on Mainly due to it preventing the exception and thus the end-user coding of I would add this |
Fix should be out as part of https://www.nuget.org/packages/MedallionShell/1.5.1 . Thanks @sushihangover for your help in iterating here! |
In the case of providing an invalid option to a cmd-line tool, I would except to receive the cmd's exit code of 1 (in this case, running ffmpeg via
Xamarin.Android
), instead anIOException
thrown.FYI: When ffmpeg is provided the correct option(s) and/or a media file that it can transcode, MedallionShell works great on Xamarin.Android (thanks 😀 )
Example code:
Note: stdOutCollection/stdErrCollection are ObservableCollections
Exception/Stacktrace:
The text was updated successfully, but these errors were encountered: