FFmpeg-Android
FFmpeg-Android copied to clipboard
Question about `sendQuitSignal`
Maybe my question related to this issue https://github.com/bravobit/FFmpeg-Android/issues/90
I have followed the logic of sendQuitSignal() FFcommandExecuteAsyncTask.java class line 129.
At this time work while checkAndUpdateProcess() and it cames to line 106 where you make:
process = null;
return;
it goes to line 49 where I get:
Error running FFmpeg binary
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Process.exitValue()' on a null object reference
because CommandResult.getOutputFromProcess(process) on process that is null.
and after it goes to finally Util.destroyProcess(process); on a null so process.destroy() not happend.
did you have the opportunity to fix it? or give me some advice how I can fix it?
To add a little bit about this issue, I've also got this error, here are my step
- Launch an encoding after calling isSupported() in a Worker from WorkManager
- On my main thread, call sendQuitSignal on the task in my Worker (stored as FFtask)
- Error happens after this and I can't launch other encodings after that