Mapbox Navigation SDK v3, calling mapboxNavigation.startTripSession() crashes the app

Open
#7,837 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reproducing the V2-to-V3 migration and calling mapboxNavigation.startTripSession(), then inspect the NativeStatusProcessingError and JNI exception reported in the issue. Done means the call no longer crashes the Android application and the native status update completes successfully.

Written by the indexing model from the issue text.

Description

I did migration from navigation V2 to navigation V3, After migration when calling mapboxNavigation.startTripSession(), the application crashes and the log shows this exception

Abort message: 'JNI DETECTED ERROR IN APPLICATION: JNI NewString called with pending exception
com.mapbox.navigation.core.trip.session.NativeStatusProcessingError: Error processing native status update
(Throwable with no stack trace)
Caused by: java.lang.NullPointerException:
(Throwable with no stack trace)
in call to NewString
from void android.os.MessageQueue.nativePollOnce(long, int)'

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

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.

More from mapbox/mapbox-navigation-android

All issues in mapbox/mapbox-navigation-android

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.