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

Navigation UI offroute stuck fetching new route. #2222

Open
BinaryPigStudio opened this issue Oct 16, 2019 · 4 comments
Open

Navigation UI offroute stuck fetching new route. #2222

BinaryPigStudio opened this issue Oct 16, 2019 · 4 comments

Comments

@BinaryPigStudio
Copy link

(...)
@Override
public boolean allowRerouteFrom(Point offRoutePoint)
{
    return true;
}
(...)

NavigationRoute.builder(getContext()).accessToken(getString(R.string.mapbox_access_token)).origin(origin).destination(destination).enableRefresh(true).build().getRoute(new Callback<DirectionsResponse>()
        {
            @Override
            public void onResponse(Call<DirectionsResponse> call, Response<DirectionsResponse> response)
            {
                if (response.body() == null || response.body().routes().isEmpty())
                    return;

                startNavigation(response.body().routes().get(0));
            }

            @Override
            public void onFailure(Call<DirectionsResponse> call, Throwable t)
            {
                Timber.e(t);
            }
        });

Navigation UI SDK re routing works on most API and CPU but on the 'Cortex-A55' the re-routing is not completed, instead, it crashes the app by being stuck for too long.

**Android API: 29
**Mapbox Navigation UI SDK version: 0.42.0

Steps to trigger behavior

  1. Go off course.
  2. Wait for rerouting

Expected behavior

After going off course, a new route would be fetched and drawn from the point where the user is currently in.

Actual behavior

After going off course, the listeners are triggered but a new route is not fetched, crashing the app.

Is this a bug for this kind of CPU or a poor implementation of the SDK?

Thank you
Tiago from Binary Pig

@Guardiola31337
Copy link
Contributor

@abhishek1508 @JunDai is this still an issue in 1.0?

@abhishek1508
Copy link
Contributor

As mentioned that it functions well for other devices except Cortex-A55 sharing the crash logs would be great to dig deeper.
cc @BinaryPigStudio

@stale
Copy link

stale bot commented Oct 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the archived Archived issue. label Oct 10, 2020
@timmytreen7
Copy link

I didn't know that. I was in the hospital and I just got out

@stale stale bot removed the archived Archived issue. label Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants