Repository navigation
Closed
Description
When trying to Launch the Navigation UI on Android 4.1.2 Device It's crashing my activity.
Gradle Config
// Mapbox Maps SDK
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-traffic:0.3.0'
implementation ('com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.7.1-SNAPSHOT') {
transitive = true
}
Code to Launch Navigation UI
if (currentRoute != null) {
Log.d(TAG, "Start Navigation UI");
// Generate Navigation Options
NavigationViewOptions.Builder navOptions = NavigationViewOptions.builder()
.awsPoolId(null)
.directionsRoute(currentRoute)
.shouldSimulateRoute(false)
.unitType(NavigationUnitType.TYPE_IMPERIAL);
// Launch Navigation UI.
NavigationLauncher.startNavigation(ActivityNavigationMap.this, navOptions.build());
}
Logcat
11-23 12:42:11.925 22994-26195/uk.co.ainscough.routeinfo A/libc: Fatal signal 11 (SIGSEGV) at 0x00000230 (code=1), thread 26195 (Thread-4739)
11-23 12:42:12.035 167-167/? I/DEBUG: pid: 22994, tid: 26195, name: Thread-4739 >>> uk.co.ainscough.routeinfo <<<
11-23 12:42:12.386 624-638/? W/ActivityManager: Activity pause timeout for ActivityRecord{41689ed8 u0 uk.co.ainscough.routeinfo/.ActivityNavigationMap}
11-23 12:42:12.646 7139-7200/? D/soti: pool-8-thread-1|D|AP|[BlacklistChecker][isBlocked] component: ComponentInfo{uk.co.ainscough.routeinfo/com.mapbox.services.android.navigation.ui.v5.NavigationActivity} is allowed settings component: false|
11-23 12:42:12.646 7139-7200/? D/soti: pool-8-thread-1|D|AP|[BlacklistChecker][isBlocked] component:ComponentInfo{uk.co.ainscough.routeinfo/com.mapbox.services.android.navigation.ui.v5.NavigationActivity} activity: uk.co.ainscough.routeinfo/com.mapbox.services.android.navigation.ui.v5.NavigationActivity blocked: false|
11-23 12:42:12.776 624-4452/? I/ActivityManager: Process uk.co.ainscough.routeinfo (pid 22994) has died.
See GIF's Below;
Metadata
Metadata
Assignees
Labels
No labels


Activity
danesfeder commentedon Nov 27, 2017
@Danny-James it looks like this is a crash in our Maps SDK
11-23 12:42:11.925 22994-26195/uk.co.ainscough.routeinfo A/libc: Fatal signal 11 (SIGSEGV) at 0x00000230 (code=1), thread 26195 (Thread-4739)-- can you reproduce and set logcat toNo Filterand see if you can get some more information for us to work with? Thanks!Danny-James commentedon Nov 27, 2017
Yes, I Can Reproduce This In My App Everytime I Try to Launch Navigation UI on Android 4.1.2 - I Will Put The Logcat Into A File And Upload Here, Cheers @danesfeder
Danny-James commentedon Nov 27, 2017
@danesfeder See Attached - GitHub_Logcat_534.log
Danny-James commentedon Dec 6, 2017
@danesfeder any news on this?
danesfeder commentedon Dec 6, 2017
@Danny-James I tested out the UI with API 19 and it launched fine - I'm wondering if this is related to the device. Can you provide the device info that you're able to produce this on? Thanks!
Danny-James commentedon Dec 6, 2017
@danesfeder I could send you a device via post? - But I'm currently using
Model:
Motorola/Symbol/Zebra TC55 (Android 4.1.2)SE 13 Version:
12 Jan 2015QCN Version:
00 15 02 05 00 00 00 00HW Version:
0x02TP FW Version:
02.00.000EBaseband Version:
Pl-20015326.31Kernel Version:
3.4.0-g6b0a9a5 gits@Fuji) ) #1 SMP PREEMPT Thu Mar 12 10:41:25 CST 2015Build Number:
150311-SN-1800EN-01.77G-15443J-4.1.2-userLet me know if you need anymore information
Danny-James commentedon Dec 20, 2017
@danesfeder Still Getting This Issue On The Latest Stable Version
0.7.1.The API is 16 I believe on the device.
Any news on this?
Danny-James commentedon Jan 2, 2018
@danesfeder I'm now using the below gradle config.
I'm still getting the crash on open for the Navigation UI.
See below the error i'm recieving.
Danny-James commentedon Jan 5, 2018
@danesfeder The Navigation UI Seems to go a little further than previously see below compared to the ScreenGrab Above.
danesfeder commentedon Jan 5, 2018
@Danny-James Do you mind sending the stack trace from the above gif? Or is it the same
signal 11 (SIGSEGV)deal?Danny-James commentedon Jan 5, 2018
@danesfeder yes the signal 11 error is the error from the above GIF.
danesfeder commentedon Jan 5, 2018
@Danny-James Yeah I think this may be device specific. Just tried to reproduce with API 16, without any luck:
@tobrun this looks like a native crash specific to this device when starting up the nav UI. Anything you can get out of that log? I believe it isn't symbolicated
Danny-James commentedon Jan 8, 2018
@danesfeder What does this mean? Device Specific Issue, Can this be fixed and would you like me to send one of our device to you?
danesfeder commentedon Jan 9, 2018
@Danny-James it means this may be specific to the Motorola device you are producing the crash on and not necessarily the API
4.1.2. We are looking into this with our Maps SDK team and will report back with findings.Danny-James commentedon Jan 18, 2018
@danesfeder Thanks For Looking Into This.
2 remaining items
tobrun commentedon Jan 31, 2018
any updates @Danny-James?
Danny-James commentedon Jan 31, 2018
Sorry @tobrun @danesfeder I've been on out of the office Monday and Tuesday, I'm hoping to look at this today and will update you.
Sorry again for the delay.
tobrun commentedon Jan 31, 2018
Np @Danny-James, looking forward to the results 🙏
Danny-James commentedon Jan 31, 2018
@tobrun I Get The Following Message on DropBox -
"The owner hasn’t granted you access to this link."tobrun commentedon Jan 31, 2018
Apologies, updated the link settings, can you try again?
Danny-James commentedon Jan 31, 2018
@tobrun, What's the best way to include the dependency locally I've only every worked with external dependencies.
Danny-James commentedon Jan 31, 2018
@tobrun my current gradle config is below;
Will the local library I've just imported take priority over the dependencies I'm compiling.
The way I imported the Library is;
File > New > New Module > Import .JAR/.AAR Packagetobrun commentedon Jan 31, 2018
For easy of testing, I'm building a SNAPSHOT version with that change. Will ping here when the build has finished building.
tobrun commentedon Jan 31, 2018
To resolve the SNAPSHOT build add the following to your top build.gradle file:
Afterwards change your maps sdk dependency to:
Danny-James commentedon Jan 31, 2018
@tobrun I don't currently compile the Maps SDK as this comes with the Navigation UI, by adding the dependency in the gradle will this take priority?
tobrun commentedon Jan 31, 2018
you can verify that by running
./gradlew :your_app_module_name:dependencies:This will show you a which dependency is bringing in which and which are being overriden by other versions. Since the navigation SDK comes with 5.3.2 it should overwrite but better to be sure and double check with above.
Danny-James commentedon Jan 31, 2018
@tobrun thanks for you patience, will report back soon just compiling my application.
Danny-James commentedon Jan 31, 2018
@tobrun Absolutely fantastic this has solved this issue and also solved #10030 - I would like to thank everyone involved with this and for your patience with me throughout the month's trying to get this working myself and the company really appreciate all your help.
I have one issue remaining and I can then get this application released to our users. (Ability to Disable ReRouting, For the work around of waypoints not working with Navigation UI) but this is for @danesfeder I believe.
Again Thank You.
Danny-James commentedon Jan 31, 2018
@tobrun, when will this Version be included in the Navigation UI Dependency? @danesfeder