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.

Crash on Android in GeoJsonSource finalize #8200

@quicklywilliam

Description

@quicklywilliam

I'm seeing a timeout exception on collecting a GeoJsonSource object:

Fatal Exception: java.util.concurrent.TimeoutException: com.mapbox.mapboxsdk.style.sources.GeoJsonSource.finalize() timed out after 10 seconds
       at com.mapbox.mapboxsdk.style.sources.GeoJsonSource.finalize(GeoJsonSource.java)
       at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:191)
       at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:174)
       at java.lang.Thread.run(Thread.java:818)

Here's how we are instantiating the only GeoJsonSource we add to the map:

Feature tripFeature = Feature.fromGeometry(LineString.fromCoordinates(points));
GeoJsonSource tripLineSource = new GeoJsonSource(tripFeatureSourceIdentifier, FeatureCollection.fromFeatures(new Feature[] { tripFeature }));
map.addSource(tripLineSource);

This is on the 4.2.2 release. Does not reproduce every time, but we're getting multiple reports of this on our production app release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AndroidMapbox Maps SDK for Android

    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