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
Unexpected behaviour after previewing failure #2492
Comments
Thanks for the report. I wonder why this happens with |
I can't say for sure it's specific to Here's the output:
|
And what's the return code? Usually in |
Ah, yes, sorry, didn't see that was what you were asking for. The return code is 1. |
@rtng, whoops, this isn't the right issue for that screenshot after all. |
Runtime Environment
Ranger and Python version:
Unoconv and LibreOffice version:
Using default scope.sh.
Running Debian Buster, everything installed from the official repositories.
Current Behavior
I have an OpenDocument spreadsheet (ods file) which odt2txt (i.e. unoconv), which is the previewer used by default in the scope.sh file, fails to convert to text format to offer as a preview. That's an issue on itself, unrelated to ranger, but not the point of this report.
The problem is that the failure is not handled properly by ranger. At least I don't think it is, but I may be wrong.
After moving to said file, thus triggering the preview function, ranger will keep trying to get it indefinitely (with the running task "animation" showing some action being done). However, moving to another file or even going to the task preview will freeze ranger until Ctrl-C is pressed, cancelling the preview process.
Also, while trying to get the preview there will be a running Libreoffice process that will stop ranger from being able to open the file succesfully. This is, again, not a ranger issue directly, but it may be a side effect of not being able to stop looking for a preview it cannot get.
Expected Behavior
Most importantly, ranger should not freeze after not being able to preview a file.
I do not know how ranger manages previews, but it seems it tries to get them indefinitely. Maybe it should stop trying to find a preview for a file once the process that was meant to get it fails or after a reasonable time.
Possible Solutions
From the user standpoint, I can think of several actions can stop the issue to appear:
Steps to reproduce
Traceback
There's no traceback, not even while on debug mode. In fact, it took me a while to find out what was going on and how to reproduce it.
The text was updated successfully, but these errors were encountered: