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

Memory leak (?) #342

Open
thorn0 opened this issue May 29, 2018 · 4 comments
Open

Memory leak (?) #342

thorn0 opened this issue May 29, 2018 · 4 comments
Labels
needs-triage Unconfirmed issues

Comments

@thorn0
Copy link

thorn0 commented May 29, 2018

Windows 7 x64, Node v9.8.0

https://github.com/thorn0/grunt-contrib-concat/tree/fast-source-maps
source-map is used in this file.

After updating to 0.7.3, I started to get this from time to time:

<--- Last few GCs --->

[8556:000000000046F060] 84622740 ms: Mark-sweep 1399.5 (1464.3) -> 1399.4 (1465.8) MB, 915.2 / 0.0 ms  allocation failure GC in old space requested
[8556:000000000046F060] 84623765 ms: Mark-sweep 1399.4 (1465.8) -> 1399.3 (1434.3) MB, 1024.9 / 0.0 ms  last resort GC in old space requested
[8556:000000000046F060] 84624527 ms: Mark-sweep 1399.3 (1434.3) -> 1399.3 (1434.3) MB, 761.8 / 0.1 ms  last resort GC in old space requested


<--- JS stacktrace --->

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

Security context: 00000399B5425529 <JSObject>
    0: builtin exit frame: stringify(this=00000399B5408D59 <Object map = 0000034CDA482BA1>,000002A2EC202431 <String[0]: >,000002A2EC202201 <null>,0000024DA0883AC9 <Object
 map = 000001029AC8F251>)

    1: _write [d:\dev\srcui\grunt\concat\lib\sourcemap.js:215] [bytecode=000003D3792C0499 offset=174](this=0000031B39802289 <SourceMapConcatH
elper map = 000001A141A84E59>...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::DecodeWrite
 2: node_module_register
 3: v8::internal::FatalProcessOutOfMemory
 4: v8::internal::FatalProcessOutOfMemory
 5: v8::internal::Factory::NewRawOneByteString
 6: v8::internal::Smi::SmiPrint
 7: v8::internal::StackGuard::HandleInterrupts
 8: v8::internal::wasm::LocalDeclEncoder::Size
 9: v8::internal::wasm::LocalDeclEncoder::Size
10: v8::internal::wasm::LocalDeclEncoder::Size
11: v8_inspector::protocol::Debugger::API::SearchMatch::fromJSONString
12: v8_inspector::protocol::Debugger::API::SearchMatch::fromJSONString
13: 000001E97AA86B21
@fitzgen
Copy link
Contributor

fitzgen commented May 29, 2018

General note: you should probably use SourceMapConsumer.with so that everything is cleaned up even if there is an exception.

To be actionable, this issue needs a reduced test case and steps to reproduce that don't involve any other packages.

@thorn0
Copy link
Author

thorn0 commented Jun 1, 2018

Sorry, I don't know how to reproduce it. It happens couple times a week in a grunt process I constantly run.

@tongrow
Copy link

tongrow commented Feb 23, 2019

To be actionable, this issue needs a reduced test case and steps to reproduce that don't involve any other packages.

It can be reproduced in this repo, please, check an issue:
Atyantik/react-pwa#128

@argelj289
Copy link

General note: you should probably use SourceMapConsumer.with so that everything is cleaned up even if there is an exception.

To be actionable, this issue needs a reduced test case and steps to reproduce that don't involve any other packages.

sorry for noob question, where is "SourceMapConsumer.with" can be set?

@jkrems jkrems added the needs-triage Unconfirmed issues label Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Unconfirmed issues
Projects
None yet
Development

No branches or pull requests

6 participants
@fitzgen @thorn0 @jkrems @tongrow @argelj289 and others