Open drayan85 opened 2 weeks ago
Hi, thanks for opening this issue. This is going to be tricky to reproduce, are you able to get any more information from your customers that are seeing this issue? We'll also take a look at our code to search for any indication of network calls being made on the main thread.
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