nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 699 forks source link

iOS crash with MultilineString with geometries #1679

Closed ansarikhurshid786 closed 4 years ago

ansarikhurshid786 commented 4 years ago

Drawing line in map using data multinestring data from web service. Getting data like :

{
  "type": "FeatureCollection",
  "totalFeatures": 1,
  "features": [
    {
      "type": "Feature",
      "id": "streets.fid--54d835f0_170f233714b_-42f7",
      "geometry": {
        "type": "GeometryCollection",
        "geometries": [
          {
            "type": "MultiLineString",
            "coordinates": [
              [
                [54.37577522, 24.46179556],
                [54.37567198,  24.46167702],
                [54.37560638, 24.46162656],
                [54.375445,24.46148218]
              ],
              [
                [54.37559877,24.46141407],
                [54.37560356,24.46141777],
                [54.37565904,24.46146109]
             ]
        ]
    }
}]}; 

Data is something like this working fine in android and crashing in ios.

anyone facing same issue?

cc: @nitaliano

ansarikhurshid786 commented 4 years ago

@nitaliano please check my issue. i am waiting for your response.

jaltin commented 4 years ago

This repo is deprecated since a long time and is not getting updated any more, as is outlined in the readme of this repository.

Please use the new one located at https://github.com/react-native-mapbox-gl/maps.

ansarikhurshid786 commented 4 years ago

@jaltin Thanks for response. I am using react native 0.59.10 and react-native-mapbox-gl/maps is required minimum 0.60. so can't use that library.

Can you please check my issue and some workaround.

iOS crashing when i am loading GeometryCollection.

ansarikhurshid786 commented 4 years ago

@jaltin I have updated to https://github.com/react-native-mapbox-gl/maps. Now I am getting same issue. Now i am getting issue: libc++abi.dylib: terminating with uncaught exception of type mapbox::util::bad_variant_access

do you have idea. how to resolve it.

jaltin commented 4 years ago

@ansarikhurshid786 great to hear that you updated to the new repo.

I'm afraid I can't help you.

I would suggest that you create a new issue in the other repo and make sure to follow the submission instructions there and include all the relevant info about version used, a reproducible code example etc. Hopefully someone else will be able to help you

ansarikhurshid786 commented 4 years ago

@jaltin thanks for your response. I already created issue in that repo got solution.