nitaliano / react-native-mapbox-gl

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

Getting terminating with uncaught exception of type std::domain_error after uprgade to Mapbox 8.1 #1703

Closed lfaz closed 3 years ago

lfaz commented 3 years ago

Device: iPhone 11 ios 14 Mapbox version: 8.1

<MapboxGL.MapView
             styleURL={getMapStyleUrl('fi', {})}
             attributionEnabled
             attributionPosition={{top: 10, left: 10}}
             logoEnabled
             compassEnabled={false}
             rotateEnabled={false}
                >
                    <MapboxGL.Camera
                        defaultSettings={{
                            zoomLevel: DEFAULT_ZOOM,
                            centerCoordinate: DEFAULT_CENTER,
                        }}
                        // animationDuration={DEFAULT_ANIMATION_DURATION}
                        animationMode="flyTo"
                    />
                    {/* {children} */}
</MapboxGL.MapView>

Outcome: App crash

Error Log: Getting terminating with uncaught exception of type std::domain_error

Added MGLMapboxMetricsEnabledSettingShownInApp=YES into Info.plist

Altho 8.0 works all good!

lfaz commented 3 years ago

The above seemed to be cache issue, so probably not valid anymore!