mapbox-navigation-android icon indicating copy to clipboard operation
mapbox-navigation-android copied to clipboard

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

Open AbdelrahmanAboShanab opened this issue 1 year ago • 3 comments

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)'

AbdelrahmanAboShanab avatar Jun 27 '24 11:06 AbdelrahmanAboShanab

Currently experiencing the same issue:

java_vm_ext.cc:591] JNI DETECTED ERROR IN APPLICATION: JNI NewString called with pending exception com.mapbox.navigation.core.trip.session.NativeStatusProcessingError: Error processing native status update
                                                                                                    java_vm_ext.cc:591] (Throwable with no stack trace)
                                                                                                    java_vm_ext.cc:591] Caused by: java.lang.IllegalArgumentException: Desired length -4 is less than zero.
                                                                                                    java_vm_ext.cc:591] (Throwable with no stack trace)
                                                                                                    java_vm_ext.cc:591] 
                                                                                                    java_vm_ext.cc:591]     in call to NewString
                                                                                                    java_vm_ext.cc:591]     from void android.os.MessageQueue.nativePollOnce(long, int)

UPDATE: Issue occurred once, and afterward I haven't been able to reproduce this yet. Will update this thread should it happen again.

sigmadeltasoftware avatar Jul 05 '24 21:07 sigmadeltasoftware

same issue here

signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
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.NumberFormatException: For input string: "٢٤٫٤٤"
(Throwable with no stack trace)
    in call to NewString
    from void android.os.MessageQueue.nativePollOnce(long, int)'
 

maxzod avatar Nov 12 '24 14:11 maxzod

Same as here, but I am using v2:

runtime.cc:699] JNI DETECTED ERROR IN APPLICATION: JNI NewString called with pending exception com.mapbox.navigation.core.trip.session.NativeStatusProcessingError: Error processing native status update
                                                                                                    runtime.cc:699] (Throwable with no stack trace)
                                                                                                    runtime.cc:699] Caused by: java.lang.IndexOutOfBoundsException: fromIndex = -1
                                                                                                    runtime.cc:699] (Throwable with no stack trace)
                                                                                                    runtime.cc:699] 
                                                                                                    runtime.cc:699]     in call to NewString
                                                                                                    runtime.cc:699]     from void android.os.MessageQueue.nativePollOnce(long, int)

wirthandras avatar Nov 14 '24 15:11 wirthandras