webpack-deep-scope-analysis-plugin
webpack-deep-scope-analysis-plugin copied to clipboard
JavaScript heap out of memory
Getting the following error. The project I'm working with includes the @arcgis/webpack-plugin (which includes the dojo webpack plugin as well). If I comment out the @arcgis/webpack-plugin, I don't run into the error.
[10640:0000020CC46D93B0] 87515 ms: Scavenge 1260.1 (1349.9) -> 1259.5 (1355.4) MB, 7.6 / 0.0 ms (average mu = 0.168, current mu = 0.158) allocation failure
[10640:0000020CC46D93B0] 87670 ms: Scavenge 1263.4 (1355.4) -> 1263.2 (1355.4) MB, 7.4 / 0.0 ms (average mu = 0.168, current mu = 0.158) allocation failure
[10640:0000020CC46D93B0] 87689 ms: Scavenge 1263.4 (1355.4) -> 1262.7 (1367.4) MB, 10.8 / 0.0 ms (average mu = 0.168, current mu = 0.158) allocation failure
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 000003A7C0F5C5C1]
Security context: 0x0056cb71e6e1 <JSObject>
1: _addListener(aka _addListener) [000003FBDD61D4E9] [events.js:~193] [pc=000003A7C22223EC](this=0x02ea374026f1 <undefined>,target=0x0090982075e1 <Gzip map = 000002DD35A44BF9>,type=0x0056cb73ce89 <String[3]: end>,listener=0x009098207d21 <JSBoundFunction (BoundTargetFunction 000003FBDD61D529)>,prepend=0x02ea374029a1 <false>)
2: constructor(aka Zlib)...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF66FDFACB5
2: 00007FF66FDD44E6
3: 00007FF66FDD4EF0
4: 00007FF6700647FE
5: 00007FF67006472F
6: 00007FF670598964
7: 00007FF67058F0F2
8: 00007FF67058D68C
9: 00007FF67058BFB7
10: 00007FF6703B5E74
11: 00007FF6701D8427
12: 000003A7C0F5C5C1
I didn't get it. What's related to this project?
@vincentdchan I'm attempting to use the webpack-deep-scope-analysis-plugin. But in conjunction with the arcgis-webpack-plugin, the webpack-deep-scope-analysis-plugin throws the memory error.
@atdiff Alright. It would be helpful if you can provide an example repo to get this error.
The default heap size is not sufficient to run the webpack process. You can add NODE_OPTIONS=--max-old-space-size=<MegaBytes> before webpack command/
i also have this problem