Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Maps for Android 6.4 native error #12983

Closed
AXwjg opened this issue Sep 27, 2018 · 3 comments
Closed

Maps for Android 6.4 native error #12983

AXwjg opened this issue Sep 27, 2018 · 3 comments
Labels
Android Mapbox Maps SDK for Android

Comments

@AXwjg
Copy link

AXwjg commented Sep 27, 2018

This is the error I saw in the traces.txt file.
--------------------start---pid 14104 at 2018-09-27 14:45:20 -----
Cmd line: me.test.maps
Build fingerprint: 'xiaomi/vince/vince:7.1.2/N2G47H/V9.6.3.0.NEGCNFD:user/release-keys'
ABI: 'arm'
Build type: optimized
Zygote loaded classes=4582 post zygote classes=2709
Intern table: 46894 strong; 553 weak
JNI: CheckJNI is on; globals=922 (plus 876 weak)
Libraries: /data/app/me.test.maps-1/lib/arm/libBugly.so /data/app/me.test.maps-1/lib/arm/libjcore121.so /data/app/me.test.maps-1/lib/arm/libmapbox-gl.so /data/app/me.test.maps-1/lib/arm/libyhook.so /system/lib/libandroid.so /system/lib/libcompiler_rt.so /system/lib/libjavacrypto.so /system/lib/libjnigraphics.so /system/lib/libmedia_jni.so /system/lib/libmiuiclassproxy.so /system/lib/libmiuinative.so /system/lib/libwebviewchromium_loader.so /vendor/lib/libqti_performance.so libjavacore.so libopenjdk.so (15)
/system/framework/oat/arm/volley.odex: speed
/system/framework/oat/arm/gson.odex: speed
/system/framework/oat/arm/QPerformance.odex: speed
/data/app/me.test.maps-1/oat/arm/base.odex: interpret-only
Current JIT code cache size: 168KB
Current JIT data cache size: 187KB
Current JIT capacity: 512KB
Current number of JIT code cache entries: 354
Total number of JIT compilations: 400
Total number of JIT compilations for on stack replacement: 2
Total number of deoptimizations: 1
Total number of JIT code cache collections: 4
Memory used for stack maps: Avg: 319B Max: 3KB Min: 12B
Memory used for compiled code: Avg: 484B Max: 3KB Min: 2B
Memory used for profiling info: Avg: 182B Max: 3KB Min: 20B
Start Dumping histograms for 407 iterations for JIT timings
Compiling: Sum: 1.604s 99% C.I. 0.066ms-47.092ms Avg: 3.980ms Max: 57.735ms
TrimMaps: Sum: 46.140ms 99% C.I. 8us-2347.750us Avg: 114.491us Max: 4698us
Code cache collection: Sum: 19.445ms 99% C.I. 1.627ms-11.464ms Avg: 4.861ms Max: 11.514ms
Done Dumping histograms
Memory used for compilation: Avg: 125KB Max: 970KB Min: 10KB
ProfileSaver total_bytes_written=22618
ProfileSaver total_number_of_writes=2
ProfileSaver total_number_of_code_cache_queries=2
ProfileSaver total_number_of_skipped_writes=0
ProfileSaver total_number_of_failed_writes=0
ProfileSaver total_ms_of_sleep=83027
ProfileSaver total_ms_of_work=30
ProfileSaver total_number_of_foreign_dex_marks=1
ProfileSaver max_number_profile_entries_cached=4217
ProfileSaver total_number_of_hot_spikes=0
ProfileSaver total_number_of_wake_ups=2

suspend all histogram: Sum: 11.991ms 99% C.I. 5us-4000.639us Avg: 226.245us Max: 5019us
DALVIK THREADS (54):
"Signal Catcher" daemon prio=5 tid=3 Runnable
| group="system" sCount=0 dsCount=0 obj=0x12c5bee0 self=0xd92c8800
| sysTid=14110 nice=0 cgrp=default sched=0/0 handle=0xe5724920
| state=R schedstat=( 21410362 1887451 23 ) utm=0 stm=2 core=4 HZ=100
| stack=0xe5628000-0xe562a000 stackSize=1014KB
| held mutexes= "mutator lock"(shared held)
native: #00 pc 00351aa1 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128)
native: #1 pc 00331bf9 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+308)
native: #2 pc 0034421f /system/lib/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+654)
native: #3 pc 0033dd71 /system/lib/libart.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureEb+584)
native: #4 pc 0033d941 /system/lib/libart.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEb+596)
native: #5 pc 0033d68f /system/lib/libart.so (_ZN3art10ThreadList14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+574)
native: #6 pc 00322c5b /system/lib/libart.so (_ZN3art7Runtime14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+114)
native: #7 pc 0032757f /system/lib/libart.so (_ZN3art13SignalCatcher13HandleSigQuitEv+1394)
native: #8 pc 003266ed /system/lib/libart.so (_ZN3art13SignalCatcher3RunEPv+336)
native: #9 pc 00046dc3 /system/lib/libc.so (_ZL15__pthread_startPv+22)
native: #10 pc 00019b2d /system/lib/libc.so (__start_thread+6)
(no managed stack frames)

"main" prio=5 tid=1 Native
| group="main" sCount=1 dsCount=0 obj=0x74269950 self=0xe6105400
| sysTid=14104 nice=0 cgrp=default sched=1073741825/1 handle=0xe8d96538
| state=S schedstat=( 53382633129 9261422518 68459 ) utm=4955 stm=383 core=3 HZ=100
| stack=0xff63e000-0xff640000 stackSize=8MB
| held mutexes=
kernel: __switch_to+0x70/0x7c
kernel: futex_wait_queue_me+0xe4/0x144
kernel: futex_wait+0xfc/0x208
kernel: do_futex+0xdc/0x8a4
kernel: compat_SyS_futex+0xdc/0x168
kernel: el0_svc_naked+0x24/0x28
native: #00 pc 00017514 /system/lib/libc.so (syscall+28)
native: #1 pc 000b71e1 /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92)
native: #2 pc 000d0281 /system/lib/libart.so (_ZN3art8CheckJNI17NewPrimitiveArrayEPKcP7_JNIEnviNS_9Primitive4TypeE+212)
native: #3 pc 0004f20f /data/app/me.test.maps-1/lib/arm/libmapbox-gl.so (???)
native: #4 pc 0004c2b3 /data/app/me.test.maps-1/lib/arm/libmapbox-gl.so (???)
native: #5 pc 0005b46d /data/app/me.test.maps-1/lib/arm/libmapbox-gl.so (???)
native: #6 pc 0005b4af /data/app/me.test.maps-1/lib/arm/libmapbox-gl.so (???)
native: #7 pc 00066785 /data/app/me.test.maps-1/oat/arm/base.odex (Java_com_mapbox_mapboxsdk_maps_NativeMapView_nativeQueryPointAnnotations__Landroid_graphics_RectF_2+96)
at com.mapbox.mapboxsdk.maps.NativeMapView.nativeQueryPointAnnotations(Native method)
at com.mapbox.mapboxsdk.maps.NativeMapView.queryPointAnnotations(NativeMapView.java:507)
at com.mapbox.mapboxsdk.maps.MarkerContainer.obtainViewsIn(MarkerContainer.java:171)
at com.mapbox.mapboxsdk.maps.AnnotationManager.getMarkerViewsInRect(AnnotationManager.java:208)
at com.mapbox.mapboxsdk.maps.MapboxMap.getMarkerViewsInRect(MapboxMap.java:1199)
at com.mapbox.mapboxsdk.annotations.MarkerViewManager.invalidateViewMarkersInVisibleRegion(MarkerViewManager.java:485)
at com.mapbox.mapboxsdk.annotations.MarkerViewManager$1.onPreDraw(MarkerViewManager.java:44)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2246)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1295)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6400)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:876)
at android.view.Choreographer.doCallbacks(Choreographer.java:688)
at android.view.Choreographer.doFrame(Choreographer.java:623)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:862)
at android.os.Handler.handleCallback(Handler.java:754)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6385)
at java.lang.reflect.Method.invoke!(Native method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)

I hope someone can help me, I feel that only some data on the map is not loaded,set map_fragment.setVisibility(GONE) lead to ;

@AXwjg AXwjg changed the title Maps for Maps for Android 6.4 native error Sep 27, 2018
@LukasPaczos LukasPaczos added the Android Mapbox Maps SDK for Android label Sep 27, 2018
@LukasPaczos
Copy link
Contributor

Hey @AXwjg, this looks similar to #11634. Would you be able to provide a reproducible example?

@AXwjg
Copy link
Author

AXwjg commented Sep 28, 2018

@AXwjg,这看起来类似于#11634。你能提供一个可重复的例子吗?

Providing an example can be a bit of a hassle, because we added something in, but I can guarantee that there will be no problem with the added stuff, then #11634 is there a solution?

@LukasPaczos
Copy link
Contributor

LukasPaczos commented Sep 28, 2018

As mentioned in #11634, we were never able to reproduce the issue and it'll be hard to find a root cause without a reproducible example.

@tobrun tobrun closed this as completed Oct 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

3 participants