Bug 178147 - app refuse to quit and consume ~50% system CPU load
Summary: app refuse to quit and consume ~50% system CPU load
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 179974 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-19 06:41 UTC by Grissiom
Modified: 2009-02-20 10:28 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 Grissiom 2008-12-19 06:41:37 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    Slackware Packages

way to reproduce:
1, In a terminal, use okular to open a pdf file, say temp.pdf
2, run this script in other terminal:
=============================
#!/bin/bash
i=1
while [ $i -lt 20 ]; do
        mv temp.pdf temp
        sleep 1
        mv temp temp.pdf
        i=$[$i + 1]
done
============================
3, then close the okular window, the main window disappeared. But you can see okular doesn't quit. The last few messages are:

okular(1920)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring                          
okular(1920)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added already watched Entry "/home/grissiom/sandbox" (for "/home/grissiom/sandbox/temp.pdf" )                                                                                            
okular(1920)/kio (KDirWatch) KDirWatch::setDirty: "KDirWatch-1" emitting dirty "/home/grissiom/sandbox"                  
okular(1920)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring                          
okular(1920)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added already watched Entry "/home/grissiom/sandbox" (for "/home/grissiom/sandbox/temp.pdf" )                                                                                            
okular(1920)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring                          
okular(1920)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added already watched Entry "/home/grissiom/sandbox" (for "/home/grissiom/sandbox/temp.pdf" )                                                                                            
okular(1920)/kio (KDirWatch) KDirWatch::setDirty: "KDirWatch-1" emitting dirty "/home/grissiom/sandbox"                  
okular(1920)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring                          
okular(1920)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added already watched Entry "/home/grissiom/sandbox" (for "/home/grissiom/sandbox/temp.pdf" )                                                                                            
okular(1920)/kio (KDirWatch) KDirWatch::setDirty: "KDirWatch-1" emitting dirty "/home/grissiom/sandbox"                  
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: path= "/home/grissiom/sandbox/temp.pdf" sub_entry: 0x0       
okular(1920)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added already watched Entry "/home/grissiom/sandbox/temp.pdf" (now 1 clients) "[KDirWatch-1]"                                                                                            
okular(1920)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring                          
okular(1920)/kio (KDirWatch) KDirWatchPrivate::useINotify: inotify successfully used for monitoring                      
okular(1920)/kio (KDirWatch) KDirWatch::setCreated: "KDirWatch-1" emitting created "/home/grissiom/sandbox/temp.pdf"     
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: path= "/home/grissiom/sandbox" sub_entry: 0x82ae1dc          
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: path= "/home/grissiom/sandbox/temp.pdf" sub_entry: 0x0       
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Cancelled INotify (fd 15, 1) for "/home/grissiom/sandbox/temp.pdf"
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Removed File "/home/grissiom/sandbox/temp.pdf" for "" ["KDirWatch-1"]
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: path= "/home/grissiom/sandbox" sub_entry: 0x0
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Cancelled INotify (fd 15, 40) for "/home/grissiom/sandbox"
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Removed Dir "/home/grissiom/sandbox" for "" ["KDirWatch-1"]
okular(1920)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "application/pdf" ,  "okular/Generator"  : returning  1  offers
okular(1920)/okular (app) Okular::Document::requestPixmaps: request id=3 866x1225@0
okular(1920)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: sending request id=3 866x1225@0 async == true
okular(1920)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added File "/home/grissiom/sandbox/temp.pdf" for "" ["KDirWatch-1"]
okular(1920)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring
okular(1920)/kio (KDirWatch) KDirWatchPrivate::useINotify: inotify successfully used for monitoring
okular(1920)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added Dir "/home/grissiom/sandbox" for "" ["KDirWatch-1"]
okular(1920)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring
okular(1920)/kio (KDirWatch) KDirWatchPrivate::useINotify: inotify successfully used for monitoring
okular(1920)/okular (app) Okular::Document::requestPixmaps: request id=3 866x1225@0
okular(1920)/okular (app) Okular::Document::requestPixmaps: request id=3 866x1225@0
okular(1920)/okular (app) Okular::Document::requestPixmaps: request id=4 259x367@0
okular(1920)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: sending request id=4 259x367@0 async == true
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: path= "/home/grissiom/sandbox/temp.pdf" sub_entry: 0x0
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Cancelled INotify (fd 15, 41) for "/home/grissiom/sandbox/temp.pdf"
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Removed File "/home/grissiom/sandbox/temp.pdf" for "" ["KDirWatch-1"]
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: path= "/home/grissiom/sandbox" sub_entry: 0x0
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Cancelled INotify (fd 15, 42) for "/home/grissiom/sandbox"
okular(1920)/kio (KDirWatch) KDirWatchPrivate::removeEntry: Removed Dir "/home/grissiom/sandbox" for "" ["KDirWatch-1"]
okular(1920)/kio (bookmarks) KBookmarkManager::saveAs: KBookmarkManager::save  "/home/grissiom/.kde/share/apps/okular/bookmarks.xml"
okular(1920)/kparts KParts::Part::~Part: deleting widget  Sidebar(0x8133ca8)   ""

symptoms:
1, open a system monitor, I can see okular consume nearly 50% "CPU System Load". When I try to kill it, it does not have any response.

2, When I lsof my system, I can see okular is using my disk.

I wish I have provided enough info that you can debug into it.
Comment 1 Pino Toscano 2009-01-08 01:50:43 UTC
*** Bug 179974 has been marked as a duplicate of this bug. ***
Comment 2 Albert Astals Cid 2009-01-18 22:08:22 UTC
Can't reproduce it here :-/
Comment 3 Maciej Pilichowski 2009-02-19 17:20:57 UTC
KDE 4.2, I can reproduce this always, however in my case, the biggest problem is not CPU but after-quit effect.

When the script is finished, I can normally used okular, for example go to next page, etc. But the moment I quit, entire system is frozen, including mouse, keyboard (caps lock, num lock), power off button too.

Btw. my CPU is 64-bit and so the system.

Please consider changing the status to crash -- it does not show the crash log, but technically it is crash (after all, all user can do is pull out the plug).
Comment 4 Pino Toscano 2009-02-19 17:42:34 UTC
(In reply to comment #3)
> KDE 4.2, I can reproduce this always, however in my case, the biggest problem
> is not CPU but after-quit effect.

Your problem is not this one, but bug #180521.
Comment 5 Pino Toscano 2009-02-19 18:17:00 UTC
@anyone who can reproduce -this- bug:
Which kernel are you using?
Can you please try the instructions I gave in https://bugs.kde.org/show_bug.cgi?id=180521#c13 and see whether it changes anything?

Thanks!
Comment 6 Grissiom 2009-02-20 10:28:30 UTC
The problem listed in the original post was gone in KDE4.2. So mark it as resolved. Thanks for caring!