Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Receiving a lot of errors in production version (Input dispatching timed out , tgkill, signal 11 SIGSEGV) #11978

Closed
camparound-developers opened this issue May 22, 2018 · 4 comments
Labels
Android Mapbox Maps SDK for Android needs information

Comments

@camparound-developers
Copy link

Since updating the mapbox library, we received a huge amount of ANRs and Crashes in Google Play Console.
Example ANRs and stacktraces are attached to this issue.

While running SDK 5.2.1 before the update, we didn't caputre anything like this.

I wanted to ask you, if you could lead me into the right direction on how to fix these issues and if they are based on mapbox or on our implementation.

We implemented Mapbox like given in your documentation. There's only one thing, which i assume to be the issue, but i'm not really sure: we're drawing the markers with help of a ThreadPool to the map.

Implemenation example:
... mThreadPool.execute(new Runnable() { @Override public void run() { ... map.addMarkers(options); .... } }) ...

Could this be the problem?

Platform: Android
Mapbox SDK version: 5.5.3

Steps to trigger behavior

  1. ??? Unknown, since it happens sporadically

Expected behavior

Should not throw any exceptions like these

Actual behavior

Throws a lot of exceptions and tgkills

Attached logs:
anr-1.txt
ANR-SIGSEGV-11.txt
anr-tgkill-2.txt

@fabian-guerra fabian-guerra added the Android Mapbox Maps SDK for Android label May 22, 2018
@jfirebaugh
Copy link
Contributor

We're drawing the markers with help of a ThreadPool to the map

This isn't supported and likely explains the crashes and ANRs; map methods like addMarkers must be called from the main UI thread.

@camparound-developers
Copy link
Author

camparound-developers commented May 23, 2018

Would like to reopen/update this issue, since its still appearing. Changed the implementation to use the main ui thread only (double-checked it with logging out the currently used thread) and thos native crashes are still appearing.

Native crash as given by google play is attached

native-crash-tgkill-samsung-galaxy-s6.txt

@jfirebaugh
Copy link
Contributor

Okay, reopening. Could you please post a code sample or a test app that help us track down the problem?

@jfirebaugh
Copy link
Contributor

Ping @camparound-developers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android needs information
Projects
None yet
Development

No branches or pull requests

3 participants