LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   High cpu usage by firefox After power failure (https://www.linuxquestions.org/questions/slackware-14/high-cpu-usage-by-firefox-after-power-failure-4175591356/)

Bapun007 10-13-2016 03:30 PM

High cpu usage by firefox After power failure
 
Hi guys,
I am using slackware 14.2 32bit on my dell vostro 1015(core 2 due 2.10 ghz, 4gb ram, intel graphics).
Some days ago my system shutdown because of a power failure while firefox and chrome were running.
After the reboot both the browsers start using a lot of cpu .
I tried deleting .mozilla folder from my home dir and .cache dir ,deleting some unused plugins, and a complete reinstall of firefox but the problem is still there.

Code:

top - 01:55:53 up  2:23,  6 users,  load average: 2.61, 2.62, 2.44
Tasks: 221 total,  2 running, 219 sleeping,  0 stopped,  0 zombie
%Cpu(s): 64.1 us,  5.3 sy,  0.0 ni, 30.3 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
KiB Mem :  4092756 total,  1640372 free,  836584 used,  1615800 buff/cache
KiB Swap: 11720076 total, 11720076 free,        0 used.  2901716 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM    TIME+ COMMAND                                                                                               
 5593 bapun    20  0  841244 326904  85444 R 125.1  8.0  11:21.56 firefox                                                                                               
 1544 bapun    20  0  640952 201192 106764 S  6.8  4.9  8:34.55 plasma-desktop                                                                                         
 1728 bapun    20  0  125672  49684  40332 S  2.9  1.2  1:16.17 yakuake                                                                                               
 1344 root      20  0  159992  78396  58636 S  2.6  1.9  13:02.93 Xorg                                                                                                   
 5845 bapun    20  0    3932  2560  2192 R  2.3  0.1  0:01.84 top                                                                                                   
 1208 root      20  0  103064  13156  11284 S  0.3  0.3  0:07.78 NetworkManager                                                                                         
 1422 bapun    20  0  445908  61544  51460 S  0.3  1.5  0:10.35 kded4                                                                                                 
 1530 bapun    20  0  442116  99760  64360 S  0.3  2.4  7:48.21 kwin                                                                                                   
 1552 bapun    20  0    2832  1904  1684 S  0.3  0.0  0:14.35 ksysguardd                                                                                             
 3870 bapun    20  0  20752  8116  6380 S  0.3  0.2  0:01.83 irssi                                                                                                 
 4954 root      20  0      0      0      0 S  0.3  0.0  0:01.56 kworker/u4:1                                                                                           
 5090 root      20  0      0      0      0 S  0.3  0.0  0:02.84 kworker/0:3                                                                                           
 5851 root      20  0      0      0      0 S  0.3  0.0  0:00.10 kworker/1:0                                                                                           
    1 root      20  0    2116  1396  1324 S  0.0  0.0  0:01.26 init                                                                                                   
    2 root      20  0      0      0      0 S  0.0  0.0  0:00.00 kthreadd

This is the cpu usage with only linuxquestions.org home page opened.

xsessions-error-
Code:

grep firefox .xsession-errors
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 88080603 ;WMCLASS: "firefox" : "navigator" ;Caption: "Mozilla Firefox" ' : 167078
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 79691995 ;WMCLASS: "firefox" : "navigator" ;Caption: "Mozilla Firefox" ' : 2204124
kwin(1530) KWin::Workspace::allowClientActivation: Activation, compared: 'ID: 79691995 ;WMCLASS: "firefox" : "navigator" ;Caption: "Mozilla Firefox" ' : 2204124 : 2204041 : true
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94372059 ;WMCLASS: "firefox" : "navigator" ;Caption: "Mozilla Firefox" ' : 3620639
kwin(1530) KWin::Workspace::allowClientActivation: Activation, compared: 'ID: 94372059 ;WMCLASS: "firefox" : "navigator" ;Caption: "Mozilla Firefox" ' : 3620639 : 3632049 : false
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 98566363 ;WMCLASS: "firefox" : "navigator" ;Caption: "Mozilla Firefox" ' : 3796934
kwin(1530) KWin::Workspace::allowClientActivation: Activation, compared: 'ID: 98566363 ;WMCLASS: "firefox" : "navigator" ;Caption: "Mozilla Firefox" ' : 3796934 : 3802918 : false
QSqlDatabasePrivate::removeDatabase: connection '/home/bapun/.mozilla/firefox/8pn2954c.default/places.sqlite' is still in use, all queries will cease to work.
QSqlDatabasePrivate::addDatabase: duplicate connection name '/home/bapun/.mozilla/firefox/8pn2954c.default/places.sqlite', old connection removed.
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94372012 ;WMCLASS: "firefox" : "browser" ;Caption: "Import Wizard" ' : 4582737
kwin(1530) KWin::Workspace::allowClientActivation: Activation, compared: 'ID: 94372012 ;WMCLASS: "firefox" : "browser" ;Caption: "Import Wizard" ' : 4582737 : 4579947 : true
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94372308 ;WMCLASS: "firefox" : "navigator" ;Caption: "Mozilla Firefox" ' : 4588679
(firefox:3988): Gtk-CRITICAL **: IA__gtk_clipboard_set_with_data: assertion 'targets != NULL' failed
(firefox:3988): Gtk-CRITICAL **: IA__gtk_clipboard_set_with_data: assertion 'targets != NULL' failed
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94586376 ;WMCLASS: "firefox" : "popup" ;Caption: "Firefox" ' : 5158839
kwin(1530) KWin::Client::configureRequest: PERMITTED 'ID: 94586376 ;WMCLASS: "firefox" : "popup" ;Caption: "Firefox" ' true
kwin(1530) KWin::Client::configureRequest: PERMITTED 'ID: 94586376 ;WMCLASS: "firefox" : "popup" ;Caption: "Firefox" ' true
1476386918198  addons.repository      WARN    AddonRepository search failed: searching true aURI https://services.addons.mozilla.org/en-US/firefox/api/1.5/search/guid:%7B03cb16aa-4675-11e5-b233-213b1d5d46b0%7D?src=firefox&appOS=Linux&appVersion=45.4.0 aMaxResults 1
1476386918494  addons.xpi      ERROR  Attempted to load bootstrap scope from missing directory /home/bapun/.mozilla/firefox/r4cz6igg.default/extensions/firefox-hotfix@mozilla.org.xpi
1476386918495  addons.xpi      WARN    Add-on firefox-hotfix@mozilla.org is missing bootstrap method startup
1476386926335  addons.xpi      ERROR  Failed to clean updated system add-ons directories.: Unix error 2 during operation DirectoryIterator.prototype.next on file /home/bapun/.mozilla/firefox/r4cz6igg.default/features (No such file or directory) ((unknown module)) No traceback available
1476387052912  addons.xpi      WARN    Exception running bootstrap method shutdown on firebug@software.joehewitt.com: ReferenceError: FirebugGCLICommands is not defined (resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/bapun/.mozilla/firefox/r4cz6igg.default/extensions/firebug@software.joehewitt.com.xpi!/bootstrap.js:105:5) JS Stack trace: shutdown@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/bapun/.mozilla/firefox/r4cz6igg.default/extensions/firebug@bootstrap.js:105:5 < this.XPIProvider.callBootstrapMethod@XPIProvider.jsm:4655:9 < this.XPIProvider.updateAddonDisabledState@XPIProvider.jsm:4774:1 < AddonWrapper.prototype.userDisabled@XPIProvider.jsm:7069:9 < uninstall@extensions.xml:1545:13 < oncommand@about:addons:1:1 < waitForSyncCallback@async.js:102:7 < makeSpinningCallback/callback.wait@async.js:156:27 < create@addons.js:299:19 < Store.prototype.applyIncoming@engines.js:337:7 < applyIncoming@addons.js:281:5 < Store.prototype.applyIncomingBatch@engines.js:304:9 < doApplyBatch@engines.js:995:32 < SyncEngine.prototype._processIncoming/newitems.recordHandler@engines.js:1110:9 < Collection.prototype.recordHandler/this._onProgress@record.js:628:9 < Channel_onDataAvail@resource.js:561:7 < waitForSyncCallback@async.js:102:7 < Res__request@resource.js:408:14 < Res_get@resource.js:432:12 < SyncEngine.prototype._processIncoming@engines.js:1117:18 < SyncEngine.prototype._sync@engines.js:1545:7 < WrappedNotify@util.js:148:21 < Engine.prototype.sync@engines.js:669:5 < _syncEngine@enginesync.js:214:7 < sync@enginesync.js:164:15 < onNotify@service.js:1309:7 < WrappedNotify@util.js:148:21 < WrappedLock@util.js:103:16 < _lockedSync@service.js:1299:12 < sync/<@service.js:1291:14 < WrappedCatch@util.js:77:16 < sync@service.js:1279:5
1476387079015  addons.xpi      WARN    Add-on firefox-hotfix@mozilla.org is missing bootstrap method shutdown
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94372059 ;WMCLASS: "firefox" : "navigator" ;Caption: "Mozilla Firefox" ' : 5370103
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94378597 ;WMCLASS: "firefox" : "popup" ;Caption: "Firefox" ' : 5424455
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94812982 ;WMCLASS: "firefox" : "dialog" ;Caption: "" ' : 6826279
kwin(1530) KWin::Client::configureRequest: PERMITTED 'ID: 94812982 ;WMCLASS: "firefox" : "dialog" ;Caption: "Opening 677361.jpg" ' true
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94832278 ;WMCLASS: "firefox" : "dialog" ;Caption: "" ' : 6932047
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94832727 ;WMCLASS: "firefox" : "toplevel" ;Caption: "Add Downloads" ' : 6937127
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94833340 ;WMCLASS: "firefox" : "dta" ;Caption: "DownThemAll!" ' : 6942607
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94835466 ;WMCLASS: "firefox" : "dialog" ;Caption: "" ' : 6949159
kwin(1530) KWin::Client::configureRequest: PERMITTED 'ID: 94835466 ;WMCLASS: "firefox" : "dialog" ;Caption: "Opening 677362.jpg" ' true
kwin(1530) KWin::Client::configureRequest: PERMITTED 'ID: 94835466 ;WMCLASS: "firefox" : "dialog" ;Caption: "Opening 677362.jpg" ' true
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94841831 ;WMCLASS: "firefox" : "dialog" ;Caption: "" ' : 6980551
kwin(1530) KWin::Client::configureRequest: PERMITTED 'ID: 94841831 ;WMCLASS: "firefox" : "dialog" ;Caption: "Opening 227189.jpg" ' true
kwin(1530) KWin::Client::configureRequest: PERMITTED 'ID: 94841831 ;WMCLASS: "firefox" : "dialog" ;Caption: "Opening 227189.jpg" ' true
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94843101 ;WMCLASS: "firefox" : "dialog" ;Caption: "" ' : 6991015
kwin(1530) KWin::Client::configureRequest: PERMITTED 'ID: 94843101 ;WMCLASS: "firefox" : "dialog" ;Caption: "Opening 227678.jpg" ' true
kwin(1530) KWin::Client::configureRequest: PERMITTED 'ID: 94843101 ;WMCLASS: "firefox" : "dialog" ;Caption: "Opening 227678.jpg" ' true
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94917300 ;WMCLASS: "firefox" : "dialog" ;Caption: "" ' : 7137359
kwin(1530) KWin::Client::configureRequest: PERMITTED 'ID: 94917300 ;WMCLASS: "firefox" : "dialog" ;Caption: "Opening 225718.jpg" ' true
kwin(1530) KWin::Client::configureRequest: PERMITTED 'ID: 94917300 ;WMCLASS: "firefox" : "dialog" ;Caption: "Opening 225718.jpg" ' true
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94917937 ;WMCLASS: "firefox" : "dta" ;Caption: "DownThemAll!" ' : 7143047
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94918380 ;WMCLASS: "firefox" : "dialog" ;Caption: "Remove Downloads" ' : 7147711
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 94919130 ;WMCLASS: "firefox" : "dialog" ;Caption: "Remove Downloads" ' : 7164327
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 79691995 ;WMCLASS: "firefox" : "navigator" ;Caption: "Mozilla Firefox" ' : 7386552
1476389246124  addons.xpi      WARN    Exception running bootstrap method shutdown on firebug@software.joehewitt.com: ReferenceError: FirebugGCLICommands is not defined (resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/bapun/.mozilla/firefox/r4cz6igg.default/extensions/firebug@software.joehewitt.com.xpi!/bootstrap.js:105:5) JS Stack trace: shutdown@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/bapun/.mozilla/firefox/r4cz6igg.default/extensions/firebug@bootstrap.js:105:5 < this.XPIProvider.callBootstrapMethod@XPIProvider.jsm:4655:9 < this.XPIProvider.updateAddonDisabledState@XPIProvider.jsm:4774:1 < AddonWrapper.prototype.userDisabled@XPIProvider.jsm:7069:9 < uninstall@extensions.xml:1545:13 < oncommand@about:addons:1:1 < waitForSyncCallback@async.js:102:7 < applyIncomingBatch@history.js:250:5 < doApplyBatch@engines.js:995:32 < SyncEngine.prototype._processIncoming/newitems.recordHandler@engines.js:1110:9 < Collection.prototype.recordHandler/this._onProgress@record.js:628:9 < Channel_onDataAvail@resource.js:561:7 < waitForSyncCallback@async.js:102:7 < Res__request@resource.js:408:14 < Res_get@resource.js:432:12 < SyncEngine.prototype._processIncoming@engines.js:1117:18 < HistoryEngine.prototype._processIncoming@history.js:61:14 < SyncEngine.prototype._sync@engines.js:1545:7 < WrappedNotify@util.js:148:21 < Engine.prototype.sync@engines.js:669:5 < _syncEngine@enginesync.js:214:7 < sync@enginesync.js:164:15 < onNotify@service.js:1309:7 < WrappedNotify@util.js:148:21 < WrappedLock@util.js:103:16 < _lockedSync@service.js:1299:12 < sync/<@service.js:1291:14 < WrappedCatch@util.js:77:16 < sync@service.js:1279:5
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 79691995 ;WMCLASS: "firefox" : "navigator" ;Caption: "Mozilla Firefox" ' : 7547048
[Child 5469] ###!!! ABORT: Aborting on channel error.: file /tmp/firefox-45.4.0esr/ipc/glue/MessageChannel.cpp, line 1861
[Child 5469] ###!!! ABORT: Aborting on channel error.: file /tmp/firefox-45.4.0esr/ipc/glue/MessageChannel.cpp, line 1861
kwin(1530) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 79691995 ;WMCLASS: "firefox" : "navigator" ;Caption: "Mozilla Firefox" ' : 8104640

Please help me solve this problem.
Thanks and sorry for my bad english.

Richard Cranium 10-13-2016 09:37 PM

I would try re-installing the firefox package.

rokytnji 10-14-2016 12:04 AM

Maybe run a live gparted session on a live iso and do a check on your slackware partitions also.

Bapun007 10-14-2016 02:30 AM

Quote:

Originally Posted by Richard Cranium (Post 5617776)
I would try re-installing the firefox package.

Thanks for the replay Richard.
I tried reinstalling firefox after removing ~/.mozilla and ~/.cache/mozilla , but the problem is still there.

Bapun007 10-14-2016 02:31 AM

Quote:

Originally Posted by rokytnji (Post 5617811)
Maybe run a live gparted session on a live iso and do a check on your slackware partitions also.

Sir , i have already done a fsck on the disk:
Code:

root@mrutyunjaya-Vostro-1015:/home/mrutyunjaya# fsck /dev/volumegroup1/lv2
fsck from util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
/dev/mapper/volumegroup1-lv2: clean, 570589/2293760 files, 4103760/9175040 blocks
root@mrutyunjaya-Vostro-1015:/home/mrutyunjaya#


Bapun007 10-14-2016 02:37 AM

Chromium is also having the same problem, so may be some dependency of both browsers get corrupted by power failure , is there some way to find which files get corrupted??
With high cpu usage both browsers are taking 100% cpu usage when i try to play youtube(html5), is there a common dependency of both for html5??

kjhambrick 10-14-2016 05:33 AM

bapun007 --

I don't run firebug but if you do, the line from your core-dump looks odd ( I broke the line on the '<' symbol ):

Maybe turn off or uninstall firebug if it is installed ?

Another suggestion ... try creating a new user and try firefox on the new account ?

-- kjh

Code:

1476389246124  addons.xpi      WARN    Exception running bootstrap method shutdown on firebug@software.joehewitt.com: ReferenceError: FirebugGCLICommands is not defined (resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/bapun/.mozilla/firefox/r4cz6igg.default/extensions/firebug@software.joehewitt.com.xpi!/bootstrap.js:105:5) JS Stack trace: shutdown@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/bapun/.mozilla/firefox/r4cz6igg.default/extensions/firebug@bootstrap.js:105:5
< this.XPIProvider.callBootstrapMethod@XPIProvider.jsm:4655:9
< this.XPIProvider.updateAddonDisabledState@XPIProvider.jsm:4774:1
< AddonWrapper.prototype.userDisabled@XPIProvider.jsm:7069:9
< uninstall@extensions.xml:1545:13
< oncommand@about:addons:1:1
< waitForSyncCallback@async.js:102:7
< applyIncomingBatch@history.js:250:5
< doApplyBatch@engines.js:995:32
< SyncEngine.prototype._processIncoming/newitems.recordHandler@engines.js:1110:9
< Collection.prototype.recordHandler/this._onProgress@record.js:628:9
< Channel_onDataAvail@resource.js:561:7
< waitForSyncCallback@async.js:102:7
< Res__request@resource.js:408:14
< Res_get@resource.js:432:12
< SyncEngine.prototype._processIncoming@engines.js:1117:18
< HistoryEngine.prototype._processIncoming@history.js:61:14
< SyncEngine.prototype._sync@engines.js:1545:7
< WrappedNotify@util.js:148:21
< Engine.prototype.sync@engines.js:669:5
< _syncEngine@enginesync.js:214:7
< sync@enginesync.js:164:15
< onNotify@service.js:1309:7
< WrappedNotify@util.js:148:21
< WrappedLock@util.js:103:16
< _lockedSync@service.js:1299:12
< sync/
<@service.js:1291:14
< WrappedCatch@util.js:77:16
< sync@service.js:1279:5


Darth Vader 10-14-2016 05:58 AM

WOW! What surprise! Amazing!

So, you discovered that both Chrome and Firefox are CPU and Memory Hogs? Who through that? :D

What's next? You want to present us a revolutionary round device called "wheel" ?!?

Bapun007 10-14-2016 06:31 AM

Quote:

Originally Posted by Darth Vader (Post 5617908)
WOW! What surprise! Amazing!

So, you discovered that both Chrome and Firefox are CPU and Memory Hogs? Who through that? :D

What's next? You want to present us a revolutionary round device called "wheel" ?!?

Sir , I am not telling firefox and chrome are light weight apps , but in my system even with 5-10 tabs open they dont use more then 70% cpu or slowdown , but now they are extrimly slow and using 100% cpu.

Skaendo 10-14-2016 06:38 AM

Quote:

Originally Posted by Bapun007 (Post 5617912)
Sir , I am not telling firefox and chrome are light weight apps , but in my system even with 5-10 tabs open they dont use more then 70% cpu or slowdown , but now they are extrimly slow and using 100% cpu.

Maybe you could try palemoon or light-firefox, both are available at slackbuilds.org, and see if they use the same amount of resources.

bassmadrigal 10-14-2016 06:56 AM

Quote:

Originally Posted by Bapun007 (Post 5617912)
Sir , I am not telling firefox and chrome are light weight apps , but in my system even with 5-10 tabs open they dont use more then 70% cpu or slowdown , but now they are extrimly slow and using 100% cpu.

Don't mind Darth Vader... he tends to vent his frustration at random posts on here, without regard to the person he is replying to and whether that information will be beneficial.

As to your issue, you stated you removed the .mozilla/ and .cache/mozilla/ folders, but in your initial output, it is showing that there's missing files from at least the .mozilla/ directory, which seems to indicate that it didn't completely remove your profile. Try creating a new profile using firefox -p (or create a new user and try launching it from there) and see if that shows the same issues. That can help determine if this is simply a corrupted profile or something more involved.

Bapun007 10-14-2016 07:42 AM

Quote:

Originally Posted by bassmadrigal (Post 5617919)
Don't mind Darth Vader... he tends to vent his frustration at random posts on here, without regard to the person he is replying to and whether that information will be beneficial.

As to your issue, you stated you removed the .mozilla/ and .cache/mozilla/ folders, but in your initial output, it is showing that there's missing files from at least the .mozilla/ directory, which seems to indicate that it didn't completely remove your profile. Try creating a new profile using firefox -p (or create a new user and try launching it from there) and see if that shows the same issues. That can help determine if this is simply a corrupted profile or something more involved.

Thanks for the replay bassmadrigal .
Using firefox from a fresh account seems to have the same problem.
I am going to try light-firefox which Skaendo suggested.

kjhambrick 10-14-2016 09:01 AM

Bapun007 --

I mistook the .xseession-errors output for firefox errors.

I wonder what you'll see if you close firefox ; open a console and type: firefox &

Are there error messages ?

-- kjh

kevison 10-14-2016 02:12 PM

Quote:

Originally Posted by Darth Vader (Post 5617908)
WOW! What surprise! Amazing!

So, you discovered that both Chrome and Firefox are CPU and Memory Hogs? Who through that? :D

What's next? You want to present us a revolutionary round device called "wheel" ?!?

... Not only that but they use some of the same code used in the device drivers for the Samsung Galaxy Note 7.... get your fire extinguisher ready.... :p :p

zk1234 10-14-2016 02:51 PM

After power failure ? Firefox saves a lot of data (such as browsing history ) using SQLite. One of the databases can be broken due to the power failure.
As for YouTube videos, make sure that your /dev/shm is setup correctly.

.


All times are GMT -5. The time now is 07:41 AM.