Closed Bug 1583927 Opened 3 years ago Closed 1 year ago

Firefox has 100% CPU usage.

Categories

(Core :: Performance, defect, P3)

71 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED INVALID
Performance Impact low

People

(Reporter: mystiquewolf, Unassigned)

References

Details

(Keywords: perf:resource-use)

Attachments

(2 files)

Attached image 2019-09-25_20-39.png

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0

Steps to reproduce:

I did nothing, just browse some 4-5 opened tabs in memory.

Actual results:

https://perfht.ml/2la1uMT

Hope this helps. I can help record better profiles including with other tools, just tell me what to use.

Attached image 2019-09-25_20-52.png
Component: Untriaged → Performance
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → x86_64

Does the CPU remain at 100% usage or does it go back down when you stop interacting with the page?

Also, could you capture a profile using the linux command line tool perf, as described on https://perf-html.io/docs/#/./guide-perf-profiling ? perf is better at pointing out CPU usage problems.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(liubomirwm)
Whiteboard: [qf]
Priority: -- → P3

Here is a profile from perf: https://perfht.ml/2IsE0ed

Flags: needinfo?(liubomirwm)

If i don't interact with it, the issue still stays.

After i close Firefox with Ctrl + Q, it still staus consuming 100% CPU for about 30 seconds, then it crashed with this error:AbortMessage: ###!!! ABORT: file resource://gre/modules/PlacesUtils.jsm, line 2000
AdapterDeviceID: 0x5917
AdapterDriverVendor: mesa/i965
AdapterDriverVersion: 19.2.0.0
AdapterVendorID: 0x8086
Add-ons: chrome-gnome-shell%40gnome.org:10.1,%7B41f9e51d-35e4-4b29-af66-422ff81c8b41%7D:2.3.1,browser%40tunnelbear.com:3.2.4,touch-vpn%40anchorfree.com:2.2.15,side-view%40mozilla.org:0.4.6423,jid1-93WyvpgvxzGATw%40jetpack:4.0.0,jid1-QoFqdK4qzUfGWQ%40jetpack:0.6.11,snoozetabs%40mozilla.com:1.1.1,%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D:3.6.3,%7B8620c15f-30dc-4dba-a131-7c5d20cf4a29%7D:4.0,support%40lastpass.com:4.33.5.12,extension%40tabliss.io:1.18.2,geckoprofiler%40mozilla.com:0.30,formautofill%40mozilla.org:1.0,screenshots%40mozilla.org:39.0.0,webcompat-reporter%40mozilla.org:1.1.0,webcompat%40mozilla.org:6.2.0,default-theme%40mozilla.org:1.0,google%40search.mozilla.org:1.0,amazondotcom%40search.mozilla.org:1.1,bing%40search.mozilla.org:1.0,ddg%40search.mozilla.org:1.0,ebay%40search.mozilla.org:1.0,twitter%40search.mozilla.org:1.0,wikipedia%40search.mozilla.org:1.0,amazon%40search.mozilla.org:1.1,chambers-en-GB%40search.mozilla.org:1.0
AsyncShutdownTimeout: {"phase":"Places Connection shutdown","conditions":[{"name":"PlacesUtils read-only connection closing as part of Places shutdown","state":"1. Service has initiated shutdown","filename":"resource://gre/modules/PlacesUtils.jsm","lineNumber":2000,"stack":["resource://gre/modules/PlacesUtils.jsm:setupDbForShutdown/promiseClosed<:2000","resource://gre/modules/PlacesUtils.jsm:setupDbForShutdown:1995","resource://gre/modules/PlacesUtils.jsm:null:2041"]}]}
BuildID: 20191005100501
ContentSandboxCapabilities: 119
ContentSandboxCapable: 1
ContentSandboxLevel: 4
CrashTime: 1570300827
DOMIPCEnabled: 1
Email: liubomirwm@outlook.com
FramePoisonBase: 9223372036600930304
FramePoisonSize: 4096
GPUProcessLaunchCount: 1
GPUProcessStatus: Running
InstallTime: 1570297266
IsWayland: 0
IsWaylandDRM: 0
MozCrashReason: MOZ_CRASH()
Notes: Ubuntu Eoan Ermine (development branch)FP(D00-L1000-W00000000-T000) WR? WR+ OMTP? OMTP+4 libGL.so.1? libGL.so.1+ GL Context? GL Context+ WebGL? WebGL+ xpcom_runtime_abort(###!!! ABORT: file resource://gre/modules/PlacesUtils.jsm, line 2000)
ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
ProductName: Firefox
ReleaseChannel: nightly
SafeMode: 0
SecondsSinceLastCrash: 2034416
ShutdownProgress: profile-before-change
StartupCrash: 0
StartupTime: 1570299076
TelemetryEnvironment: {"build":{"applicationId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","applicationName":"Firefox","architecture":"x86-64","buildId":"20191005100501","version":"71.0a1","vendor":"Mozilla","displayVersion":"71.0a1","platformVersion":"71.0a1","xpcomAbi":"x86_64-gcc3","updaterAvailable":true},"partner":{"distributionId":null,"distributionVersion":null,"partnerId":null,"distributor":null,"distributorChannel":null,"partnerNames":[]},"system":{"memoryMB":7836,"virtualMaxMB":null,"cpu":{"count":8,"cores":4,"vendor":"GenuineIntel","family":6,"model":142,"stepping":10,"l2cacheKB":256,"l3cacheKB":6144,"speedMHz":3400,"extensions":["hasMMX","hasSSE","hasSSE2","hasSSE3","hasSSSE3","hasSSE4_1","hasSSE4_2","hasAVX","hasAVX2","hasAES"]},"os":{"name":"Linux","version":"5.3.0-13-generic","locale":"en-US"},"hdd":{"profile":{"model":null,"revision":null,"type":null},"binary":{"model":null,"revision":null,"type":null},"system":{"model":null,"revision":null,"type":null}},"gfx":{"D2DEnabled":null,"DWriteEnabled":null,"ContentBackend":"Skia","Headless":false,"adapters":[{"description":"Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2) ","vendorID":"0x8086","deviceID":"0x5917","subsysID":null,"RAM":3072,"driver":null,"driverVendor":"mesa/i965","driverVersion":"19.2.0.0","driverDate":null,"GPUActive":true}],"monitors":[{"screenWidth":1920,"screenHeight":1080}],"features":{"compositor":"webrender","gpuProcess":{"status":"available"},"wrQualified":{"status":"available"},"webrender":{"status":"available"}}},"appleModelId":null},"settings":{"blocklistEnabled":true,"e10sEnabled":true,"e10sMultiProcesses":8,"telemetryEnabled":true,"locale":"en-US","intl":{"requestedLocales":["en-GB","en-US"],"availableLocales":["en-US"],"appLocales":["en-US"],"systemLocales":["en-US"],"regionalPrefsLocales":["bg-BG"],"acceptLanguages":["bg","en-us","en"]},"update":{"channel":"nightly","enabled":true,"autoDownload":true},"userPrefs":{"browser.cache.disk.capacity":1048576,"browser.search.region":"BG","browser.search.widget.inNavBar":false,"browser.startup.page":3,"layout.css.devPixelsPerPx":"1.25","privacy.donottrackheader.enabled":true},"sandbox":{"effectiveContentProcessLevel":4},"addonCompatibilityCheckEnabled":true,"isDefaultBrowser":true,"defaultSearchEngine":"google-b-d","defaultSearchEngineData":{"loadPath":"[other]addEngineWithDetails:google@search.mozilla.org","name":"Google","origin":"default","submissionURL":"https://www.google.com/search?client=firefox-b-d&q="}},"profile":{"creationDate":18100},"addons":{"activeAddons":{"chrome-gnome-shell@gnome.org":{"version":"10.1","scope":1,"type":"extension","updateDay":18101,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"This extension provides integration with GNOME Shell and the corresponding extensions repository htt","name":"GNOME Shell integration","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18101,"signedState":2},"{41f9e51d-35e4-4b29-af66-422ff81c8b41}":{"version":"2.3.1","scope":1,"type":"extension","updateDay":18101,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Adds the ability to disable JavaScript on specific sites.","name":"Disable JavaScript","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18101,"signedState":2},"browser@tunnelbear.com":{"version":"3.2.4","scope":1,"type":"extension","updateDay":18101,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Rawwwr! Put a Bear in your browser and privately access a more open internet in seconds!","name":"TunnelBear VPN","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18101,"signedState":2},"touch-vpn@anchorfree.com":{"version":"2.2.15","scope":1,"type":"extension","updateDay":18101,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Unblock any blocked website and stay secure with Touch VPN. Easy use with one-click activation. Unli","name":"Touch VPN","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18101,"signedState":2},"side-view@mozilla.org":{"version":"0.4.6423","scope":1,"type":"extension","updateDay":18101,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Open a mobile view of a page in the sidebar","name":"Side View","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18101,"signedState":2},"jid1-QoFqdK4qzUfGWQ@jetpack":{"version":"0.6.11","scope":1,"type":"extension","updateDay":18101,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Makes every page to have light text on dark background (exact colors are customizable)","name":"Dark Background and Light Text","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18101,"signedState":2},"snoozetabs@mozilla.com":{"version":"1.1.1","scope":1,"type":"extension","updateDay":18101,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"An add-on to let you snooze your tabs for a while.","name":"Snooze Tabs","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18101,"signedState":2},"{8620c15f-30dc-4dba-a131-7c5d20cf4a29}":{"version":"4.0","scope":1,"type":"extension","updateDay":18127,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Useful tools for the nightly tester.","name":"Nightly Tester Tools","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18127,"signedState":2},"{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}":{"version":"3.6.3","scope":1,"type":"extension","updateDay":18131,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Download Adblock Plus, one of the world's most popular ad blockers.","name":"Adblock Plus - free ad blocker","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18118,"signedState":2},"extension@tabliss.io":{"version":"1.18.2","scope":1,"type":"extension","updateDay":18140,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"A beautiful New Tab page with many customisable backgrounds and widgets that does not require any pe","name":"Tabliss","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18140,"signedState":2},"jid1-93WyvpgvxzGATw@jetpack":{"version":"4.0.0","scope":1,"type":"extension","updateDay":18163,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Highlight text on a web page and send it to Google Translate or listen the pronunciation.","name":"To Google Translate","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18101,"signedState":2},"support@lastpass.com":{"version":"4.33.5.12","scope":1,"type":"extension","updateDay":18165,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Last Password you will ever need","name":"LastPass: Free Password Manager","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18132,"signedState":2},"screenshots@mozilla.org":{"version":"39.0.0","scope":1,"type":"extension","updateDay":18174,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Take clips and screenshots from the Web and save them temporarily or permanently.","name":"Firefox Screenshots","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":17716},"webcompat-reporter@mozilla.org":{"version":"1.1.0","scope":1,"type":"extension","updateDay":18174,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Report site compatibility issues on webcompat.com","name":"WebCompat Reporter","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":17716},"formautofill@mozilla.org":{"version":"1.0","scope":1,"type":"extension","updateDay":18174,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":null,"name":"Form Autofill","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":17716},"webcompat@mozilla.org":{"version":"6.2.0","scope":1,"type":"extension","updateDay":18174,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Urgent post-release fixes for web compatibility.","name":"Web Compat","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":17716},"geckoprofiler@mozilla.com":{"version":"0.30","scope":1,"type":"extension","updateDay":18174,"isSystem":false,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Gecko Profiler WebExtension.","name":"Gecko Profiler","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18174,"signedState":2}},"theme":{"id":"default-theme@mozilla.org","blocklisted":false,"description":"A theme with the operating system color scheme.","name":"Default","userDisabled":false,"appDisabled":false,"version":"1.0","scope":4,"foreignInstall":false,"hasBinaryComponents":false,"installDay":18101,"updateDay":18083},"activePlugins":[{"name":"Shockwave Flash","version":"32.0.0.255","description":"Shockwave Flash 32.0 r0","blocklisted":false,"disabled":false,"clicktoplay":true,"mimeTypes":["application/x-shockwave-flash","application/futuresplash"],"updateDay":18135}],"activeGMPlugins":{"gmp-gmpopenh264":{"version":"1.8.1","userDisabled":false,"applyBackgroundUpdates":1}}}}
ThreadIdNameMapping: 5128:"Gecko_IOThread",5129:"JS Watchdog",5131:"JS Helper",5130:"JS Helper",5132:"JS Helper",5135:"JS Helper",5133:"JS Helper",5136:"JS Helper",5134:"JS Helper",5137:"JS Helper",5138:"Timer",5139:"Netlink Monitor",5144:"BHMgr Processor",5143:"BHMgr Monitor",5147:"Breakpad Server",5154:"VsyncIOThread",5159:"GLXVsyncThread",5165:"Compositor",5166:"ImgDecoder #1",5167:"ImageIO",5185:"ImageBridgeChild",5191:"IPDL Background",5192:"Cache2 I/O",5193:"Cookie",5196:"GMPThread",5197:"Worker Launcher",5202:"QuotaManager IO",5208:"StyleThread#1",5207:"StyleThread#0",5211:"StyleThread#4",5212:"StyleThread#5",5209:"StyleThread#2",5210:"StyleThread#3",5219:"FS Broker 5216",5247:"XULStore",5263:"DOM Worker",5268:"FS Broker 5265",5297:"cert_storage",5299:"DNS Resolver #1",5301:"Cache I/O",5315:"HTML5 Parser",5323:"FS Broker 5317",5352:"FS Broker 5349",5383:"FS Broker 5374",5432:"FS Broker 5429",5460:"ImgDecoder #2",5461:"ImgDecoder #3",5462:"ImgDecoder #4",5564:"mozStorage #1",5567:"mozStorage #3",5573:"mozStorage #5",5581:"FS Broker 5578",5589:"FS Broker 5586",5607:"FS Broker 5594",5650:"LS Thread",5684:"AudioIPC Client RPC",5686:"AudioIPC0",5694:"DOM Worker",5698:"DOM File",5737:"mozStorage #8",8530:"IdentityCrypto",8536:"DNS Resolver #4",9596:"BackgroundThreadPool #3",9600:"DOM Worker",9845:"Shutdown Hang Terminator",9846:"Shutdown Statistics Writer",9922:"StreamTrans #75",9923:"StreamTrans #76",
Throttleable: 1
URL: https://perf-html.io/docs/#/./guide-perf-profiling
UptimeTS: 1755.83489545
Vendor: Mozilla
Version: 71.0a1
useragent_locale: en-US

This report also contains technical information about the state of the application when it crashed.

Sorry to ask for another profile, but could you record one more with the Firefox Profiler, but this time with "mozStorage" in the threads list?

Flags: needinfo?(liubomirwm)

I have the same issue.
If I open a new private browsing page, the CPU and Firefox will be ok after a few seconds.
If I do nothing, the CPU will stick at 100% for a long time.

Yes, here is a record: https://perfht.ml/2OpTbYX

Same crash as above, same 100 CPU usage for one or two processors, not sure. That usage continues for about 20 seconds after closing the browser before Firefox crashes.

Flags: needinfo?(liubomirwm)

So, the SQL statement running is too long to be recorded (greater than 512 characters), so we don't know exactly what we're trying to do on that thread, but we spend most of our time in PR_Sleep, which I think means we're stuck in a SQLITE_BUSY loop here.

According to the SQLite documentation, SQLITE_BUSY indicates that another database connection is blocking us here. Given that the given mozStorage thread seems to be the only one with activity, I'm thinking another process is concurrently accessing the connection? That's about as far as I can get here.

Whiteboard: [qf] → [qf:p3:resource]

So, presuming this is the Places database, does anyone know what the right way is to determine which processes have a handle on a file on Linux?

Flags: needinfo?(lina)

Also happens in Firefox Developer Edition.

Is very bad because laptop becomes very hot and fan runs on maximum.

See Also: → 1567018
See Also: → 1643793

I've reinstalled the OS long ago and i am on Firefox Stable from Ubuntu repos. I think i haven't met this problem. So it must be something with the Nightly if it still reproduces there.

Clearing needinfo as it's been a year now with no response.

Flags: needinfo?(lina)

closing

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
Performance Impact: --- → P3
Whiteboard: [qf:p3:resource]
You need to log in before you can comment on or make changes to this bug.