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

Vulkan Native Crash when using TextureMode #3099

Open
ekamp opened this issue Dec 19, 2024 · 1 comment
Open

Vulkan Native Crash when using TextureMode #3099

ekamp opened this issue Dec 19, 2024 · 1 comment

Comments

@ekamp
Copy link

ekamp commented Dec 19, 2024

MapLibre Android Version

11.7.1 - Vulkan

Android SDK Version

Android 12

Device

Samsung Galaxy S20

What happened?

When updating to the latest 11.7.1-Vulkan , when placing the app in the background or leaving the map open for a min or two the app crashes with a native trace :
When disabling textureMode within the MapLibreMapOptions the issue no longer occurs. For our use-case we would like to continue to benefit from using TextureMode within our application.

Steps to reproduce

  1. Launch application and inflate a MapView
  2. Navigate away from the MapView placing it in the background
  3. Application crashes with a native stack trace linked below


### Renderer

Vulkan

### Relevant log output

```shell
[1219/161542.394465:ERROR:elf_dynamic_array_reader.h(64)] tag not found
2024-12-19 13:15:42.459 26747-27093 libc                    com....          A  Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 27093 (TextureViewRend), pid 26747 (roid.driver.dev)
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  Build fingerprint: 'samsung/x1quex/x1q:12/SP1A.210812.016/G981U1UES3FVI6:user/release-keys'
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  Revision: '14'
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  ABI: 'arm64'
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  Processor: '7'
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  Timestamp: 2024-12-19 16:15:42.560716234-0500
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  Process uptime: 129s
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  Cmdline: com....
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  pid: 26747, tid: 27093, name: TextureViewRend  >>> com.. <<<
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  uid: 10765
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  Cause: null pointer dereference
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A      x0  0000000000000000  x1  000000717653feb8  x2  0000000000000001  x3  000000726a8557e8
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A      x4  000000717653fe70  x5  000000000000004a  x6  ff284900ff302349  x7  7f7f7f7f7f7f7f7f
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A      x8  000000717653fe60  x9  0000007176541040  x10 0000000000000001  x11 0000000000000001
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A      x12 0000000000000010  x13 000000717653eb78  x14 000000755e5ce4f1  x15 00000000ebad6a89
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A      x16 000000717f8f5920  x17 0000007580bc49d4  x18 0000007173ca0000  x19 000000717653feb8
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A      x20 0000000000000000  x21 0000007176541000  x22 b40000737d414248  x23 b40000737d414230
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A      x24 00002a9cbbe25f3c  x25 0000000000000001  x26 000000755e5cf828  x27 0000000000000001
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A      x28 000000717653ff70  x29 000000717653fe70
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A      lr  000000717f1b234c  sp  000000717653fe60  pc  000000717f3a9798  pst 0000000020001000
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A  backtrace:
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A        #00 pc 0000000000772798  /data/app/~~t4U4T-gwPjzYZgnRR3pnKQ==/com..-hvsb0EX66toopyFSktCpgg==/lib/arm64/libmaplibre.so (BuildId: cd508a27191fef132037597356cb7cb55033ebf0)
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A        #01 pc 000000000057b348  /data/app/~~t4U4T-gwPjzYZgnRR3pnKQ==/com.-hvsb0EX66toopyFSktCpgg==/lib/arm64/libmaplibre.so (mbgl::android::MapRenderer::render(_JNIEnv&)+216) (BuildId: cd508a27191fef132037597356cb7cb55033ebf0)
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A        #02 pc 000000000057e558  /data/app/~~t4U4T-gwPjzYZgnRR3pnKQ==/com...-hvsb0EX66toopyFSktCpgg==/lib/arm64/libmaplibre.so (auto auto jni::MakeNativeMethod<auto jni::NativeMethodMaker<void (auto jni::NativePeerMemberFunctionMethod<void (mbgl::android::MapRenderer::*)(_JNIEnv&), &(mbgl::android::MapRenderer::render(_JNIEnv&))>::operator()<mbgl::android::MapRenderer, mbgl::android::MapRenderer, void>(jni::Field<mbgl::android::MapRenderer, long> const&)::'lambda'(_JNIEnv&, jni::Object<mbgl::android::MapRenderer>&)::*)(_JNIEnv&, jni::Object<mbgl::android::MapRenderer>&) const>::operator()<auto jni::NativePeerMemberFunctionMethod<void (mbgl::android::MapRenderer::*)(_JNIEnv&), &(mbgl::android::MapRenderer::render(_JNIEnv&))>::operator()<mbgl::android::MapRenderer, mbgl::android::MapRenderer, void>(jni::Field<mbgl::android::MapRenderer, long> const&)::'lambda'(_JNIEnv&, jni::Object<mbgl::android::MapRenderer>&)>(char const*, auto jni::NativePeerMemberFunctionMethod<void (mbgl::android::MapRenderer::*)(_JNIEnv&), &(mbgl::android::MapRenderer::render(_JNIEnv&))>::operator()<mbgl::android::MapRenderer, mbgl::android::MapRenderer, void>(jni::Field<mbgl::android::MapRenderer, long> const&)::'lambda'(_JNIEnv&, jni::Object<mbgl::android::MapRenderer>&) const&)::'lambda'(_JNIEnv*, jni::jobject*)>(char const*, char const*, auto jni::NativePeerMemberFunctionMethod<void (mbgl::android::MapRenderer::*)(_JNIEnv&), &(mbgl::android::MapRenderer::render(_JNIEnv&))>::operator()<mbgl::android::MapRenderer, mbgl::android::MapRenderer, void>(jni::Field<mbgl::android::MapRenderer, long> const&)::'lambda'(_JNIEnv&, jni::Object<mbgl::android::MapRenderer>&) const&, std::__ndk1::enable_if<std::is_class<auto jni::NativePeerMemberFunctionMethod<void (mbgl::android::MapRenderer::*)(_JNIEnv&), &(mbgl::android::MapRenderer::render(_JNIEnv&))>::operator()<mbgl::android::MapRenderer, mbgl::android::MapRenderer, void>(jni::Field<mbgl::android::MapRenderer, long> const&)::'lambda'(_JNIEnv&, jni::Object<mbgl::android::MapRenderer>&)>::value, void>::type*)::'lambda'(_JNIEnv*, auto...)::__invoke<jni::jobject*>(_JNIEnv*, auto...)+44) (BuildId: cd508a27191fef132037597356cb7cb55033ebf0)
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A        #03 pc 0000000000383d70  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: c35c9ebf7bb06435e4b31977d87bd5d5)
2024-12-19 13:15:43.491 27697-27697 DEBUG                   crash_dump64                         A        #04 pc 0000000002bf9404  /memfd:jit-cache (deleted)
2024-12-19 13:15:43.522   740-740   tombstoned              tombstoned                           E  Tombstone written to: tombstone_11

Additional context

No response

@louwers
Copy link
Collaborator

louwers commented Dec 19, 2024

Thanks for the bug report.

I think @adrian-cojocaru will be able to take a look at this next year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants