mapbox / mapbox/mapbox-maps-android

Android app crashes with Fatal signal 11 error while rendering Mapbox map

Open
#2,052 23 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

## Environment

- Search SDK Component (check at least one)
- [x] Core Search SDK (`SearchEngine` class, and etc.)
- [ ] Offline Search SDK (`OfflineSearchEngine` class, and etc.)
- [ ] Address Autofill SDK
- [ ] Search UI SDK
- Android OS version: 13
- Devices affected: Pixel 6a
- Search SDK Version: 1.0.0-rc.2
- Included in project Maps SDK, Nav SDK versions if available: 'com.mapbox.navigation:android:2.11.0'

The app crashes with error:

```
--------- beginning of crash
A Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 29943 (MapboxRenderThr), pid 28664 (com.example)
A Cmdline: com.example
A pid: 28664, tid: 29943, name: MapboxRenderThr >>> com.example <<<
A #00 pc 0000000000251d48 /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!libmapbox-maps.so (BuildId: 331a309c6d4e90a8)
A mapbox/mapbox-search-android#1 pc 0000000000364828 /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!libmapbox-maps.so (BuildId: 331a309c6d4e90a8)
A mapbox/mapbox-search-android#2 pc 0000000000362398 /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!libmapbox-maps.so (BuildId: 331a309c6d4e90a8)
A mapbox/mapbox-search-android#3 pc 00000000002a5400 /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!libmapbox-maps.so (BuildId: 331a309c6d4e90a8)
A mapbox/mapbox-search-android#4 pc 00000000002a11e0 /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!libmapbox-maps.so (BuildId: 331a309c6d4e90a8)
A mapbox/mapbox-search-android#5 pc 0000000000262e7c /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!libmapbox-maps.so (BuildId: 331a309c6d4e90a8)
A mapbox/mapbox-search-android#8 pc 0000000000455020 [anon:dalvik-classes19.dex extracted in memory from /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!classes19.dex] (com.mapbox.maps.NativeMapImpl.render+4)
A mapbox/mapbox-search-android#10 pc 000000000057930a [anon:dalvik-classes19.dex extracted in memory from /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!classes19.dex] (com.mapbox.maps.renderer.MapboxRenderer.render+10)
---------------------------- PROCESS ENDED (28664) for package com.example ----------------------------
```

The app usually crashes when running app first time from Android studio. So imagine, app is already installed on phone, in Android studio I select "Clear app data before storage" and then launch. App crashes, however do note, this is not reproducible every time.

I am using libraries:

//mapbox
implementation 'com.mapbox.navigation:android:2.11.0'
implementation "com.mapbox.search:mapbox-search-android:1.0.0-rc.2"

I have tried other versions of libraries in the past as well, same error often.

Thank you, would appreciate help and any guidance!

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 intermittent crash after clearing app data, using the reported Android 13, Pixel 6a, Navigation 2.11.0, and Search SDK 1.0.0-rc.2 setup. Inspect the NativeMapImpl.render and MapboxRenderer.render stack entries in libmapbox-maps.so; done means the rendering crash has a confirmed cause and is no longer reproducible under the reported launch sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
computer-graphics, 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.