Rangeerror maximum call stack size exceeded python

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum call stack size exceeded — python 3.6 — jsii 0.21.1 #5877

Maximum call stack size exceeded — python 3.6 — jsii 0.21.1 #5877

bug This issue is a bug. closing-soon This issue will automatically close in 4 days unless further comments are made.

Comments

We are currently working with CDK to deploy multiple stacks that create an ECS Cluster/tasks and ALBs.
Deploying more than a certain number of stacks simultaneously creates the error reported bellow. Deploying the stacks individually works perfectly.
I wanted to note that in my code I’m passing some cdk objects from stack to stack like in the example in this link:
https://github.com/aws-samples/aws-cdk-examples/blob/master/python/codepipeline-docker-build/Base.py#L68-L70
https://github.com/aws-samples/aws-cdk-examples/blob/master/python/codepipeline-docker-build/app.py#L12-L15

Читайте также:  Html table column positioning

Reproduction Steps

I don’t have any easy way to reproduce the steps without sharing confidential code.

Error Log

$ cdk synthesize -c "deploy=stg" /Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_embedded/jsii/jsii-runtime.js:13374 throw e; ^ RangeError: Maximum call stack size exceeded at new Uint8Array () at new FastBuffer (internal/buffer.js:944:1) at Function.alloc (buffer.js:358:10) at SyncStdio.readLine (/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_embedded/jsii/jsii-runtime.js:13350:33) at SyncStdio.readLine (/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_embedded/jsii/jsii-runtime.js:13379:25) at SyncStdio.readLine (/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_embedded/jsii/jsii-runtime.js:13379:25) at SyncStdio.readLine (/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_embedded/jsii/jsii-runtime.js:13379:25) at SyncStdio.readLine (/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_embedded/jsii/jsii-runtime.js:13379:25) at SyncStdio.readLine (/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_embedded/jsii/jsii-runtime.js:13379:25) at SyncStdio.readLine (/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_embedded/jsii/jsii-runtime.js:13379:25) Traceback (most recent call last): File "infrastructure.py", line 165, in ecs_task_name=ecs_task['name'] File "/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_runtime.py", line 66, in __call__ inst = super().__call__(*args, **kwargs) File "/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/stacks/alb.py", line 53, in __init__ route_table_id=subnet_route_table File "/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/aws_cdk/aws_ec2/__init__.py", line 23182, in from_subnet_attributes return jsii.sinvoke(cls, "fromSubnetAttributes", [scope, id, attrs]) File "/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_kernel/__init__.py", line 113, in wrapped return _recursize_dereference(kernel, fn(kernel, *args, **kwargs)) File "/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_kernel/__init__.py", line 307, in sinvoke args=_make_reference_for_native(self, args), File "/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_kernel/providers/process.py", line 351, in sinvoke return self._process.send(request, InvokeResponse) File "/Users/med.bensalem/WorkSpace/repos/devops.cdk-pipeline/infrastructure/.env/lib/python3.6/site-packages/jsii/_kernel/providers/process.py", line 307, in send self._process.stdin.flush() BrokenPipeError: [Errno 32] Broken pipe Subprocess exited with error 1 

Environment

  • **CDK CLI Version :1.21.0
  • **JSII Version:0.21.1
  • **OS :OSX Catalina
  • **Language :python 3.6

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An internal error occurred while type checking file: RangeError: Maximum call stack size exceeded #825

An internal error occurred while type checking file: RangeError: Maximum call stack size exceeded #825

Comments

Environment data

  • Language Server version: 2021.1.0
  • OS and version: macOS Big Sur 11.1 (20C69)
  • Python version: Python 3.8.6 (non-conda, installed with Pythonz)

Expected behaviour

Type checking functions correctly

Actual behaviour

Type checking throws an error at the top of the file

Logs

An internal error occurred while type checking file "/Users/seb/path/to/file.py": RangeError: Maximum call stack size exceeded at Object.lookUpClassMember (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.0/dist/pyright-internal/src/analyzer/typeUtils.ts:711:17) at forEach (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.0/dist/pyright-internal/src/analyzer/typeEvaluator.ts:14900:34) at Map.forEach () at canAssignClassToProtocol (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.0/dist/pyright-internal/src/analyzer/typeEvaluator.ts:14897:25) at canAssignClass (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.0/dist/pyright-internal/src/analyzer/typeEvaluator.ts:15205:20) at canAssignType (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.0/dist/pyright-internal/src/analyzer/typeEvaluator.ts:16198:22) at partiallySpecializeFunctionForBoundClassOrObject (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.0/dist/pyright-internal/src/analyzer/typeEvaluator.ts:17524:25) at bindFunctionToClassOrObject (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.0/dist/pyright-internal/src/analyzer/typeEvaluator.ts:17392:24) at /Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.0/dist/pyright-internal/src/analyzer/typeEvaluator.ts:14958:63 at Map.forEach ()Pylance 

Code Snippet / Additional information

Code is closed source at the moment, and I haven’t been able to find a minimum-reproducible example.

The stack trace to my eyes looks different from the recently closed similar issues.

The text was updated successfully, but these errors were encountered:

judej added the fixed in next version A fix has been implemented and will appear in an upcoming version label Jan 12, 2021

This issue has been fixed in version 2021.1.1, which we’ve just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202111-13-january-2021

I am now on Pylance language server 2021.1.1 (pyright 6a970b45) but I am still experiencing this error on Python 3.8.6, as well as an apparently different error on 3.9.1.

I have since published the «offending» source code here. Open the file pyclee/clusters.py for analysis.

An internal error occurred while type checking file "/Users/seb/tmp/pyclee/pyclee/clusters.py": RangeError: Maximum call stack size exceeded at Object.lookUpClassMember (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeUtils.ts:711:17) at forEach (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:14970:34) at Map.forEach () at canAssignClassToProtocol (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:14953:25) at canAssignClass (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:15383:20) at canAssignType (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:16386:22) at partiallySpecializeFunctionForBoundClassOrObject (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:17723:25) at bindFunctionToClassOrObject (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:17591:24) at /Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:15019:63 at Map.forEach ()Pylance 
An internal error occurred while type checking file "/Users/seb/tmp/pyclee/pyclee/clusters.py": RangeError: Maximum call stack size exceeded at canAssignClass (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:15350:14) at canAssignType (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:16386:22) at assignTypeToTypeVar (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:15936:18) at canAssignType (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:16056:24) at partiallySpecializeFunctionForBoundClassOrObject (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:17723:25) at bindFunctionToClassOrObject (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:17591:24) at forEach (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:15009:58) at Map.forEach () at canAssignClassToProtocol (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:14953:25) at Fn (/Users/seb/.vscode/extensions/ms-python.vscode-pylance-2021.1.1/dist/pyright-internal/src/analyzer/typeEvaluator.ts:15383:20)Pylance 

Источник

Оцените статью