Comments (11)
Thanks - we'll take a look
from aws-solutions-constructs.
Error log:
PS > cdk ls
WARN AWS_SOLUTIONS_CONSTRUCTS_WARNING: An override has been provided for the property: tracing. Default value: 'Active'. You provided: 'Disabled'.
WARN AWS_SOLUTIONS_CONSTRUCTS_WARNING: An override has been provided for the property: tracing. Default value: 'Active'. You provided: 'Disabled'.
WARN AWS_SOLUTIONS_CONSTRUCTS_WARNING: An override has been provided for the property: encryption. Default value: 'KMS_MANAGED'. You provided: 'NONE'.
<--- Last few GCs --->
[16664:000002983F337660] 1430913 ms: Mark-sweep 3809.7 (4101.4) -> 3793.7 (4101.4) MB, 40288.8 / 0.0 ms (average mu = 0.057, current mu = 0.020) allocation failure; scavenge might not succeed
[16664:000002983F337660] 1442511 ms: Mark-sweep 3809.5 (4101.4) -> 3793.8 (4101.6) MB, 11548.4 / 0.0 ms (average mu = 0.041, current mu = 0.004) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF668241C7F node_api_throw_syntax_error+175855
2: 00007FF6681C6476 EVP_MD_meth_get_input_blocksize+59654
3: 00007FF6681C8160 EVP_MD_meth_get_input_blocksize+67056
4: 00007FF668C70434 v8::Isolate::ReportExternalAllocationLimitReached+116
5: 00007FF668C5B7C2 v8::Isolate::Exit+674
6: 00007FF668ADD65C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
7: 00007FF668AEA93D v8::internal::Heap::PublishPendingAllocations+1117
8: 00007FF668AE79C7 v8::internal::Heap::PageFlagsAreConsistent+3367
9: 00007FF668ADA0F7 v8::internal::Heap::CollectGarbage+2039
10: 00007FF668AF0AB3 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
11: 00007FF668AF135D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
12: 00007FF668B00B20 v8::internal::Factory::NewFillerObject+816
13: 00007FF6687F1565 v8::internal::DateCache::Weekday+1349
14: 00007FF668D0D961 v8::internal::SetupIsolateDelegate::SetupHeap+558193
15: 00007FF5E92057DA
Traceback (most recent call last):
File "\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return run_code(code, main_globals, None,
File "\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "\cdk\app.py", line 388, in
main()
File "\cdk\app.py", line 375, in main
EventBridgeLambdaStack(
File "\lib\site-packages\jsii_runtime.py", line 118, in call
inst = super(JSIIMeta, cast(JSIIMeta, cls)).call(*args, **kwargs)
File "\lambda_stack.py", line 61, in init
event_bridge_lambda = EventbridgeToLambda(
File "\lib\site-packages\jsii_runtime.py", line 118, in call
inst = super(JSIIMeta, cast(JSIIMeta, cls)).call(*args, **kwargs)
File "\lib\site-packages\aws_solutions_constructs\aws_eventbridge_lambda_init.py", line 204, in init
jsii.create(self.class, self, [scope, id, props])
File "\lib\site-packages\jsii_kernel_init.py", line 334, in create
response = self.provider.create(
File "\lib\site-packages\jsii_kernel\providers\process.py", line 365, in create
return self._process.send(request, CreateResponse)
File "\lib\site-packages\jsii_kernel\providers\process.py", line 332, in send
self._next_message(), _ProcessResponse
File "\lib\site-packages\jsii_kernel\providers\process.py", line 251, in _next_message
return json.loads(self.process.stdout.readline(), object_hook=ohook)
File "\AppData\Local\Programs\Python\Python39\lib\json_init.py", line 359, in loads
return cls(**kw).decode(s)
File "\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "\lib\site-packages\jsii_kernel\providers\process.py", line 295, in stop
self._process.stdin.close()
OSError: [Errno 22] Invalid argument
from aws-solutions-constructs.
When we try to replicate this, we're not seeing the same error - but we are seeing an error. We'll fix the error we're seeing and let you know when it's available. You can try the new version and see if it addresses your issue as well.
from aws-solutions-constructs.
v2.50.0 corrects a problem when a role is provided in LambdaFunctionProps, please give it a try and see if it addresses your issue. Thanks.
from aws-solutions-constructs.
Correction - try 2.51.0, we had some version issues in 2.50.0 (unrelated to this issue)
from aws-solutions-constructs.
Hi @biffgaut, I tried with new version 2.51.0, but still seeing the same issue. I guess may be issue is with too many override warnings. I have around 5 stacks where I am using aws-solution-constructs and overriding default settings.
Here's the error log:
<--- Last few GCs --->
[14484:0000012F5C40A5C0] 1650071 ms: Mark-sweep 3834.0 (4101.3) -> 3818.2 (4101.5) MB, 14059.9 / 0.0 ms (average mu = 0.091, current mu = 0.025) a
llocation failure; scavenge might not succeed
[14484:0000012F5C40A5C0] 1728779 ms: Mark-sweep 3834.2 (4101.5) -> 3818.3 (4101.5) MB, 78634.0 / 0.0 ms (average mu = 0.015, current mu = 0.001) a
llocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF603311C7F node_api_throw_syntax_error+175855
2: 00007FF603296476 EVP_MD_meth_get_input_blocksize+59654
3: 00007FF603298160 EVP_MD_meth_get_input_blocksize+67056
4: 00007FF603D40434 v8::Isolate::ReportExternalAllocationLimitReached+116
5: 00007FF603D2B7C2 v8::Isolate::Exit+674
6: 00007FF603BAD65C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
7: 00007FF603BBA93D v8::internal::Heap::PublishPendingAllocations+1117
8: 00007FF603BB79C7 v8::internal::Heap::PageFlagsAreConsistent+3367
9: 00007FF603BAA0F7 v8::internal::Heap::CollectGarbage+2039
10: 00007FF603BC0AB3 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
11: 00007FF603BC135D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
12: 00007FF603BD0B20 v8::internal::Factory::NewFillerObject+816
13: 00007FF6038C1565 v8::internal::DateCache::Weekday+1349
14: 00007FF603DDD961 v8::internal::SetupIsolateDelegate::SetupHeap+558193
15: 00007FF603D63472 v8::internal::SetupIsolateDelegate::SetupHeap+57218
16: 00007FF58430C76D
Traceback (most recent call last):
File "\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return run_code(code, main_globals, None,
File "\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "\cdk\app.py", line 388, in
main()
File "\cdk\app.py", line 375, in main
LambdaStack(
File "\AppData\Local\pypoetry\Cache\virtualenvs-Lxi7jqtO-py3.9\lib\site-packages\jsii_runtime.py", line 1
18, in call
inst = super(JSIIMeta, cast(JSIIMeta, cls)).call(*args, **kwargs)
File "\cdk\lambda_stack.py", line 61, in init
event_bridge_lambda = EventbridgeToLambda(
File "\AppData\Local\pypoetry\Cache\virtualenvs-Lxi7jqtO-py3.9\lib\site-packages\jsii_runtime.py", line 1
18, in call
inst = super(JSIIMeta, cast(JSIIMeta, cls)).call(*args, **kwargs)
File "\AppData\Local\pypoetry\Cache\virtualenvs-Lxi7jqtO-py3.9\lib\site-packages\aws_solutions_constructs
aws_eventbridge_lambda_init.py", line 204, in init
jsii.create(self.class, self, [scope, id, props])
File "\AppData\Local\pypoetry\Cache\virtualenvs-Lxi7jqtO-py3.9\lib\site-packages\jsii_kernel_init.py"
, line 334, in create
response = self.provider.create(
File "\AppData\Local\pypoetry\Cache\virtualenvs-Lxi7jqtO-py3.9\lib\site-packages\jsii_kernel\providers\pr
ocess.py", line 365, in create
return self._process.send(request, CreateResponse)
File "\AppData\Local\pypoetry\Cache\virtualenvs-Lxi7jqtO-py3.9\lib\site-packages\jsii_kernel\providers\pr
ocess.py", line 332, in send
self._next_message(), _ProcessResponse
File "\AppData\Local\pypoetry\Cache\virtualenvs-Lxi7jqtO-py3.9\lib\site-packages\jsii_kernel\providers\pr
ocess.py", line 251, in _next_message
return json.loads(self._process.stdout.readline(), object_hook=ohook)
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
from aws-solutions-constructs.
Does it work when overrideWarnings is set to false?
from aws-solutions-constructs.
from aws-solutions-constructs.
Are all 5 stacks in the same CDK app? It does sound like that could stress memory. Is there any way you can isolate it to the point where you could post code that breaks?
from aws-solutions-constructs.
Yes all 5 stacks are under same cdk app. I will check with my team and try to post code.
But I don't see the same memory problem when "overrideWarnings is set to false". I feel it's issue with the warnings
from aws-solutions-constructs.
Any additional info you can provide to help us attempt to reproduce the error would be helpful, e.g.-
- What constructs to each of the 5 stacks use?
- How many defaults are you overriding? (and perhaps what they are)
- The relationship between the stacks? (are they 5 independent stacks, or is there a parent/child relationship?)
The Restaurant Management use case in our repo uses 4 independent stacks without a problem.
from aws-solutions-constructs.
Related Issues (20)
- aws-eventbridge-sns fails validation for long topic names HOT 1
- chore(aws-kinesisfirehose-s3-and-kinesisanalytics): deprecate construct
- error: api.mydomain.com already exists in stack arn:aws:xyz HOT 2
- aws-apigateway-sqs creates a path /message for the delete method, even when the DELETE method is not allowed in the API. HOT 3
- fix(multiple): existing log buckets in props are ignored
- feat(AWS Solutions Constructs to support .NET/C#) HOT 1
- feat(cloudfront constructs): add s3 access logging to cloudfront access log buckets by default
- feat(aws-cloudfront-apigateway-lambda): require explicit authentication type
- fix(aws-cloudfront-s3): support other partitions
- (aws-cloudfront-s3) AWS::CloudFront::OriginAccessControl not support in China Region
- Version: 2.49 Cannot Use Custom cloudFrontLoggingBucketProps - 2.45 works though HOT 2
- (aws-cloudfront-s3) Error when trying to add an edge lambda - Cannot read properties of undefined (reading 'role') HOT 3
- CloudFront Lambda function created when insertHttpSecurityHeaders is false HOT 3
- AWS Lambda with environment variables injected from SecretsManager HOT 1
- Upgrade npmlog to higher version since npmlog: ^4.1.2 produce ReDoS vulnerabilties. HOT 3
- LambdaToStepfunctions default policy malformed by aws-cdk-lib upgrade to 2.127.0 HOT 15
- Can't install @aws-solutions-constructs/aws-kinesisstreams-kinesisfirehose-s3 2.52.0 without pinned aws-cdk-lib 2.127.0 HOT 2
- not able to install @aws-solutions-constructs/aws-cloudfront-s3 (not working with 2.9.0 ?) HOT 2
- Version 2.53.0 - It is removing the permissions granted by other resources to StateMachines HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-solutions-constructs.