mapbox / mapbox-navigation-android

Mapbox Navigation SDK for Android
https://docs.mapbox.com/android/navigation/overview/
Other
621 stars 319 forks source link

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

Open AbdelrahmanAboShanab opened 2 months ago

AbdelrahmanAboShanab commented 2 months ago

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

sigmadeltasoftware commented 1 month ago

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.