You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importReactfrom'react';import{MapView,RasterSource,RasterLayer,Camera,}from'@rnmapbox/maps';classBugReportExampleextendsReact.Component{render(){return(<MapViewstyle={{flex: 1}}><CameracenterCoordinate={[0,0]}zoomLevel={5}/><RasterSourcetileUrlTemplates={["any LOCAL ZXY path"]}tileSize={256}><RasterLayerminZoomLevel={3}maxZoomLevel={13}/></RasterSource></MapView>);}}
Observed behavior and steps to reproduce
Run the app as many times possible and pan to load the tiles
In very rare cases (3 per day in a production app with 5000 users), this stack trace will happen
The traces shows Mapbox running 82 threads of image loading.
Randomly, some thread crash, starting on this call: RNMBXImageQueueOperation.start (RNMBXImageQueue.swift:72)
and crashing on this call RCTImageFromLocalAssetURL (RCTUtils.m:864)
Those crashs are rare (2 per day on a production app with 5000 users) and is very possible it is a race condition.
Additional links and references
No response
The text was updated successfully, but these errors were encountered:
cristianob
changed the title
[Bug]: Random crashes on iOS, probably because of race condition
[Bug]: Random crashes on iOS when using local ZXY tiles
Dec 13, 2024
Mapbox Implementation
Mapbox
Mapbox Version
11.8.0
React Native Version
0.76.0
Platform
iOS
@rnmapbox/maps
version10.1.33
Standalone component to reproduce
Observed behavior and steps to reproduce
Expected behavior
App not crashing randomly
Notes / preliminary analysis
The traces shows Mapbox running 82 threads of image loading.
Randomly, some thread crash, starting on this call:
RNMBXImageQueueOperation.start (RNMBXImageQueue.swift:72)
and crashing on this call
RCTImageFromLocalAssetURL (RCTUtils.m:864)
Those crashs are rare (2 per day on a production app with 5000 users) and is very possible it is a race condition.
Additional links and references
No response
The text was updated successfully, but these errors were encountered: