question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Out of memory error

See original GitHub issue
dougwade main/corvair ‹dbw-test-gulp-generate-components*› » jscpd -e target/ -e node_modules/
info:    jscpd - copy/paste detector for programming source code, developed by Andrey Kucherenko
info:    Preprocessors running time: durationMs=12123
info:    Scanning 37213 files for duplicates...

<--- Last few GCs --->

  715581 ms: Mark-sweep 1378.7 (1441.2) -> 1378.7 (1441.2) MB, 3159.8 / 0 ms [allocation failure] [GC in old space requested].
  718731 ms: Mark-sweep 1378.7 (1441.2) -> 1378.7 (1441.2) MB, 3150.1 / 0 ms [last resort gc].
  721964 ms: Mark-sweep 1378.7 (1441.2) -> 1378.7 (1441.2) MB, 3233.3 / 0 ms [last resort gc].


<--- JS stacktrace --->

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

Security context: 0x2f3b9cac9e59 <JS Object>
    2: generateMap [/usr/local/lib/node_modules/jscpd/lib/tokenizer/TokenizerCodeMirror.js:~84] [pc=0xfd58aa1a903] (this=0x5da95c5ee79 <a TokenizerCodeMirror with map 0x1606a80801>)
    3: detect [/usr/local/lib/node_modules/jscpd/lib/strategy.js:39] [pc=0xfd58a972ec7] (this=0x5da95c5efe1 <a Strategy with map 0xf0a72e716b1>,map=0x5da95c5ef61 <a Map with map 0xf0a72e72159>,file=0x255070004ad9 <S...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
[1]    3952 abort      jscpd -e target/ -e node_modules
dougwade main/corvair ‹dbw-test-gulp-generate-components*› » node -v                                                                                                        134 ↵
v6.2.2

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
XiongbinZhaocommented, Jul 8, 2020

Thanks for pointing this out! I just figured out I installed leveldb locally while jscpd was installed globally, after I install them both globally, it ran successfully!

Thanks again for the help! Appreciate

0reactions
kucherenkocommented, Jul 7, 2020

Could you please tell me the command what you run for detect duplications? Is it globally installed jscpd or locally?

Read more comments on GitHub >

github_iconTop Results From Across the Web

3.2 Understand the OutOfMemoryError Exception
One common indication of a memory leak is the java.lang.OutOfMemoryError exception. Usually, this error is thrown when there is insufficient space to ...
Read more >
Steps to Fix Out of Memory Error in Windows 10, 8.1, 8, 7
Out-of-memory error is an often unwanted state of computer performance. Where no additional memory can be assigned for use by applications or ...
Read more >
What Does "out of Memory" Mean? - EasyTechJunkie
"Out of memory" (OOM) is an error message seen when a computer no longer has any spare memory to allocate to programs. An...
Read more >
The 4 general reasons for OutOfMemoryError errors and ... - IBM
Terminology: OutOfMemoryError – a Java error, like an exception, but worse. Normally this error indicates a shortage of Java heap, but can also...
Read more >
Fix Error Code: Out of Memory [Browser Edge, Chrome, Brave]
What does Error code: Out of memory mean? ... This error implies that the resources or memory available in the Edge browser are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found