mapbox / mapbox/mapbox-navigation-android

Bug: Offline navigation fails due to "no suitable edges near location" for no apparent reason

Open
#3,575 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

jira-sync-complete
Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

**Android API:** OnePlus 5 and Samsung A70 with Android 10
**Mapbox Navigation SDK version:**

```
implementation 'com.mapbox.navigation:ui:1.0.0-rc.7'
implementation 'com.mapbox.navigation:core:1.1.0-alpha.4'
```
Using version 1.1.0-alpha.4 due to #3554. Can't test previous versions as it crashes there instantly.

### Steps to trigger behavior

1. Start a navigation from Location A to Location B without having an internet connection **(Will try to provide locations later!)**
2. MapboxOnboardRouter errors about "no suitable edges near location".
3. Nothing happens. Maybe we are missing an observer or we don't handle something right

```
2020-09-17 11:47:09.520 2268-3913/com.redacted.integ E/MapboxLogger: Unable to resolve host "api.mapbox.com": No address associated with hostname
2020-09-17 11:47:09.652 2268-3637/com.redacted.integ E/Mbgl: {s.routing.integ}[JNI]: Error setting property: line-color Expected at least 3 arguments, but found only 1.
2020-09-17 11:47:09.652 2268-3637/com.redacted.integ E/Mbgl: {s.routing.integ}[JNI]: Error setting property: line-color Expected at least 3 arguments, but found only 1.
2020-09-17 11:47:11.126 2268-2268/com.redacted.integ E/MapboxOnboardRouter: Error occurred fetching offline route: No suitable edges near location - Code: 171
```

### Expected behavior
Navigation does not fail OR we can subscribe to an error somewhere

### Actual behavior
Navigation fails, no clue how to safeguard this

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with MapboxOnboardRouter's offline route handling using the listed SDK versions and reproduce the failure without network access on the reported Android devices. Inspect how the "No suitable edges near location" error is surfaced and whether navigation or an observable error state follows; the missing location data must be supplied before reproduction can be confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
backend-api-design, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.