-
Notifications
You must be signed in to change notification settings - Fork 7
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
Got an ANR(Application Not Responding) error #37
Comments
would love to get some help with this, ASAP(during work hours) as this might be blocking development. 🙏🏼 |
Hey @LaurieWuAndroid, As I see, you're using quite an old version of Maps SDK Will you be able to migrate to Maps Also, I'm curious why are you initializing Search SDK on a IO dispatcher? Any reason for that?
|
Hi @DzmitryFomchyn thanks for the speedy response! I tried to switch to higher mapbox version(10.2.0, 10.5.0), it results in build error In response to your question on IO dispatcher, we're trying to init the sdk off the main thread, so that process doesn't block user input and freeze the app. |
Hmm, that's a very strange bug and we haven't seen this before in any of Mapbox SDKs. Could you please share a full error log? Also, it would be very helpful if you could share a test project that shows this bug.
Did you notice that Search SDK initialization slows down app startup? |
We had to revert a chunk of code for now to unblock development, thus this issue is not as urgent now. I love the idea, though not sure if my schedule allows. I will try my best to follow up on this as I find more info.
Not that I noticed, since this code was already implemented, but it is also good practice to have any initialization that might take a long time to be in the background thread. |
@LaurieWuAndroid should we close it for now then? Feel free to reopen as new info is encountered. |
I'm okay with that 😃, thank you! |
I'm closing the issue. Feel free to reopen it or create a new one if you have more questions. |
Environment
Code examples
SDK initialization:
querySuggestion:
Observed behavior and steps
run app, wait for app to launch, observes this error on logcat as the app hangs and remains unresponsive.
Expected behavior
able to see login screen, proceed to login, take user input on button clicks after login.
The text was updated successfully, but these errors were encountered: