mapbox / DEPRECATED-mapbox-ios-sdk

REPLACED – use https://www.mapbox.com/ios-sdk instead
https://github.com/mapbox/mapbox-gl-native
Other
323 stars 8 forks source link

Crash in case create RMMapView manually. #642

Open akantsevoi opened 9 years ago

akantsevoi commented 9 years ago

I call initWithFrame:andTilesource:

Crashed on

_mapScrollView.zoomScale = exp2f([self zoom]);

in RMMapView.m

Stack:

0   ???                                 0x0000000102a8cd5c 0x0 + 4339584348,
1   ICV                                 0x00000001000cc3b0 main + 0,
2   UIKit                               0x0000000189885724 <redacted> + 44,
3   UIKit                               0x0000000189849f44 <redacted> + 140,
4   QuartzCore                          0x00000001891a4e88 <redacted> + 104,
5   QuartzCore                          0x000000018919a86c <redacted> + 100,
6   QuartzCore                          0x000000018919a6d8 <redacted> + 176,
7   QuartzCore                          0x000000018919d6a0 <redacted> + 156,
8   QuartzCore                          0x000000018919e3b0 <redacted> + 84,
9   UIKit                               0x0000000189864758 <redacted> + 168,
10  UIKit                               0x00000001899ebfec <redacted> + 812,
11  UIKit                               0x00000001899ebb48 <redacted> + 660,
12  ICV                                 0x0000000100282b18 -[RMMapView createMapView] + 3288,
13  ICV                                 0x0000000100289a58 -[RMMapView addTileSource:atIndex:] + 1064,
14  ICV                                 0x0000000100289614 -[RMMapView addTileSource:] + 76,
15  ICV                                 0x0000000100289298 -[RMMapView setTileSource:] + 124,
16  ICV                                 0x000000010027a06c -[RMMapView performInitializationWithTilesource:centerCoordinate:zoomLevel:maxZoomLevel:minZoomLevel:backgroundImage:] + 3112,
17  ICV                                 0x000000010027abcc -[RMMapView initWithFrame:andTilesource:centerCoordinate:zoomLevel:maxZoomLevel:minZoomLevel:backgroundImage:] + 404,
18  ICV                                 0x000000010027a9e8 -[RMMapView initWithFrame:andTilesource:] + 200,
19  ICV                                 0x0000000100170ac0 __41-[ICVMapViewPlaceholder startLoadMapView]_block_invoke + 388,
20  libdispatch.dylib                   0x0000000100668e30 _dispatch_call_block_and_release + 24,
21  libdispatch.dylib                   0x0000000100668df0 _dispatch_client_callout + 16,
22  libdispatch.dylib                   0x00000001006759a0 _dispatch_root_queue_drain + 1280,
23  libdispatch.dylib                   0x0000000100676f18 _dispatch_worker_thread3 + 132,
24  libsystem_pthread.dylib             0x0000000195fc92e4 _pthread_wqthread + 816,
25  libsystem_pthread.dylib             0x0000000195fc8fa8 start_wqthread + 4