rnmapbox / maps

A Mapbox react native module for creating custom maps
MIT License
2.27k stars 849 forks source link

[Bug]: MapboxLibraryLoader.load java.lang.UnsatisfiedLinkError - couldn't find "libmapbox-common.so" #3270

Closed rizki-tabist closed 11 months ago

rizki-tabist commented 11 months ago

Mapbox Implementation

Mapbox

Mapbox Version

default

Platform

Android

@rnmapbox/maps version

^10.0.15

Standalone component to reproduce

import React from 'react';
import {
  MapView,
  ShapeSource,
  LineLayer,
  Camera,
} from '@rnmapbox/maps';

const aLine = {
  type: 'LineString',
  coordinates: [
    [-74.00597, 40.71427],
    [-74.00697, 40.71527],
  ],
};

class BugReportExample extends React.Component {
  render() {
    return (
      <MapView style={{flex: 1}}>
        <Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
        <ShapeSource id="idStreetLayer" shape={aLine}>
          <LineLayer id="idStreetLayer" />
        </ShapeSource>
      </MapView>
    );
  }
}

Observed behavior and steps to reproduce

Sporadic crashes were reported via crashlytics when loading Mapbox libraries.

Screenshot 2023-12-14 at 09 04 03

It seems the issue comes from Mapbox Map Android itself

Expected behavior

No crash

Notes / preliminary analysis

No response

Additional links and references

Sporadic crashes when Mapbox library is loaded: java.lang.UnsatisfiedLinkError at com.mapbox.common.loader.MapboxLibraryLoader.load #1109

mfazekas commented 11 months ago

Thanks much for the info. The issue is not really actionable for us, hopefully it'll be fixed in upstream mapbox-maps-android