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 · 3 comments

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.

@maxzod
Copy link

maxzod commented Nov 12, 2024

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

@wirthandras
Copy link

wirthandras commented Nov 14, 2024

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)

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

4 participants