Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] High delay of the MapLibreLayer on Android #54

Open
josxha opened this issue Nov 5, 2024 · 0 comments
Open

[BUG] High delay of the MapLibreLayer on Android #54

josxha opened this issue Nov 5, 2024 · 0 comments
Labels
bug Something isn't working flutter_map_maplibre

Comments

@josxha
Copy link
Owner

josxha commented Nov 5, 2024

Package

flutter_map_maplibre

Bug Description

The MapLibreLayer currently on Android a high delay and sometimes does not completely catch up.
There are exceptions in the console.

Steps to Reproduce

  1. Launch the example app on android
  2. Open the flutter_map_maplibre example page
  3. Move the camera around

Expected Results

No or a smaller delay and no exceptions.

Actual Results

E/flutter (26853): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Bad state: Use after release error
E/flutter (26853): #0      JReference.pointer (package:jni/src/jreference.dart:56:21)
E/flutter (26853): #1      MapLibreMap.moveCamera (package:maplibre/src/native/jni/org/maplibre/android/maps/MapLibreMap.dart:5280:27)
E/flutter (26853): #2      MapLibreMapStateJni.moveCamera.<anonymous closure> (package:maplibre/src/native/widget_state_jni.dart:221:14)
E/flutter (26853): #3      _platformIsolateMain.<anonymous closure> (dart:ui/platform_isolate.dart:142:51)
E/flutter (26853): #4      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
E/flutter (26853): 

Code Sample

see example app

Platforms

android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flutter_map_maplibre
Projects
None yet
Development

No branches or pull requests

1 participant