awslabs / aws-sdk-swift

Apache License 2.0
391 stars 75 forks source link

getObject crashes. out of memory #1781

Open neal3000 opened 3 days ago

neal3000 commented 3 days ago

Describe the bug

Orchestrator file. private func attempt(context: InterceptorContextType, attemptCount: Int) async {

let selectedAuthScheme = try await selectAuthScheme.select(attributes: context.getAttributes())

this line of code will eat all memory and crash the system.

ps. I have SDKLoggingSystem initialized at debug, but do I need to enable it for S3 subsystem ?

Expected Behavior

I expect getObject to work.

This code worked on 0.36.2

Current Behavior

the line of code above, will result in memory going from 80 mb to 2gb and iPhone app being closed

Reproduction Steps

let input = GetObjectInput( bucket: bucket, key: key ) let output = try await client.getObject(input: input)

Possible Solution

No response

Additional Information/Context

No response

AWS SWIFT SDK version used

1.08

Compiler and Version used

Version 16.1 beta 2 (16B5014f)

Operating System and version

iOS 8.1b5

dayaffe commented 2 days ago

Hi @neal3000, thanks for submitting this bug issue! We will look into this and let you know what we find.