Android - Exception on mapReady - black map
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- android, typescript
- 领域
- mobile
调研方向
首先,在运行 Android 11 的 Pixel 3 上复现黑色地图行为,并检查 MapboxTelemetry 和 okhttp3 失败附近的 adb logcat 输出。检查 manifest XML service tag 和 access token 配置,然后将设备行为与正常工作的模拟器情况进行比较。当调用 mapReady 且地图在没有报告的异常的情况下完成渲染时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
6.1.0 and 6.2.0
Android 11, tns-android 6.5.3
On the emulator it works fine. But on my Pixel 3, it never calls the mapReady function.
Looking at the adb logcat I see this..
01-30 15:19:24.206 13443 13597 W CrashReporter: Root directory doesn't exist
01-30 15:19:24.348 13443 13443 E TelemetryUtils: java.lang.SecurityException: getDataNetworkTypeForSubscriber
01-30 15:19:24.380 13443 13597 W eroInInstaller: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setUseSessionTickets(Z)V (greylist-max-q,core-platform-api, reflection, denied)
01-30 15:19:24.381 13443 13597 E MapboxTelemetry: java.lang.ExceptionInInitializerError
01-30 15:19:24.389 13443 13475 W LocationController: Location permissions are not granted
01-30 15:19:24.411 13443 13599 I Mbgl-EGLConfigChooser: In emulator: false
01-30 15:19:24.426 13443 13613 I Mbgl : {GLThread 12942}[General]: GPU Identifier: Adreno (TM) 615
01-30 15:19:24.466 13443 13601 I eroInInstaller: Rejecting re-init on previously-failed class java.lang.Class<okhttp3.internal.platform.Platform>: java.lang.ExceptionInInitializerError:
01-30 15:19:24.466 13443 13601 I eroInInstaller: at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform.get() (Platform.java:85)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at javax.net.ssl.SSLSocketFactory okhttp3.OkHttpClient.newSslSocketFactory(javax.net.ssl.X509TrustManager) (OkHttpClient.java:263)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void okhttp3.OkHttpClient.(okhttp3.OkHttpClient$Builder) (OkHttpClient.java:229)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void okhttp3.OkHttpClient.() (OkHttpClient.java:202)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void com.mapbox.android.telemetry.MapboxTelemetry.initializeTelemetryClient() (MapboxTelemetry.java:235)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at boolean com.mapbox.android.telemetry.MapboxTelemetry.checkRequiredParameters(java.lang.String, java.lang.String) (MapboxTelemetry.java:191)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void com.mapbox.android.telemetry.MapboxTelemetry.sendEvents(java.util.List, boolean) (MapboxTelemetry.java:316)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void com.mapbox.android.telemetry.MapboxTelemetry.access$200(com.mapbox.android.telemetry.MapboxTelemetry, java.util.List, boolean) (MapboxTelemetry.java:37)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void com.mapbox.android.telemetry.MapboxTelemetry$4.run() (MapboxTelemetry.java:351)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1167)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:641)
01-30 15:19:24.466 13443 13601 I eroInInstaller: at void java.lang.Thread.run() (Thread.java:923)
01-30 15:19:24.473 13443 13601 E libc++abi: terminating with uncaught exception of type jni::PendingJavaException
01-30 15:19:24.711 13443 13601 E libc++abi: terminate_handler unexpectedly threw an exception
Yes I have the tag in the manifest xml
Yes there is a accessToken set.
- 主要语言
- TypeScript
- 星标
- 38
- 派生
- 26
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nativescript-community/ui-mapbox 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
nativescript-community/ui-mapbox#118 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 30/100
nativescript-community/ui-mapbox#116 · 4 条评论 ·
-
难度 3/5 1-2 天 新手友好度 30/100
nativescript-community/ui-mapbox#113 · 2 条评论 ·
-
Can not use icon未关闭
难度 3/5 1-2 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 25/100
nativescript-community/ui-mapbox#103 · 8 条评论 ·
查看 nativescript-community/ui-mapbox 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 78/100
lichess-org/api#678 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
PostHog/posthog.com#20628 ·
维护者通常 1 天内回复
-
bug status:Needs Triage
难度 1/5 1 小时以内 新手友好度 92/100
jupyterlab/jupyterlab#19964 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
agentscope-ai/QwenPaw#8064 · 1 条评论 ·
维护者通常 1 天内回复
-
area: notebooks-jupyter bug theme: new notebook frontend
难度 2/5 1-3 小时 新手友好度 88/100
posit-dev/positron#16347 · 1 条评论 ·
维护者通常 1 天内回复