NetworkOnMainThreadException
in AWS SDK
#1177
Labels
bug
This issue is a bug.
p2
This is a standard priority issue
potential-regression
Marking this issue as a potential regression to be checked by team member
Describe the bug
We are making location suggestion call from the AWS SDK using IO dispatcher, however we see a crash inside the AWS SDK that Network Operation is being done on Main Thread which is resulting our app to crash.
We are noticing the crash occasionally.
Regression Issue
Expected behavior
It should not crash the app
Current behavior
It is crashing the app.
Steps to Reproduce
We could not reproduce this on our end but it is happening for lot of our users specially with not reliable network connection
Possible Solution
There is no indication from our codebase suggesting additional network calls are made outside of our invocation to fetch suggestions with the IO dispatcher. However, it appears that AWS SDK is initiating a separate network call on the main thread.
Context
Since we have recently migrated from Google Places to AWS location service, many of our production users are affected due to this crash
Smithy-Kotlin version
aws.sdk.kotlin:location :1.2.62
Platform (JVM/JS/Native)
Native
Operating system and version
Android 13
The text was updated successfully, but these errors were encountered: