Bug 473554 - gs process with high load during thumbnail creation for specific (faulty?) pdf
Summary: gs process with high load during thumbnail creation for specific (faulty?) pdf
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 23.04.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-20 08:56 UTC by johanna_mueller_57
Modified: 2024-07-15 07:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description johanna_mueller_57 2023-08-20 08:56:48 UTC
SUMMARY
When I open a folder in dolphin with a thumbnail view enabled that contains this pdf [1], a "gs" process runs that fully consumes on of the cpu cores. It runs for a while (seconds), and sometimes it seems that when it stops a new one is started again, so this goes on for a while.
When I encountered this for the first time, I didn't have this folder open at all, and I had three of them running in parallel, heating up my cpu enough for me to notice this issue. I don't know if I had previously opened the folder since the last reboot though (I often go days, sometimes weeks without reboot). So maybe this can even happen during background-preparation of thumbnails or something?
The pdf itself opens without problems in Okular and mupdf.

[1] https://www.weishaupt.de/uploads/tx_weishaupt_documents/documents/83247601_10_16.pdf

STEPS TO REPRODUCE
1. download pdf: https://www.weishaupt.de/uploads/tx_weishaupt_documents/documents/83247601_10_16.pdf
2. open folder containing the pdf with dolphin with thumbnails enabled

OBSERVED RESULT
gs process with high cpu load spawned/possibly respawned
full command according to "ps aux", edited for privacy:
gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/me/path/83247601_10_16.pdf -c showpage -c quit

EXPECTED RESULT
no high cpu usage or only for a short time

SOFTWARE/OS VERSIONS
Kernel Version: 6.4.11-arch2-1 (64-bit)
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 TripleCamera 2024-07-15 07:50:14 UTC
I am experiencing the same problem. Both /usr/lib/kf6/kioworker and gs take up a lot of CPU.

I am downloading a lot of PDF files, and the output directory is opened in Dolphin. Once I close the output directory, the problem disappears. It takes 2-5 minutes to download a single PDF, but they are large in size, ranging between 60M and 350M. So I suspect that this issue may be related to large PDFs?