Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Regular out-of-memory crashes, possibly associated with nodejs event emitter leaks #14214

Open
riastradh-brave opened this issue May 22, 2018 · 0 comments
Labels

Comments

@riastradh-brave
Copy link
Contributor

riastradh-brave commented May 22, 2018

Description

Periodically -- every few days -- Brave crashes, gathering all windows into the current workspace and blanking them for a minute before exiting, and leaving the following console output:

[25289:25289:0522/210011.404725:ERROR:CONSOLE(27)] "(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", source: chrome://brave/usr/lib/brave/resources/app.asar/app/extensions/brave/gen/app.entry.js (27)
[25289:25289:0522/210011.405008:ERROR:CONSOLE(27)] "(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", source: chrome://brave/usr/lib/brave/resources/app.asar/app/extensions/brave/gen/app.entry.js (27)
[1:11:0100/000000.415998:FATAL:memory.cc(22)] Out of memory. size=262144
Failed to create socket for crash dumping.
Window crashed. Reloading...
Window crashed. Reloading...
Window crashed. Reloading...
Window crashed. Reloading...
Window crashed. Reloading...
Window crashed. Reloading...
Window crashed. Reloading...
(node:25289) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 notification-response listeners added. Use emitter.setMaxListeners() to increase limit
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 notification-response listeners added. Use emitter.setMaxListeners() to increase limit
    at _addListener (events.js:262:19)
    at EventEmitter.addListener (events.js:279:10)
    at WebContents.win.webContents.on (/usr/lib/brave/resources/app.asar/app/browser/windows.js:349:19)
    at emitOne (events.js:96:13)
    at WebContents.emit (events.js:191:7)
Window crashed. Reloading...
Window crashed. Reloading...
Window crashed. Reloading...
Window crashed. Reloading...

Steps to Reproduce

Wish I knew! Just mind your own business using Brave, and all of a sudden...

Actual result:
Brave crashes!

Expected result:
Brave lets you continue minding your own business and getting work done.

Reproduces how often:
Once every few days.

Brave Version

about:brave info:

Name Version
Brave 0.22.714
V8 6.6.346.26
rev fa2fbca
Muon 6.0.9
OS Release 4.13.0-41-generic
Update Channel Release
OS Architecture x64
OS Platform Linux
Node.js 7.9.0
Brave Sync v1.4.2
libchromiumcontent 66.0.3359.139

Reproducible on current live release:
Yes.

Additional Information

I think it helps to be 90% of the way through writing a long comment on Github or similar, which doesn't save a draft anywhere, on the server or locally, until you actually hit submit.

@bsclifton bsclifton added this to the Triage Backlog milestone May 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants