Amazon.CDK.Lib 2.263.0: Amazon.CDK.Lib 2.263.0 hangs during App.Synth() with Node.js 24.x
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Describe the bug
**Environment**
Amazon.CDK.Lib: 2.263.0
Amazon.JSII.Runtime: 1.133.0
.NET SDK: 9.0.308
Node.js: 24.18.0
npm: 11.16.0
Windows 11
**Observed behavior**
cdk ls hangs.
cdk synth hangs.
cdk deploy hangs.
The application reaches app.Synth() and never returns.
aws sts get-caller-identity works normally.
Downgrading Amazon.CDK.Lib to 2.261.0 resolves the issue.
Using Node 20 with Amazon.CDK.Lib 2.263.0 also resolves the issue.
**Diagnostic information**
Simple stack trace:
```
Amazon.JSII.Runtime.Services.Runtime.ReadResponse()
Amazon.JSII.Runtime.Services.Client.ReceiveResponse()
Amazon.JSII.Runtime.Services.Client.Invoke()
Amazon.CDK.App.Synth()
```
A node.exe process grows to approximately 1.8 GB RAM while the .NET process blocks waiting for a JSII response.
### Regression Issue
- [x] Select this option if this issue appears to be a regression.
### Last Known Working CDK Library Version
Amazon.CDK.Lib: 2.261.0
### Expected Behavior
cdk deploy should work as before (with version 2.261.o)
### Current Behavior
cdk deploy hanged
### Reproduction Steps
See the stack trace above
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### AWS CDK Library version (aws-cdk-lib)
Amazon.CDK.Lib: 2.263.0
### AWS CDK CLI version
2.1135.0 (build 0fa27ff)
### Node.js Version
Node.js: 24.18.0
### OS
Windows 11
### Language
.NET
### Language Version
.Net 8.0
### Other information
_No response_
Contributor guide
Research direction
Start by reproducing cdk synth and app.Synth() with Amazon.CDK.Lib 2.263.0 on Node.js 24, then compare against 2.261.0 and Node.js 20. Trace the JSII Runtime response path mentioned in the stack trace and observe the growing node.exe process. Done means cdk ls, cdk synth, and cdk deploy return normally on the reported environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100