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

(Android Mapbox) When using AS profiler, the mapview crashes #241

Closed
AlexanderEggers opened this issue May 9, 2019 · 3 comments
Closed
Labels

Comments

@AlexanderEggers
Copy link

When using the AS profiler on one of my test devices, the mapview is crashing a few seconds after enabled this tool. I can reproduce this crash only on the Moto G5 so far.

2019-05-09 17:47:56.959 21342-21342/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-05-09 17:47:56.959 21342-21342/? A/DEBUG: Build fingerprint: 'motorola/cedric/cedric:8.1.0/OPPS28.85-13-6/04442:user/release-keys'
2019-05-09 17:47:56.959 21342-21342/? A/DEBUG: Revision: 'p500'
2019-05-09 17:47:56.959 21342-21342/? A/DEBUG: ABI: 'arm'
2019-05-09 17:47:56.959 21342-21342/? A/DEBUG: pid: 20869, tid: 20869, name: app.android.dev >>> my.app.android.dev <<<
2019-05-09 17:47:56.959 21342-21342/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1f
2019-05-09 17:47:56.959 21342-21342/? A/DEBUG: Cause: null pointer dereference
2019-05-09 17:47:56.959 21342-21342/? A/DEBUG: r0 beb82f38 r1 ffffffff r2 00000003 r3 9135e141
2019-05-09 17:47:56.960 21342-21342/? A/DEBUG: r4 beb82ee0 r5 beb82f38 r6 aee691b8 r7 beb82e80
2019-05-09 17:47:56.960 21342-21342/? A/DEBUG: r8 00000000 r9 00000000 sl 00000001 fp 00000000
2019-05-09 17:47:56.960 21342-21342/? A/DEBUG: ip 84570fb0 sp beb82e80 lr 913673d7 pc 9136754a cpsr 800d0030
2019-05-09 17:47:56.960 21342-21342/? W/crash_dump32: type=1400 audit(0.0:7142): avc: denied { search } for uid=10430 name="my.app.android.dev" dev="dm-1" ino=13462 scontext=u:r:crash_dump:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
2019-05-09 17:47:56.967 21342-21342/? A/DEBUG: backtrace:
2019-05-09 17:47:56.967 21342-21342/? A/DEBUG: #00 pc 0025e54a /data/app/my.app.android.dev-8_0MndZxD_oc2bcIZvHDHA==/lib/arm/libmapbox-gl.so
2019-05-09 17:47:56.967 21342-21342/? A/DEBUG: mapbox/mapbox-gl-native#1 pc 0025e3d3 /data/app/my.app.android.dev-8_0MndZxD_oc2bcIZvHDHA==/lib/arm/libmapbox-gl.so
2019-05-09 17:47:56.967 21342-21342/? A/DEBUG: mapbox/mapbox-gl-native#2 pc 002552a1 /data/app/my.app.android.dev-8_0MndZxD_oc2bcIZvHDHA==/lib/arm/libmapbox-gl.so
2019-05-09 17:47:56.967 21342-21342/? A/DEBUG: mapbox/mapbox-gl-native#3 pc 0025524f /data/app/my.app.android.dev-8_0MndZxD_oc2bcIZvHDHA==/lib/arm/libmapbox-gl.so
2019-05-09 17:47:56.967 21342-21342/? A/DEBUG: mapbox/mapbox-gl-native#4 pc 0018bee4 /data/data/my.app.android.dev/libperfa_arm.so
2019-05-09 17:47:56.967 21342-21342/? A/DEBUG: mapbox/mapbox-gl-native#5 pc 0018c808 /data/data/my.app.android.dev/libperfa_arm.so

Configuration

Android versions: 8.1
Device models: Moto G5
Mapbox SDK versions: 7.4.0-beta.3

@spinningD20
Copy link

I'm newer to the android development scene, and especially profiling android apps, etc. I just ran into this with a project, and another team member was not experiencing the crash. Looking at the differences, we noticed I was using Android Studio 3.5.1, he was using 3.1.2.

I tried 3.1.2, and can successfully run the profiler without crashing.

It seems like they made a lot of changes to the AS profiler, or perhaps some settings are related?

Maybe someone else can weigh in on this.

@chloekraw chloekraw transferred this issue from mapbox/mapbox-gl-native Mar 6, 2020
@stale stale bot added the archived label Sep 6, 2020
@stale
Copy link

stale bot commented Sep 11, 2020

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Sep 11, 2020
@TroyStopera
Copy link

Has any effort been put into resolving this?

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

No branches or pull requests

3 participants