-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
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
AWS Lambda .NET 6 ARM Exceptions #1244
Comments
Does this happen during the cold start after a some number invocations? A way to check if this happens during cold starts would be if it is the first invoke in the CloudWatch Log Stream. |
Hey, it is not definitely cold start, via images. What is interesting that we have two Lambdas with same code base, the first one is 256MB of memory. The second one with 512MB of memory. The first always crash with |
I ran into the same issue as well. Also ARM64, but using 128MB for configuration. It's pretty rare as I've been doing benchmarking of various configuration and deployment options and have only seen it once. |
Hi @ashishdhingra , |
We are experiencing the exact same issue. Our try/catch in the handler doesn't catch anything, and it crashes with the same Runtime error. It happens randomly, on average once a day I would say. .NET 6, ARM64 and 1024MB of configured memory. And we observe the same thing as @kubalunacek 👇🏻
|
Hey, we are having exactly the same issue. Few lambda calls per day fails with the error above. It is always the endpoints with the higher invocation number. Tried to debug and analyze this, but without any success. |
We have the exact same issue on arm/.net6 lambdas |
We switched same solution (code base, .NET6) to x86_64 architecture and all these errors disappeared. So problem is in the.NET6 ARM64 Lambda runtime. Do you have some progress @normj ? |
This seems to be definitely related to dotnet/runtime#72365. @bjorg @kubalunacek @LarsAndreasEk or others, any chance you can produce & share a dump? |
Actually, this could be caused by |
hi @antonfirsov I'm working on the same team as @LarsAndreasEk. I do not think we captured any dump related to this issue, but it did go away for us when we changed over to the AWS supported dotnet6 runtime and x86_64. |
Reporting the same issue, running an AWS Lambda function using ARM64 and .NET6. The crash has only occurred a single time, and appears to be (though it's difficult to say for sure) in the code that requests information from DynamoDb.
The exception appears to be unhandled: 2023-02-14T05:11:38.681Z c33d7e47-4d0b-40f2-9f28-804408778387 info
We have seen this error only once, but it is concerning. Should we look to change back to .NET 6 on x86 until this is understood? |
Just an FYI we have had more occurrences of this issue. Very infrequent, but still concerning. |
Note that that a bug has been identified in .NET that may be potentially causing this. It will be fixed in upcoming releases @kknd4eva and others, please stay tuned for the update and let us know if it helped! |
This is still occurring. Should we have expected this to be resolved by now? (Once again only impacting .NET6 + Arm64 `CloudWatch Logs Insights
|
Are you 100% sure your code is running on the updated (6.0.18+) runtime? What is your exact dotnet runtime version? |
I believe so. The Lambda runtime update is set to 'AUTO' and the function runtime is currently: INIT_START Runtime Version: dotnet.6v17 Runtime Version ARN: arn:aws:lambda:ap-southeast-2::runtime:4b286ddbfcfeaf773c960ecafbd89d987b45ebf710c123baf0640c1fd8798259 |
Ah, I see - the version says v17. I would have thought an AUTO configuration would have automatically updated. I'll investigate how I can force this update. |
@kknd4eva could you please check if the issue has been resolved in the latest Lambda .NET patches? I believe they are on dotnet.6v19 now. |
This issue has not received a response in 5 days. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled. |
Describe the bug
We have an application that runs on AWS Lambda. Until recently we were running it on .NET Core 3.1 and x86 architecture. We have now ported it to .NET6 on ARM64 and this has brought unexpected problems, as we are randomly getting errors that we believe point to a problem in AWS Lambda runtime for .NET 6. On the original application (.NET Core 3.1 + x86) these errors were not present. Does anyone have any experience with the migration to ARM and .NET6 and if it is more memory intensive or could it be a bug in the Lambda runtime? Any ideas on how to solve the problem will be gratefully received.
Thanks.
Exception;
Expected Behavior
Lambda works without errors.
Current Behavior
Lambda fails unexpectedly.
Reproduction Steps
We have no trivial code for that, but we have global TryCatch block in our Lambda handler and it does not catch anything.
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
Amazon.Lambda.APIGatewayEvents 2.4.1
Amazon.Lambda.Core 2.1.0
Amazon.Lambda.Serialization.SystemTextJson 2.3.0
AWSXRayRecorder.Handlers.AwsSdk 2.8.3
Targeted .NET Platform
.NET 6
Operating System and version
AWS Lambda
The text was updated successfully, but these errors were encountered: