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

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

Open
AbdelrahmanAboShanab opened this issue Jun 27, 2024 · 1 comment

Comments

@AbdelrahmanAboShanab
Copy link

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
Copy link

sigmadeltasoftware commented Jul 5, 2024

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.

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

2 participants