-
Notifications
You must be signed in to change notification settings - Fork 509
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
terminating with uncaught exception of type jni::PendingJavaException #354
Comments
|
I add a marker to the map in the onStyleLoadedCallback method. I use a special style file from network and get the marker icon from the assets folder (). However, the error is not always reproduced.
|
Sounds like it could be related to the fact that we add the onStyleImageMissingListener only after invoking flutter's onMapReady callback here: https://github.com/tobrun/flutter-mapbox-gl/blob/576d28ec69a6ff11e9e7e7e8bdd10d500f13e91c/android/src/main/java/com/mapbox/mapboxgl/MapboxMapController.java#L281-L297 |
Does it help if I load the markers from the assets folder with the mapController.addImage method first? |
@GULERTOLGA It would definitely be helpful to know if that fixes the issue. |
@GULERTOLGA Have you been able to find out if manually adding the image before adding the marker solves the issue? |
i am not sure but i think this method solved the problem. i can no longer get error with the devices I have. I will release the new version of the application in a few days. I will review the Crashlytics reports and inform you. |
I sometimes encounter this error and the application closes. I do not know how to reproduce. I get feedback from customers that the app is suddenly closed while navigating the map.
Mapbox 0.7.0
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.4 19E287, locale en-TR)
• Flutter version 1.17.5 at /Users/tolgaguler/flutter
• Framework revision 8af6b2f038 (10 days ago), 2020-06-30 12:53:55 -0700
• Engine revision ee76268252
• Dart version 2.8.4
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/tolgaguler/Library/Android/sdk
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.8.4
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 46.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[!] IntelliJ IDEA Community Edition (version 2020.1.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[✓] VS Code (version 1.46.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.11.0
[✓] Connected device (2 available)
• Mi A3 • 53f8cafbc337 • android-arm64 • Android 10 (API 29)
• tolga.guler iPhone’u • 960b7e89314ea5dc0d5a52f7258defda22aabf7d • ios • iOS 13.3.1
The text was updated successfully, but these errors were encountered: