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

[Bug]: Android: SIGSEGV crash after updating rnmapbox version #3236

Closed
bradstiff opened this issue Dec 4, 2023 · 1 comment
Closed

[Bug]: Android: SIGSEGV crash after updating rnmapbox version #3236

bradstiff opened this issue Dec 4, 2023 · 1 comment
Labels
bug 🪲 Something isn't working reopen-on-code-fixed

Comments

@bradstiff
Copy link

bradstiff commented Dec 4, 2023

Mapbox Implementation

Mapbox

Mapbox Version

default

Platform

Android

@rnmapbox/maps version

10.0.15

Standalone component to reproduce

Unable to reproduce

Observed behavior and steps to reproduce

After updating rnmapbox version from 10.0.0-rc.13 to 10.0.15, opening a screen with a mapbox map causes the app to immediately crash with the following stack trace:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 18821 >>> com.xovation.weski <<<

backtrace:
  #00  pc 0x00000000000f8000  [anon:stack_and_tls:18821]
  #01  pc 0x00000000000e8238  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libc++_shared.so (BuildId: fcc246cbb373c5edee634b117c4b4564cc9becf3)
  #02  pc 0x00000000000e7e6c  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libc++_shared.so (BuildId: fcc246cbb373c5edee634b117c4b4564cc9becf3)
  #03  pc 0x00000000000e3f50  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libc++_shared.so (BuildId: fcc246cbb373c5edee634b117c4b4564cc9becf3)
  #04  pc 0x00000000000e3da4  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libc++_shared.so (__gxx_personality_v0+224) (BuildId: fcc246cbb373c5edee634b117c4b4564cc9becf3)
  #05  pc 0x0000000000143d4c  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libmapbox-common.so (BuildId: f2ed5d81095e1796)
  #06  pc 0x0000000000144254  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libmapbox-common.so (BuildId: f2ed5d81095e1796)
  #07  pc 0x0000000000180aec  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libmapbox-common.so (BuildId: f2ed5d81095e1796)
  #08  pc 0x00000000001a67cc  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libmapbox-common.so (BuildId: f2ed5d81095e1796)
  #09  pc 0x000000000028e914  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libmapbox-common.so (BuildId: f2ed5d81095e1796)
  #10  pc 0x000000000028eec8  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libmapbox-common.so (BuildId: f2ed5d81095e1796)
  #11  pc 0x000000000028f83c  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libmapbox-common.so (BuildId: f2ed5d81095e1796)
  #12  pc 0x000000000019896c  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libmapbox-common.so (BuildId: f2ed5d81095e1796)
  #13  pc 0x00000000001a9854  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libmapbox-common.so (mapbox::common::platform::processTask(std::__ndk1::function<void ()> const&)+32) (BuildId: f2ed5d81095e1796)
  #14  pc 0x000000000019add0  /data/app/~~1cmB8bMYMLeAeaTLpYvN2w==/com.xovation.weski-8cBK0YxjolLvsDxLYFU2QA==/split_config.arm64_v8a.apk!libmapbox-common.so (BuildId: f2ed5d81095e1796)
  #15  pc 0x00000000000c9ccc  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
  #16  pc 0x000000000005db00  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

Expected behavior

App should not crash.

Notes / preliminary analysis

I upgraded from 10.0.0-rc.13 to 10.0.15.

I upgraded RN from 0.71.6 to 0.72.7.

No code changes were made.

I released a beta version with these changes to the Play Store, and updated the version on my phone. Now, opening any screen with a Mapbox map causes the app to crash. Clearing the Cache has no effect. Changing the code to simply render a with no style, props, handlers or content has no effect.

The only thing that stops the crashing is uninstalling and reinstalling the app.

It seems like some data has been cached by Mapbox that is not compatible with the latest version.

Is there a programmatic way to clear cached data?

Additional links and references

No response

@bradstiff bradstiff added the bug 🪲 Something isn't working label Dec 4, 2023
@github-actions github-actions bot closed this as completed Dec 4, 2023
Copy link

github-actions bot commented Dec 4, 2023

No code example found in issue body - More info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working reopen-on-code-fixed
Projects
None yet
Development

No branches or pull requests

1 participant