Bug 200108 - kio_thumbnail enters in a endless loop
Summary: kio_thumbnail enters in a endless loop
Status: RESOLVED WORKSFORME
Alias: None
Product: kio
Classification: Unmaintained
Component: thumbnail (show other bugs)
Version: 4.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Malte Starostik
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2009-07-14 00:19 UTC by Cristian Falcas
Modified: 2018-10-29 02:22 UTC (History)
5 users (show)

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


Attachments
htop screenshot of 17+ hours of kio_thumbnail failure (113.82 KB, image/png)
2011-09-16 23:41 UTC, Dan Reidy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cristian Falcas 2009-07-14 00:19:05 UTC
Version:            (using KDE 4.2.96)
Compiler:          gcc version 4.4.0 (Gentoo 4.4.0 p1.1) 
OS:                Linux
Installed from:    Gentoo Packages

When hovering the mouse over an empty .avi file, the kio_thumbnail process will enter in what it seems to be an endless loop and it's eating all the CPU.

I'm using the live ebuilds from kde-testing for kde-4.3.

Below is the output from htop:

  PID USER     PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
4814 cristi    20   0  747M 63872 13824 R 100.  1.0  1h01:54 kdeinit4: kio_thumbnail [kdeinit] thumbnail local:/tmp/ksocket-cristi/klauncherMT4404.slave-socket local:/tmp/ksocket-cristi/dolphinmY4568.slave-socket

also, a grep to ps:

gentoo stap # ps fax | grep thum                                  
 4814 ?        Rl    17:48  \_ kdeinit4: kio_thumbnail [kdeinit] thumbnail local:/tmp/ksocket-cristi/klauncherMT4404.slave-socket local:/tmp/ksocket-cristi/dolphinmY4568.slave-socket                                                                          


See also some other statistics I gather from the system, all of which seems to say the same thing for me, that the process is doing endless polls:


gentoo stap # time stap syscalls_by_pid.stp 
Collecting data... Type Ctrl-C to exit and display results
^C#SysCalls  PID                                          
5427412    4814                                           
232278     7245                                           
3606       4557                                           
3382       4218                                           
2040       4449                                           
1893       4642                                           
380        4574                                           
.............
1          4404

real    0m9.017s
user    0m2.092s
sys     0m0.511s


gentoo stap # time nohup strace -p 4814
nohup: ignoring input and appending output to `nohup.out'
^C
real    0m8.899s
user    0m2.195s
sys     0m5.240s
gentoo stap # sort nohup.out | uniq -c | sort -n | tail -5
      1 Process 4814 attached - interrupt to quit
      1 Process 4814 detached
 281933 poll([{fd=21, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=21, revents=POLLNVAL}])



gentoo stap # time nohup stap test1.stp
nohup: ignoring input and appending output to `nohup.out'

real    0m4.328s
user    0m2.126s
sys     0m1.553s
gentoo stap # sort nohup.out | uniq -c | sort -n | tail -5
    120 plasma-desktop  sys_read
    190 kio_thumbnail  sys_select
  47226 stapio  sys_write
  47228 stapio  sys_read
 293750 kio_thumbnail  sys_poll

Best regards,
Comment 1 Cristian Falcas 2009-07-14 00:20:52 UTC
I see that the bugzilla says 
Version: 	 4.2 

I'm using kde-4.3, latest git sources.
Comment 2 Pino Toscano 2009-07-14 00:25:47 UTC
> I'm using kde-4.3, latest git sources.

Just FYI, our sources are in SVN.
Comment 3 Arthur Nascimento 2010-03-12 22:01:44 UTC
The bug is still there on version 4.4.1, in case anyone is wondering.

With me, a lot of kio_thumbnail processes are started as I browse different folders with Dolphin and they all compete for processor time. The system becomes almost unusable after a few seconds. So I just killall -9 kio_thumbnail. Also, I stopped using Dolphin unless I _really_ have to. I don't think it has to do with empty .avi files, since I have none of those lying around.

KDE Version 4.4.1
GCC 4.4.3
Exherbo Linux
Comment 4 Dan Reidy 2011-09-16 23:41:26 UTC
Created attachment 63710 [details]
htop screenshot of 17+ hours of kio_thumbnail failure

unbelievable.
Comment 5 Dan Reidy 2011-09-16 23:41:58 UTC
still here in kde 4.7.1 from Gentoo
Comment 6 Dawit Alemayehu 2011-10-07 11:56:43 UTC
can you please attach a sample .avi file that causes this on your system ?
Comment 7 Maarten De Meyer 2013-09-16 16:49:56 UTC
What video thumbnailer are you using?
MPlayerThumbs or FFMpegThumbs?
Comment 8 Nate Graham 2018-06-29 21:08:46 UTC
Is this still an issue with KDE Frameworks 5.47
Comment 9 Andrew Crouthamel 2018-09-28 03:18:00 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Andrew Crouthamel 2018-10-29 02:22:02 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!