-
Notifications
You must be signed in to change notification settings - Fork 297
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
Thumbnail creation for EPS files sometimes gets Nemo stuck #1922
Comments
I was able to reproduce this initially, but as soon as I hook up a debugger it goes away, I'll keep trying. If you'd like, try something like this to see if we can get something useful: First, enable -dbgsym repos if you don't have them already (unlikely - this is tedious, but out of our control - we're going to automate it) - instructions here: https://wiki.ubuntu.com/Debug%20Symbol%20Packages then,
As a (temporary hopefully) workaround, you can disable thumbnailing of eps files:
(the jp2 is there by default already) |
Another thing to try is, either remove xreader temporarily (specifically xreader-common package) or simply rename |
The problem also happens with |
Managed to reproduce it. Here is the gdb log from the moment I stepped inside the directory with the offending file:
It took a while before I could get the bug to trigger. But what seems to have triggered it was when I had the EPS file already open with In contrast, here is the debug output that got printed when nemo was successful in creating the thumbnail:
None of this type of debugging strings were printed when the bug occurred. |
I can't manage to reproduce this issue on Linux Mint 20 Cinnamon. If you're still affected, would you retest on Linux Mint 20 Cinnamon? |
I'm on 19.3 at the moment (Nemo 4.4.8) and still can reproduce the issue. I will try with Mint 20 on a live usb when I find the time. |
I get the exact same problem with SVG files! I am on Linux Mint Cinnamon 20 (64bits). I saw this problem occurring many times before, but never took the time to report until now. Now i am trying to reproduce it, to understand WHEN this happens, because it does not happen all the time. I am currently trying to find WHEN this problem occurs... |
Confirmed that I can still reproduce the issue in Mint 20 with the instructions in the issue description. I have also had it occur with PNG files created by GIMP (although I haven't yet managed to get a reproducible method). So I agree with @SebastJava that this is probably not limited to EPS. From the issue description, the general procedure seems to be:
|
I had another very similar issue that i wanted to investigate and systematically reproduce and report a long time ago. I am still struggling to reproduce this one here, the #1922. I tried the "general procedure" described above but yet failed to reproduce this bug. On point 4, "update the file somehow", i changed the color on an SVG file using nano in the Terminal. I had no trouble with the thumbnails, this time. But i did experience this bug just a few weeks ago. So i am still trying to systematically reproduce it. |
I also ended up with Nemo being stuck on a file it can’t display. Some infinite loop... But my steps are totally different from yours, so i don’t know if this is related or not. So i have this other issue, as mentioned earlier, and now this little "bonus" update: #2621 (comment) Sorry, i am probably just adding to the confusion. I have to slow down and try to think. I had too much coffee. :) |
I tried the steps to reproduce from the OP from @cschreib above. It didn’t work: the file thumbnail was displayed okay, without any bugs. I tried again. It didn’t work, again: it was all okay, no bugs there. Then i tried those extra steps, after having tried all the operations from the OP, and thus still having those new files:
Next, do as explained before in the OP, again:
I tried again, again and again. I always end up with this bug as described in the OP. But this is just an "edge case". I still want to prove this happens, under some specific conditions, when making things as simple as coloured squares... And using only regular software such as Inkscape without any extra module. |
But nobody would do such a duplicate, delete and rename as described in my preceding post. Here is another thing that is more likely to be done:
Of course, as soon as you move out of this tmp directory and then back in, things are displayed okay. This is an edge case. I have other new issues coming soon: simple newbie stuff being done and ending up on missing or outdated thumbnails. Many issues but it is all about the thumbnails for PNG, SVG or other image files. |
If you try the above on files which don't have embedded spaces, does it make any difference? |
@Jeremy7701 You mean with some other filename like "plot-2.eps"? I tried. There was no bug this time. The 2 thumbnails were displayed okay. I don’t understand. I am currently working on reproducing some other similar issues, but much more simple, just newbie stuff, and i am having the same kind of trouble with thumbnails, and my filename is totally straightforward: "circle.svg". Without spaces or anything weird. Still testing. Not confirmed yet. But it looks like, on this issue here, removing the space in the filename solved this. |
Could it be the fact of renaming the file, rather than the lack of whitespace? (I assume you manually renamed the file after duplicating it, rather than directly copy the file "plot.eps" into the new file "plot-2.eps") |
Yes, it could be. I am not sure. Right now i am out of this complex, strange and edge case issue. It was not my issue in the first place. I am currently back to exploring a few different issues all related to thumbnail generation for image files. My issues are all simple, newbie issues. I get this feeling that understanding and solving my simple newbie issues could solve this here as well, later, maybe. Oh, you mean renaming the file would have solved this? I don’t know. I had a similar issue where renaming the file actually caused similar problems with the thumbnail generation: Thumbnails are not updated when editing SVG files after having renamed them #2621 So i am very confused. There is also another issue where the steps to reproduce are very different, much more simple, and the result is the same as the one here. Check my brand new one: SVG file "disappears" after editing a copy of it. Endless "Loading" cycling indicator is displayed... #2623 On top of that, since i had an issue with the renaming before, i tried both Nemo Duplicate and Renaming methods and also using the Terminal with |
Issue
Rendering the thumbnail for some EPS files seems to get nemo stuck somehow, indefinitely displaying the "loading" cycling arrow in the bottom right corner (until navigating to a different folder). During this time, the offending EPS file does not even appear in the window, as if the file was missing. When this happens, the "reload" command (F5) is not functional, and the only way to make the problem go away is to navigate to a different directory and come back. This appears to be specific to this file type, as the same file converted to PDF always displays reliably.
Steps to reproduce
I was not able to reproduce the problem consistently, but I describe below one scenario during which the problem occurred at least once. Once I get the problem to occur with one particular EPS file, I can reliable repeat it by modifying the EPS file (any modification, just to invalidate the thumbnail cache). However it does not occur systematically with all EPS files. Worse, if the problem occurs for a specific file and I make a copy of this file with a different name, then the problem usually does not occur for this copy, even though the actual data in the file is exactly the same...
Scenario where this happened once:
First install the package
gnudatalanguage
from the official repository (Mint or Ubuntu, whatever). This is a tool for data analysis and visualization. Then copy the code below in a file calledtest.pro
in a directory of your choice (where you have write permission).Open a terminal in this directory and launch the GDL interpreter with the command
gdl
. Once inside the GDL interpreter, type.r test.pro
and press Enter.This will create a new directory called
tmp
, containing the EPS fileplot.eps
. With nemo, open thetmp
directory and see if the file is indeed there. It will take a bit of time to generate the thumbnail (I must say, more time than it should for such a small file), but it should work.Then with nemo go to the parent directory, so the file is not displayed in nemo anymore. Now re-run the GDL steps above to create the EPS file again. Then with nemo go back inside the
tmp
directory and this is when the problem sometimes occurs.Expected behaviour
If there is an issue with creating a thumbnail, I would expect nemo to at least show the file without the thumbnail rather than indefinitely hang and not show the file at all. And of course, I would also expect the thumbnail rendering not to fail in the first place!
Other information
GDL is an open source clone of IDL, a similar tool which is proprietary and closed source. I experienced this problem with EPS files created with either GDL or IDL, so this is not related to these particular softwares.
Given the problem is hard to reproduce, I'm happy to try to debug things locally, if you point me to the right direction. I should also note that this is a problem I have experience with nemo for several years now, and it did not appear in a recent version.
When I experience the problem with one particular file, I have tried clearing the thumbnail cache (
~/.cache/thumbnails/
), but this did not change anything. However it seems that killing nemo and restarting it does make the problem go away (for that particular file) until the next time it happens again.The text was updated successfully, but these errors were encountered: