RMMapView setFrame (or setBounds) crashes #126

Open
bkgoodman opened this Issue Jul 6, 2011 · 0 comments

Comments

Projects
None yet
1 participant

I am getting an unexplainable crash when trying to call setFrame (or setBounds) on an RMMapView.

I am doing this in response to an orientation change, going from portrait to landscape (or vica-versa) on an iPad and/or iPhone - i.e. my new Frame or Bounds is going from 320x480 to 480x320 or visa-versa - or from 768x1024 to 1024x768 or visa-versa.

I remembered having some problems in older versions of the framework when I had empty paths in a layer - so I am fairly certain I have removed any other path layers.

Any idea what may be causing this??

-BKG

2011-07-05 23:50:33.201 LakeWini[19750:207] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'
*** Call stack at first throw:
(
0 CoreFoundation 0x01551be9 exceptionPreprocess + 185
1 libobjc.A.dylib 0x013465c2 objc_exception_throw + 47
2 CoreFoundation 0x0150a628 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x0150a59a +[NSException raise:format:] + 58
4 QuartzCore 0x00ed296a _ZL18CALayerSetPositionP7CALayerRKN2CA4Vec2IdEEb + 177
5 QuartzCore 0x00ed28b5 -[CALayer setPosition:] + 42
6 QuartzCore 0x00ed27cc -[CALayer setFrame:] + 763
7 UIKit 0x00487307 -[UIView(Geometry) setFrame:] + 255
8 UIKit 0x0051b3aa -[UIImageView setFrame:] + 167
9 UIKit 0x00486f68 -[UIView(Geometry) resizeWithOldSuperviewSize:] + 385
10 UIKit 0x0048aedf -[UIView(Geometry) resizeSubviewsWithOldSize:] + 273
11 UIKit 0x004873f9 -[UIView(Geometry) setFrame:] + 497
12 LakeWini 0x000562ab -[RMMapView setFrame:] + 107
13 LakeWini 0x000092b7 -[LakeWiniViewController willAnimateRotationToInterfaceOrientation:duration:] + 828
14 UIKit 0x00500bac -[UIViewController window:willAnimateRotationToInterfaceOrientation:duration:] + 664
15 UIKit 0x004798e9 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 4347
16 UIKit 0x00473538 -[UIWindow _setRotatableViewOrientation:duration:force:] + 89
17 UIKit 0x00476643 -[UIWindow _updateInterfaceOrientationFromDeviceOrientation:] + 164
18 Foundation 0x001bb6c1 _nsnote_callback + 145
19 CoreFoundation 0x01529f99 __CFXNotificationPost_old + 745
20 CoreFoundation 0x014a933a _CFXNotificationPostNotification + 186
21 Foundation 0x001b1266 -[NSNotificationCenter postNotificationName:object:userInfo:] + 134
22 UIKit 0x00602d0a -[UIDevice setOrientation:animated:] + 228
23 UIKit 0x0045f7d4 -[UIApplication handleEvent:withNewEvent:] + 4127
24 UIKit 0x00457202 -[UIApplication sendEvent:] + 71
25 UIKit 0x0045c732 _UIApplicationHandleEvent + 7576
26 GraphicsServices 0x01be0a36 PurpleEventCallback + 1550
27 CoreFoundation 0x01533064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION
+ 52
28 CoreFoundation 0x014936f7 __CFRunLoopDoSource1 + 215
29 CoreFoundation 0x01490983 __CFRunLoopRun + 979
30 CoreFoundation 0x01490240 CFRunLoopRunSpecific + 208
31 CoreFoundation 0x01490161 CFRunLoopRunInMode + 97
32 GraphicsServices 0x01bdf268 GSEventRunModal + 217
33 GraphicsServices 0x01bdf32d GSEventRun + 115
34 UIKit 0x0046042e UIApplicationMain + 1160
35 LakeWini 0x00002364 main + 102
36 LakeWini 0x000022f5 start + 53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment