maplibre-react-native icon indicating copy to clipboard operation
maplibre-react-native copied to clipboard

Minimal Example Crashing

Open Craytor opened this issue 9 months ago • 1 comments

Steps to Trigger Behavior

  1. clone repo
  2. npm install
  3. cd ios && pod install
  4. cd ..
  5. npm run ios

Link to Minimal Reproducible Example

https://github.com/Craytor/maplibre-rn-test

Expected Behavior

A map should be displayed.

Actual Behavior

Without the inclusion of <MapLibreGL.Camera />, the app simply displays no content and the following logs are shown in the bundler: LOG Mapbox [fault] The attribution is not in the visible area of the mapview. Please check your position and offset settings {"filePath": "-[MGLMapView layoutSubviews]", "level": "fault", "line": 1080, "message": "The attribution is not in the visible area of the mapview. Please check your position and offset settings"} LOG Mapbox [fault] The compassView is not in the visible area of the mapview. Please check your position and offset settings {"filePath": "-[MGLMapView layoutSubviews]", "level": "fault", "line": 1084, "message": "The compassView is not in the visible area of the mapview. Please check your position and offset settings"}

With the inclusion of <MapLibreGL.Camera />, the app immediately crashes with the provided crash report attached below.

Version(s) affected

  • Platform: iOS
  • OS version: iOS 17.4
  • Device type: iPhone SE 3rd gen / iPhone 15 Pro
  • Emulator/ Simulator: yes
  • Development OS: M3 Max / 14.1.1 (23B2082)
  • maplibre-react-native: ^10.0.0-alpha.2
  • MapLibre GL version: https://github.com/maplibre/maplibre-gl-native-distribution @ 5.13.0
  • React Native Version: "0.74.1"

Additional context

Crash report: crashreport.txt

Craytor avatar May 05 '24 19:05 Craytor