mapbox / mapbox/mapbox-navigation-android

Navigation SDK v2.21.0 crash in mapbox::navigation::CacheFactory

Open
#7,939 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

I updated to sdk version `2.21.0` to add support for 16KB page size.
Since updating to that version, I am seeing this crash happening on the deployed app.

```
[versions]
mapbox-navigation = "2.21.0"

[libraries]
mapbox-navigation = { group = "com.mapbox.navigation", name = "android-ndk27", version.ref = "mapbox-navigation" }
```

I also check the troubleshooting documentation and made sure I have no conflicting versions. I kept only the single navigation sdk import.
But I am still seeing the crash happening in production.

Stack Trace
```
backtrace:

#00 pc 0x00000000009dd520 /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::CacheFactory::build(mapbox::navigation::TilesConfig const&, std::__ndk1::shared_ptr const&, std::__ndk1::shared_ptr const&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#01 pc 0x0000000000b192bc /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::graphaccessor::GraphAccessor::getAdasAttributes(unsigned long)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#02 pc 0x0000000000cd744c /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::Navigator::restoreNavigationSession(mapbox::navigation::NavigationSessionState&&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#03 pc 0x0000000000d2db48 /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::Navigator::restoreNavigationSession(mapbox::navigation::NavigationSessionState&&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#04 pc 0x0000000000d2d090 /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::Navigator::restoreNavigationSession(mapbox::navigation::NavigationSessionState&&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#05 pc 0x0000000000d2cf98 /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::Navigator::restoreNavigationSession(mapbox::navigation::NavigationSessionState&&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#06 pc 0x0000000000c981a0 /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::Navigator::restoreNavigationSession(mapbox::navigation::NavigationSessionState&&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#07 pc 0x0000000000c90a4c /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::Navigator::restoreNavigationSession(mapbox::navigation::NavigationSessionState&&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#08 pc 0x0000000000b76048 /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::Navigator::restoreNavigationSession(mapbox::navigation::NavigationSessionState&&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#09 pc 0x0000000000b9b964 /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::Navigator::restoreNavigationSession(mapbox::navigation::NavigationSessionState&&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#10 pc 0x0000000000dd7ce4 /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::Navigator::restoreNavigationSession(mapbox::navigation::NavigationSessionState&&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#11 pc 0x0000000000b76fec /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::Navigator::restoreNavigationSession(mapbox::navigation::NavigationSessionState&&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#12 pc 0x0000000000b93c5c /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::Navigator::restoreNavigationSession(mapbox::navigation::NavigationSessionState&&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#13 pc 0x0000000000b91810 /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libnavigator-android.so (mapbox::navigation::Navigator::restoreNavigationSession(mapbox::navigation::NavigationSessionState&&)+22757376) (BuildId: a813b7d2e25264d4eddb270109cf91904dfb648c)

#14 pc 0x00000000001a41f0 /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libmapbox-common.so (mapbox::common::platform::processTask(std::__ndk1::function const&)+24) (BuildId: fb76e31f841cedf8adcd5d2f2cd05090b5b1f12e)

#15 pc 0x000000000019596c /data/app/~~lNeXtaEaugW-yREYGpic7Q==/[PACKAGE]/base.apk!libmapbox-common.so (mapbox::common::ThreadedSchedulerBase::getDefaultPriority()+13533184) (BuildId: fb76e31f841cedf8adcd5d2f2cd05090b5b1f12e)

#16 pc 0x000000000007f7ac /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+232)

#17 pc 0x0000000000072adc /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the production crash with the android-ndk27 Navigation SDK dependency at version 2.21.0, using the supplied stack trace as the entry point. No source file or test is named, so investigation will require locating the native CacheFactory and restoreNavigationSession paths. Done would require a reproducible diagnosis and a verified correction or documented workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.