Skip to content
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 CRT lib fails during S3 object uploads on Apple M1 #562

Closed
inktomi opened this issue Mar 28, 2022 · 2 comments
Closed

AWS CRT lib fails during S3 object uploads on Apple M1 #562

inktomi opened this issue Mar 28, 2022 · 2 comments
Labels
bug This issue is a bug.

Comments

@inktomi
Copy link

inktomi commented Mar 28, 2022

Describe the bug

Trying the sample code provided for uploading objects to S3 fails on laptops with Apple M1 processors.

Expected behavior

Sample code should work.

Current behavior

Unable to unpack AWS CRT lib: java.io.IOException: Unable to open library in jar for AWS CRT: /osx/armv8/libaws-crt-jni.dylib
java.io.IOException: Unable to open library in jar for AWS CRT: /osx/armv8/libaws-crt-jni.dylib
	at software.amazon.awssdk.crt.CRT.extractAndLoadLibrary(CRT.java:158)
	at software.amazon.awssdk.crt.CRT.loadLibraryFromJar(CRT.java:223)
	at software.amazon.awssdk.crt.CRT.<clinit>(CRT.java:33)
	at software.amazon.awssdk.crt.CrtResource.<clinit>(CrtResource.java:100)
	at aws.sdk.kotlin.crt.io.EventLoopGroup.<init>(EventLoopGroupJVM.kt:22)
	at aws.sdk.kotlin.runtime.crt.SdkDefaultIO$EventLoop$2.invoke(SdkDefaultIO.kt:24)
	at aws.sdk.kotlin.runtime.crt.SdkDefaultIO$EventLoop$2.invoke(SdkDefaultIO.kt:22)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
	at aws.sdk.kotlin.runtime.crt.SdkDefaultIO.getEventLoop(SdkDefaultIO.kt:22)
	at aws.sdk.kotlin.runtime.crt.SdkDefaultIO$ClientBootstrap$2.invoke(SdkDefaultIO.kt:38)
	at aws.sdk.kotlin.runtime.crt.SdkDefaultIO$ClientBootstrap$2.invoke(SdkDefaultIO.kt:37)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
	at aws.sdk.kotlin.runtime.crt.SdkDefaultIO.getClientBootstrap(SdkDefaultIO.kt:37)
	at aws.sdk.kotlin.runtime.http.engine.crt.CrtHttpEngine.<init>(CrtHttpEngine.kt:56)
	at aws.sdk.kotlin.runtime.http.engine.crt.CrtHttpEngine.<init>(CrtHttpEngine.kt:32)
	at aws.sdk.kotlin.services.s3.DefaultS3Client.<init>(DefaultS3Client.kt:37)
	at aws.sdk.kotlin.services.s3.S3Client$Companion.invoke(S3Client.kt:45)
	at aws.sdk.kotlin.services.s3.S3Client$Companion.invoke$default(S3Client.kt:40)

Steps to Reproduce

Run Amazon S3 sample code to upload an object.

Possible Solution

No response

Context

No response

AWS Kotlin SDK version used

0.9.4-beta

Platform (JVM/JS/Native)

JVM 11

Operating System and version

macOS 12.3

@inktomi inktomi added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 28, 2022
@ianbotsf
Copy link
Contributor

Hi @inktomi, thanks for the bug report. This issue is already documented in #473 so resolving this one as a duplicate. Feel free to 👍 the other issue and track its progress there.

@ianbotsf ianbotsf removed the needs-triage This issue or PR still needs to be triaged. label Mar 28, 2022
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants