| Summary: | Thumnails of PDF files. Endless Ghostscript errors occur | ||
|---|---|---|---|
| Product: | [Applications] dolphin | Reporter: | Ryusanz <ryuji> |
| Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | aristsakas, dolphin-bugs-null, johanna_mueller_57, nicolas.fella, roger.roesch |
| Priority: | NOR | ||
| Version First Reported In: | 25.11.80 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Bug Depends on: | |||
| Bug Blocks: | 504984 | ||
|
Description
Ryusanz
2025-12-19 05:25:47 UTC
Please do not submit AI-generated bugreports, thanks. Understood, sorry about that. The issue itself is real and fully reproducible on my system. I personally observed and verified all described behavior: - PDF thumbnails fail only in Dolphin - JPG thumbnails work on the same mount - Endless Ghostscript errors occur - GNOME Files generates the thumbnails correctly - Disabling PDF previews stops the errors I used AI only to help organize the English text, not to invent the issue. If you prefer, I can restate the problem briefly in my own words or provide additional logs/tests. Thanks for your time. Ryuji Otsuka from Roppongi, Tokyo, Japan On 2025/12/19 18:42, Nicolas Fella wrote: > https://bugs.kde.org/show_bug.cgi?id=513562 > > Nicolas Fella <nicolas.fella@gmx.de> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |nicolas.fella@gmx.de > > --- Comment #1 from Nicolas Fella <nicolas.fella@gmx.de> --- > Please do not submit AI-generated bugreports, thanks. > Understood, sorry about that. The issue itself is real and fully reproducible on my system. I personally observed and verified all described behavior: - PDF thumbnails fail only in Dolphin - JPG thumbnails work on the same mount - Endless Ghostscript errors occur - GNOME Files generates the thumbnails correctly - Disabling PDF previews stops the errors I used AI only to help organize the English text, not to invent the issue. If you prefer, I can restate the problem briefly in my own words or provide additional logs/tests. Thanks for your time. Ryuji Otsuka from Roppongi, Tokyo, Japan On 2025/12/19 18:42, Nicolas Fella wrote: > https://bugs.kde.org/show_bug.cgi?id=513562 > > Nicolas Fella <nicolas.fella@gmx.de> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |nicolas.fella@gmx.de > > --- Comment #1 from Nicolas Fella <nicolas.fella@gmx.de> --- > Please do not submit AI-generated bugreports, thanks. I tested Ghostscript directly and it fails outside Dolphin. gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -sOutputFile=/tmp/test.png AC.pdf Result: Error: /undefinedfilename in (AC.pdf) Last OS error: Permission denied GPL Ghostscript 10.05.0: Unrecoverable error, exit code 1 The PDF is located on /mnt/Data (ext4, rw,noatime). JPG thumbnails work. Nautilus can generate PDF thumbnails (poppler-based), Dolphin cannot. So this seems to be a Ghostscript SAFER restriction causing Dolphin to retry endlessly. *** Bug 473554 has been marked as a duplicate of this bug. *** Thanks for your bug report, I had the same issue and it lead me to the solution. The actual issue is an Ubuntu decision to restrict gs using apparmor because of its many recent security issues. GS is denied access to files outside the users home directory. You can solve it by either mounting the share into your home dir, or by changing the apparmor profile: Start by editing /etc/apparmor.d/gs Add these lines: # Allow read/write on your external mount /media/path/** rw, I guess r alone for read access would be enough, but I use gs often and also need the write access. Afterwards run sudo apparmor_parser -r /etc/apparmor.d/gs Regarding KDE: Ghostscript is capable yes, but also Ubuntu has good reasoning for their decision. Maybe in the long term it would be advisable to change the PDF preview engine. E.g. to poppler as used by Okular. Dear Mr. Roger. That's great! I managed to solve it. Thank you so much, I'm really grateful. |