maplibre / flutter-maplibre-gl

Customizable, performant and vendor-free vector and raster maps, flutter wrapper for maplibre-native and maplibre-gl-js (fork of flutter-mapbox-gl/maps)
https://pub.dev/packages/maplibre_gl
Other
215 stars 117 forks source link

[Android] Chain validation failed (example app) #369

Closed ivanesi closed 8 months ago

ivanesi commented 8 months ago

Example app works as expected on iOS, but on android I got Chain validation failed and see black background instead of map.

https://demotiles.maplibre.org/style.json is available and downloadable

flutter run log ``` D/EGL_emulation(23276): app_time_stats: avg=13918.91ms min=8.46ms max=27829.35ms count=2 I/PlatformViewsController(23276): Hosting view in view hierarchy for platform view: 0 E/FrameEvents(23276): updateAcquireFence: Did not find frame. V/Mbgl-ConnectivityReceiver(23276): connected - true I/Mbgl-EGLConfigChooser(23276): In emulator: false D/HostConnection(23276): createUnique: call E/FrameEvents(23276): updateAcquireFence: Did not find frame. D/HostConnection(23276): HostConnection::get() New Host Connection established 0x7e6ead36aa50, tid 23340 D/HostConnection(23276): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV_Cache ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 D/EGL_emulation(23276): eglCreateContext: 0x7e6ead36a150: maj 3 min 0 rcv 3 D/EGL_emulation(23276): eglMakeCurrent: 0x7e6ead36a150: ver 3 0 (tinfo 0x7e70cdc67280) (first time) I/Mbgl (23276): {Thread-4}[General]: GPU Identifier: Android Emulator OpenGL ES Translator (Intel(R) Iris(TM) Plus Graphics OpenGL Engine) E/FrameEvents(23276): updateAcquireFence: Did not find frame. E/FrameEvents(23276): updateAcquireFence: Did not find frame. E/FrameEvents(23276): updateAcquireFence: Did not find frame. E/FrameEvents(23276): updateAcquireFence: Did not find frame. E/FrameEvents(23276): updateAcquireFence: Did not find frame. I/Mbgl-HttpRequest(23276): Request failed due to a connection error: Chain validation failed D/Mbgl-HttpRequest(23276): [HTTP] This request was cancelled (https://demotiles.maplibre.org/style.json). This is expected for tiles that were being prefetched but are no longer needed for the map to render. E/Mbgl (23276): {mapboxglexample}[Setup]: loading style failed: Chain validation failed I/Mbgl-HttpRequest(23276): Request failed due to a connection error: Chain validation failed D/Mbgl-HttpRequest(23276): [HTTP] This request was cancelled (https://demotiles.maplibre.org/style.json). This is expected for tiles that were being prefetched but are no longer needed for the map to render. E/Mbgl (23276): {mapboxglexample}[Setup]: loading style failed: Chain validation failed I/Mbgl-HttpRequest(23276): Request failed due to a connection error: Chain validation failed D/Mbgl-HttpRequest(23276): [HTTP] This request was cancelled (https://demotiles.maplibre.org/style.json). This is expected for tiles that were being prefetched but are no longer needed for the map to render. E/Mbgl (23276): {mapboxglexample}[Setup]: loading style failed: Chain validation failed I/Mbgl-HttpRequest(23276): Request failed due to a connection error: Chain validation failed D/Mbgl-HttpRequest(23276): [HTTP] This request was cancelled (https://demotiles.maplibre.org/style.json). This is expected for tiles that were being prefetched but are no longer needed for the map to render. E/Mbgl (23276): {mapboxglexample}[Setup]: loading style failed: Chain validation failed I/Mbgl-HttpRequest(23276): Request failed due to a connection error: Chain validation failed D/Mbgl-HttpRequest(23276): [HTTP] This request was cancelled (https://demotiles.maplibre.org/style.json). This is expected for tiles that were being prefetched but are no longer needed for the map to render. E/Mbgl (23276): {mapboxglexample}[Setup]: loading style failed: Chain validation failed I/Mbgl-HttpRequest(23276): Request failed due to a connection error: Chain validation failed D/Mbgl-HttpRequest(23276): [HTTP] This request was cancelled (https://demotiles.maplibre.org/style.json). This is expected for tiles that were being prefetched but are no longer needed for the map to render. E/Mbgl (23276): {mapboxglexample}[Setup]: loading style failed: Chain validation failed I/Mbgl-HttpRequest(23276): Request failed due to a connection error: Chain validation failed D/Mbgl-HttpRequest(23276): [HTTP] This request was cancelled (https://demotiles.maplibre.org/style.json). This is expected for tiles that were being prefetched but are no longer needed for the map to render. E/Mbgl (23276): {mapboxglexample}[Setup]: loading style failed: Chain validation failed I/Mbgl-HttpRequest(23276): Request failed due to a connection error: Chain validation failed D/Mbgl-HttpRequest(23276): [HTTP] This request was cancelled (https://demotiles.maplibre.org/style.json). This is expected for tiles that were being prefetched but are no longer needed for the map to render. E/Mbgl (23276): {mapboxglexample}[Setup]: loading style failed: Chain validation failed ```
flutter doctor ``` Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.16.7, on macOS 14.2.1 23C71 darwin-x64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) [✓] Xcode - develop for iOS and macOS (Xcode 15.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.1) [✓] VS Code (version 1.85.1) [✓] Connected device (3 available) [✓] Network resources • No issues found! ```
m0nac0 commented 8 months ago

Can you access the style file from the android phone's browser?

m0nac0 commented 8 months ago

Could this be related to a wrong system time on the android phone?

ivanesi commented 8 months ago

Today it works.