mapbox / mapbox/mapbox-navigation-android

`MapboxCustomStyleActivity` `NoSuchFieldException`: No field mThemeResId

Open
#5,647 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug jira-sync-complete
Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

An issue caught by a Robo test https://app.circleci.com/pipelines/github/mapbox/mapbox-navigation-android/17383/workflows/515f5123-7f86-4ebe-998c-316dde6f67ba/jobs/78634 https://console.firebase.google.com/u/0/project/mapbox-navigation-android/testlab/histories/bh.2e74b6b076d6fa53/matrices/5015480667863633138/executions/bs.f5488a308fc1cc87/logs

04-01 12:35:39.688: W/Robo(26769): Caught java.lang.NoSuchFieldException: No field mThemeResId in class Landroid/content/res/ResourcesImpl$ThemeImpl; (declaration of 'android.content.res.ResourcesImpl$ThemeImpl' appears in /system/framework/framework.jar) while trying to find theme name for com.mapbox.navigation.examples.core.MapboxCustomStyleActivity@285241a
04-01 12:35:39.681: W/linker64(12907): type=1400 audit(0.0:558): avc: denied { search } for name="battery" dev="sysfs" ino=67703 scontext=u:r:untrusted_app:s0:c19,c257,c512,c768 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=dir permissive=0 app=com.mapbox.navigation.examples
04-01 12:35:39.689: W/System(26769): A resource failed to call dispose. 
04-01 12:35:39.689: W/System(26769): --------- beginning of crash
04-01 12:35:39.728: A/libc(26769): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 26846 (Thread-2), pid 26769 (gation.examples)
04-01 12:35:39.819: I/crash_dump64(12926): obtaining output fd from tombstoned, type: kDebuggerdTombstone
04-01 12:35:39.822: I/tombstoned(861): received crash request for pid 26846
04-01 12:35:39.823: I/crash_dump64(12926): performing dump of process 26769 (target tid = 26846)
04-01 12:35:39.828: A/DEBUG(12926): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-01 12:35:39.828: A/DEBUG(12926): Build fingerprint: 'google/redfin/redfin:11/RQ3A.211001.001/7641976:user/release-keys'
04-01 12:35:39.828: A/DEBUG(12926): Revision: 'MP1.0'
04-01 12:35:39.828: A/DEBUG(12926): ABI: 'arm64'
04-01 12:35:39.829: A/DEBUG(12926): Timestamp: 2022-04-01 12:35:39-0700
04-01 12:35:39.829: A/DEBUG(12926): pid: 26769, tid: 26846, name: Thread-2  >>> com.mapbox.navigation.examples <<<
04-01 12:35:39.829: A/DEBUG(12926): uid: 10275
04-01 12:35:39.829: A/DEBUG(12926): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
04-01 12:35:39.829: A/DEBUG(12926): Cause: null pointer dereference
04-01 12:35:39.829: A/DEBUG(12926):     x0  b4000075f68eda48  x1  000000749fa5af34  x2  000000749fa5af58  x3  00000000000000d0
04-01 12:35:39.829: A/DEBUG(12926):     x4  0000000000000010  x5  0000000000000000  x6  0000000000000000  x7  0000000000000000
04-01 12:35:39.829: A/DEBUG(12926):     x8  0000000000000000  x9  00000000000000ce  x10 000000003f000000  x11 f2980000000d010a
04-01 12:35:39.829: A/DEBUG(12926):     x12 000000003ec8b653  x13 f2980000000d010a  x14 00000075062d24fc  x15 00000000ebad6a89
04-01 12:35:39.829: A/DEBUG(12926):     x16 00000074937e89d8  x17 0000007798296ab8  x18 000000748fdb8000  x19 000000749fa5c000
04-01 12:35:39.829: A/DEBUG(12926):     x20 b4000075e697f6f8  x21 000000749fa5c000  x22 0000000015a4c460  x23 b4000076768b5328
04-01 12:35:39.829: A/DEBUG(12926):     x24 00000074ea97e610  x25 000000749fa5c000  x26 0000000000005001  x27 0000000000000001
04-01 12:35:39.829: A/DEBUG(12926):     x28 000000749fa5b1a0  x29 000000749fa5af50
04-01 12:35:39.829: A/DEBUG(12926):     lr  00000074914b00ac  sp  000000749fa5af30  pc  00000074914af54c  pst 0000000080001000
04-01 12:35:39.941: D/BufferPoolAccessor2.0(923): bufferpool2 0xb400006e81fb6898 : 9(6377472 size) total buffers - 5(3543040 size) used buffers - 5961/5970 (recycle/alloc) - 129/5964 (fetch/transfer)
04-01 12:35:40.010: A/DEBUG(12926): backtrace:
04-01 12:35:40.010: A/DEBUG(12926):       #00 pc 000000000046554c  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #01 pc 00000000004660a8  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #02 pc 0000000000468724  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #03 pc 0000000000468878  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #04 pc 00000000002d0138  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #05 pc 000000000020046c  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #06 pc 000000000027d9b0  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #07 pc 0000000000408940  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #08 pc 0000000000409164  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #09 pc 00000000004093c8  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #10 pc 0000000000409488  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #11 pc 000000000020046c  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #12 pc 0000000000409564  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #13 pc 0000000000409580  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #14 pc 000000000020046c  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #15 pc 0000000000224884  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #16 pc 0000000000252494  /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/lib/arm64/libmapbox-maps.so (BuildId: 552ec427a94654ff)
04-01 12:35:40.010: A/DEBUG(12926):       #17 pc 000000000013ced4  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #18 pc 000000000217f5cc  /memfd:jit-cache (deleted) (offset 0x2000000) (com.mapbox.maps.TaskNative$TaskPeerCleaner.run+44)
04-01 12:35:40.010: A/DEBUG(12926):       #19 pc 00000000021e60a4  /memfd:jit-cache (deleted) (offset 0x2000000) (com.mapbox.bindgen.Cleaner$Finalizer.finalizeResources+68)
04-01 12:35:40.010: A/DEBUG(12926):       #20 pc 0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #21 pc 00000000001a8a6c  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #22 pc 00000000003165ec  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #23 pc 000000000030c6b0  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+912) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #24 pc 000000000066f0cc  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+840) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #25 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #26 pc 00000000002408fe  [anon:dalvik-classes.dex extracted in memory from /data/app/~~SxA8ZwYxgUcW8Y6qskHQGw==/com.mapbox.navigation.examples-TGfzbrRR5azVjZW11bi9Ig==/base.apk] (com.mapbox.bindgen.Cleaner$CleanerImpl.run+42)
04-01 12:35:40.010: A/DEBUG(12926):       #27 pc 0000000000303e34  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.7274503973381030938)+268) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #28 pc 000000000065de70  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+760) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #29 pc 000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #30 pc 000000000015aaf8  /apex/com.android.art/javalib/arm64/boot.oat (java.lang.Thread.run+72) (BuildId: 7c6e1cc29957b182797f6da273a9ebedd0677697)
04-01 12:35:40.010: A/DEBUG(12926):       #31 pc 0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #32 pc 00000000001a8a6c  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #33 pc 0000000000549d3c  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+460) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #34 pc 0000000000598498  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1288) (BuildId: 6d01a26aa5bb297b773f6354dac69d75)
04-01 12:35:40.010: A/DEBUG(12926):       #35 pc 00000000000af880  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: bca874ad82277777df5c95ca3b0f6e6f)
04-01 12:35:40.010: A/DEBUG(12926):       #36 pc 00000000000500d0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: bca874ad82277777df5c95ca3b0f6e6f)
04-01 12:35:40.135: I/Robo(26769): Espresso: Milliseconds to extract current screen state: 555
04-01 12:35:40.135: I/Robo(26769): displayWidth = 1080, displayHeight = 2340
04-01 12:35:40.143: I/Robo(26769): Received take screenshot request.
04-01 12:35:40.402: E/tombstoned(861): Tombstone written to: /data/tombstones/tombstone_00
04-01 12:35:40.406: I/DropBoxManagerService(1520): add tag=data_app_native_crash isTagEnabled=true flags=0x2
04-01 12:35:40.408: I/BootReceiver(1520): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
04-01 12:35:40.411: I/DropBoxManagerService(1520): add tag=SYSTEM_TOMBSTONE isTagEnabled=true flags=0x2
04-01 12:35:40.414: W/BroadcastQueue(1520): Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
04-01 12:35:40.414: W/BroadcastQueue(1520): Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
04-01 12:35:40.429: W/BroadcastQueue(1520): Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
04-01 12:35:40.430: W/BroadcastQueue(1520): Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
04-01 12:35:40.433: I/Zygote(870): Process 26769 exited due to signal 11 (Segmentation fault)
04-01 12:35:40.481: W/InputDispatcher(1520): channel '15531be com.mapbox.navigation.examples/com.mapbox.navigation.examples.core.MapboxCustomStyleActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
04-01 12:35:40.481: E/InputDispatcher(1520): channel '15531be com.mapbox.navigation.examples/com.mapbox.navigation.examples.core.MapboxCustomStyleActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04-01 12:35:40.482: W/Robo(26920): Platform to host thread finished.
04-01 12:35:40.482: I/ActivityManager(1520): Process com.mapbox.navigation.examples (pid 26769) has died: fg  TOP 

cc @cafesilencio

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 with the linked CircleCI Robo test and Firebase Test Lab execution for MapboxCustomStyleActivity. Investigate the NoSuchFieldException for ResourcesImpl$ThemeImpl.mThemeResId alongside the native crash in libmapbox-maps.so. Done means reproducing the failure and confirming that the Robo test no longer reports the exception or SIGSEGV.

Written by the indexing model from the issue text.

Assessment

Tech stack
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.