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

Mapbox crashes with InterruptedException #399

Closed
TankJK opened this issue May 16, 2019 · 14 comments
Closed

Mapbox crashes with InterruptedException #399

TankJK opened this issue May 16, 2019 · 14 comments

Comments

@TankJK
Copy link

TankJK commented May 16, 2019

App is getting continuous crash with InterruptedException.

FATAL EXCEPTION: OkHttp events.mapbox.com Writer
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1991)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2025)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1048)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:776)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:820)

Device is Android Samsung S5 with Android 5.0

Steps to reproduce

1.App was trying to place the marker and showing route
2.App crashes randomly after some time.
3.

Expected behavior

App should not crash

Actual behavior

App crashes

Configuration

Android versions:
Android 5.0
Device models:
Samsung S5
Mapbox SDK versions:
com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.37.0

@LukasPaczos
Copy link
Member

Thanks for following up from mapbox/mapbox-android-demo#1059 (comment) @TankJK. Let me actually transition this one to the Navigation SDK's repository.

@LukasPaczos LukasPaczos transferred this issue from mapbox/mapbox-gl-native May 16, 2019
@danesfeder
Copy link
Contributor

Thanks @LukasPaczos! @andrlee do you mind taking a look at this? Seems to be from events.mapbox.com Writer?

@Guardiola31337 Guardiola31337 transferred this issue from mapbox/mapbox-navigation-android May 16, 2019
@Guardiola31337
Copy link
Contributor

Guardiola31337 commented May 16, 2019

do you mind taking a look at this? Seems to be from events.mapbox.com Writer?

Transferred from mapbox-navigation-android to mapbox-events-android

cc @andrlee

@andrlee
Copy link
Contributor

andrlee commented May 16, 2019

@TankJK it does look like internal crash in okhttp3 library and it's unrelated to mapbox. we don't use ScheduledThreadPoolExecutor in events library. Can you try to switch to the earlier stable version of okhttp and retest?

@andrlee
Copy link
Contributor

andrlee commented May 16, 2019

Seems to be from events.mapbox.com Writer?

@danesfeder this is an okhttp internal log, not from events as far as i can tell.

@TankJK
Copy link
Author

TankJK commented May 17, 2019

@andrlee I have tried with okhttp3 with version 3.10.0 but its still crashing.

@andrlee
Copy link
Contributor

andrlee commented May 17, 2019

Can you share your code here?

@TankJK
Copy link
Author

TankJK commented May 17, 2019

@andrlee Which part of code you are interested?

@andrlee
Copy link
Contributor

andrlee commented May 17, 2019

@TankJK the part that is likely triggering crash event. You mentioned you do place the marker and showing route. I'd be interested to know if removing "showing route" logic from the app fixes the problem.

@TankJK
Copy link
Author

TankJK commented May 20, 2019

@andrlee sometimes application is crashing when just only marker is shown.

@Chaoba
Copy link
Contributor

Chaoba commented May 20, 2019

@TankJK Can you create a simple test project on Github that could reproduce this issue? So we can download and test it.

@andrlee
Copy link
Contributor

andrlee commented May 24, 2019

hey @TankJK any updates? thanks!

@TankJK
Copy link
Author

TankJK commented May 27, 2019

@andrlee From last couple of days, surprisingly application is not getting this crash. I am still using same version of okhttp3 and mapbox navigation ui.

@andrlee
Copy link
Contributor

andrlee commented May 28, 2019

closing as per customer's feedback.

@andrlee andrlee closed this as completed May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants