-
Notifications
You must be signed in to change notification settings - Fork 1k
SPFx 1.22 Project Crashing with 'JavaScript heap out of memory' #10796
Copy link
Copy link
Open
Labels
Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.area:spfxCategory: SharePoint Framework (not extensions related)Category: SharePoint Framework (not extensions related)sharepoint-developer-supportsharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Metadata
Metadata
Assignees
Labels
Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.area:spfxCategory: SharePoint Framework (not extensions related)Category: SharePoint Framework (not extensions related)sharepoint-developer-supportsharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
I have a fairly chunky SPFx 'intranet' project, with 32 webparts and a custom header+footer, and I've recently upgraded it from SPFx 1.21 to 1.22. It's now crashing regularly when debugging locally (
npm run startto launch Heft).I can browse the page and make code changes maybe once or twice, then it dies with the following:
Starting incremental build...
---- build started ----
[build:set-browserslist-ignore-old-data-env-var] Setting environment variable BROWSERSLIST_IGNORE_OLD_DATA=1
[build:webpack] Running incremental Webpack compilation
<--- Last few GCs --->
[126132:0000025ABF80E000] 563169 ms: Mark-Compact 4088.7 (4138.0) -> 4085.7 (4139.0) MB, pooled: 2 MB, 635.84 / 0.00 ms (average mu = 0.117, current mu = 0.006) allocation failure; scavenge might not succeed
[126132:0000025ABF80E000] 564477 ms: Mark-Compact 4089.6 (4139.0) -> 4086.6 (4139.8) MB, pooled: 1 MB, 1302.52 / 0.00 ms (average mu = 0.043, current mu = 0.004) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 00007FF76C4818E7 node::SetCppgcReference+18263
2: 00007FF76C3E212B v8::base::CPU::num_virtual_address_bits+103083
3: 00007FF76CFEAE51 v8::Isolate::ReportExternalAllocationLimitReached+65
4: 00007FF76CFD7916 v8::Function::Experimental_IsNopFunction+3302
5: 00007FF76CE34060 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+33904
6: 00007FF76CE306EA v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+19194
7: 00007FF76CE46CCC v8::Isolate::GetHeapProfiler+8012
8: 00007FF76CE4754A v8::Isolate::GetHeapProfiler+10186
9: 00007FF76CE57F3B v8::Isolate::GetHeapProfiler+78267
10: 00007FF76CB2503B v8::base::AddressSpaceReservation::AddressSpaceReservation+323419
11: 00007FF70D06D8D0
Steps to reproduce
npm run start?debugManifestsFile=...)Expected behavior
Process should not terminate