Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High memory usage in Atom 1.18 beta #308

Closed
simurai opened this issue May 18, 2017 · 14 comments
Closed

High memory usage in Atom 1.18 beta #308

simurai opened this issue May 18, 2017 · 14 comments
Labels

Comments

@simurai
Copy link

simurai commented May 18, 2017

Originally reported here: atom/atom#14436

In Atom 1.18 (currently beta), having a few files open and then enabling this package seems to use a lot of RAM (some GBs).

memory

Console shows:

task.coffee:109 FATAL ERROR: deserialize context Allocation failed - process out of memory
 1: (anonymous function) @ task.coffee:109emitOne @ events.js:96emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
task.coffee:109 node::Abort() [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 2: node::DLOpen(v8::FunctionCallbackInfo<v8::Value> const&) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 5: v8::internal::Deserializer::DeserializePartial(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSGlobalProxy>) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 6: v8::internal::Snapshot::NewContextFromSnapshot(v8::internal::Isolate*, v8::internal::Handle<v8::internal::JSGlobalProxy>) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 7: v8::internal::Genesis::Genesis(v8::internal::Isolate*, v8::internal::MaybeHandle<v8::internal::JSGlobalProxy>, v8::Local<v8::ObjectTemplate>, v8::ExtensionConfiguration*, v8::internal::GlobalContextType) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 8: v8::internal::Bootstrapper::CreateEnvironment(v8::internal::MaybeHandle<v8::internal::JSGlobalProxy>, v8::Local<v8::ObjectTemplate>, v8::ExtensionConfiguration*, v8::internal::GlobalContextType) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 9: v8::Context::New(v8::Isolate*, v8::ExtensionConfiguration*, v8::Local<v8::ObjectTemplate>, v8::Local<v8::Value>) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
10: (anonymous function) @ task.coffee:109emitOne @ events.js:96emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
task.coffee:109 node::ContextifyContext::IsContext(v8::FunctionCallbackInfo<v8::Value> const&)(anonymous function) @ task.coffee:109emitOne @ events.js:96emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
task.coffee:109  [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib](anonymous function) @ task.coffee:109emitOne @ events.js:96emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
task.coffee:109 
(anonymous function) @ task.coffee:109emitOne @ events.js:96emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
task.coffee:109 11: (anonymous function) @ task.coffee:109emitOne @ events.js:96emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
task.coffee:109 node::ContextifyContext::IsContext(v8::FunctionCallbackInfo<v8::Value> const&) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
12: (anonymous function) @ task.coffee:109emitOne @ events.js:96emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
task.coffee:109 node::ContextifyContext::IsContext(v8::FunctionCallbackInfo<v8::Value> const&) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib](anonymous function) @ task.coffee:109emitOne @ events.js:96emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
task.coffee:109 
13: (anonymous function) @ task.coffee:109emitOne @ events.js:96emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
task.coffee:109 node::ContextifyContext::MakeContext(v8::FunctionCallbackInfo<v8::Value> const&) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
14: (anonymous function) @ task.coffee:109emitOne @ events.js:96emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
task.coffee:109 v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
15: v8::internal::Builtins::InvokeApiFunction(v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
16: v8::internal::Builtins::~Builtins() [/Applications/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
17: 0x2a687b7084e7
(anonymous function) @ task.coffee:109emitOne @ events.js:96emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
task.coffee:105 
<--- Last few GCs --->

   18620 ms: Mark-sweep 1389.3 (1420.7) -> 1354.5 (1387.7) MB, 648.4 / 0.0 ms (+ 0.0 ms in 36 steps since start of marking, biggest step 0.0 ms) [failed to reserve space in paged or large object space, trying to reduce memory footprint] [GC in old space requested].


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x12ab5ea883b1 <JS Object>
    1: createContext [vm.js:57] [pc=0x2a687b8b3f41](this=0x623feef59d1 <an Object with map 0x16c82d44d3c9>,sandbox=0x21a8227130f9 <an Object with map 0x16c82d482379>)
    2: runInNewContext [vm.js:40] [pc=0x2a687b8b3cba](this=0x21a822713121 <a ContextifyScript with map 0x16c82d416001>,sandbox=0x21a8227130f9 <an Object with map 0x16c82d482379>,options=0x10c6d09043c1 <undefined>)
    3: runInNewC...

Might be related to adding snapshots atom/atom#13916, but not sure.

@nibushibu
Copy link

Same here. 😢

macOS 10.12.5
Atom 1.18.0-beta0

@Ben3eeE
Copy link

Ben3eeE commented May 18, 2017

I have the same problem on Windows 7.

@hffionawu
Copy link

same here
macOS Sierra
atom 1.18.0-beta0

@MD-ThorErik
Copy link

It leaves my system out of memory with a certain project folder too.
Atom : 1.18.0-beta0
Electron: 1.3.15
Chrome : 52.0.2743.82
Node : 6.5.0
On Linux

@Cxarli
Copy link
Collaborator

Cxarli commented May 20, 2017

Also confirmed on my system. Fresh Atom install with only pigments running. Node and Electron are both up-to-date with the Arch/AUR repos.

@sbstnmsch-zz
Copy link

Same here on 0.39.1 and Atom 1.18.0-beta0. When Pigments is enabled it will boost an Atom Helper Process to CPU loads constantly higher than 100% and high RAM usage after opening a single file, no matter what type. I'm on a Macbook / MacOS 10.12.3.

@nibushibu
Copy link

In the latest beta version, the problem seems to have stopped occurring.

macOS 10.12.5
Atom 1.18.0-beta2

@Cxarli Cxarli added the bug label May 31, 2017
@Cxarli
Copy link
Collaborator

Cxarli commented May 31, 2017

Not sure what caused it, but I'm glad it's solved.

@ekfuhrmann
Copy link

I'm on the latest beta build [1.18.0-beta2] and still experiencing the massive memory issues on Win10.

@phyllisstein
Copy link

phyllisstein commented Jun 7, 2017

This is ongoing for me as well, in Atom 1.18.0-beta2.

screen shot 2017-06-07 at 10 19 59 am

@ekfuhrmann
Copy link

Is there any update on the progress of this? 1.18 is now the stable release of Atom and this still is not resolved, rendering Pigments entirely unusable.

@xzilja
Copy link

xzilja commented Jul 11, 2017

+1

@NoahDavidATL
Copy link

I like the concept of Pigments, but in its' current state it makes ATOM unstable (and in my case, causes it to freeze outright).

@Cxarli
Copy link
Collaborator

Cxarli commented Sep 22, 2017

Closing in favour of the master post.

@Cxarli Cxarli closed this as completed Sep 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests