Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[Android] Invalid LatLng bounds in OfflineRegion causes JNI failure #8514

@tikimcfee

Description

@tikimcfee

Platform: Android
Mapbox SDK version: 4.2.2
Device: Nexus 4, Android 5.1.1

Hey there guys. This is a big one that I've just come across in 4.2.2. Unfortunately, all I have is a stack trace for you, and I can't test (or really reproduce this) on to 5.0.0 to try out because of #8497 .

From what I can tell, this was the flow:

  1. Fired up an offline region to download with a specific style (one of our own)
  2. Started bouncing around our app to test something map related (just display a map in this case)
  3. When it came time to show the map, the error: "failed to load style (timeout)" came up, and the callback for 'onMapReady' never hit.
  4. Without the mapboxMap from onMapReady, one of my features crashed.
  5. On loading up the app again and trying to figure out why I didn't have the mapboxMap instance, the app crashed a few seconds later (while trying to download an offline region) in the JNI stack.

The stack trace is here: https://gist.github.com/tikimcfee/c2da09cc0ffa7d7866a56bd28887a5d1

A little worried about this one, as we use offline regions pretty extensively and need to understand how this might affect our launch of our new feature set. Any help is greatly appreciated!

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions