Welcome, Guest
Username Password: Remember me

iOS 4.2 + SCTextViewCell = exception
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: iOS 4.2 + SCTextViewCell = exception

iOS 4.2 + SCTextViewCell = exception 1 year, 5 months ago #1

After updating to the iOS 4.2 SDK, i receive the following exception in my app:

2010-11-29 22:03:54.942 Dommerklokke[19569:207] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [nan nan; 0 0]'


This is the line that causes the exception:
	SCTextViewCell *commentCell = [SCTextViewCell cellWithText: @"Comment"
withBoundObject: self.match
withPropertyName: @"comment"];


And attached is a stack trace..



Seems like a very strange bug.. I tried to substitute
[[SCTextView alloc] init]

with
[[SCTextView alloc] initWithFrame: CGRectMake(0,0,0,0)]

but that didn't help.
  • skyfex
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 1

Re: iOS 4.2 + SCTextViewCell = exception 1 year, 5 months ago #2

Hi Audun,

This have been fixed in our next release (beta just released here: www.sensiblecocoa.com/forum/announcement...0-beta-released.html). I will send you now the latest update (non-beta). Thanks!
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: iOS 4.2 + SCTextViewCell = exception 1 year, 5 months ago #3

Hi Tarek,


I will send you now the latest update (non-beta). Thanks!


Could I get a copy of that as well - this is causing problems for me too...

Cheers,

Mike.
  • mike
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0

Re: iOS 4.2 + SCTextViewCell = exception 1 year, 3 months ago #4

I'm facing similar problem for my iPad app. I'm stuck now with this error..Anybody has got beta working?

2011-02-12 08:29:16.245 iMedBill[15279:207] *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [nan nan; 0 0]'
*** Call stack at first throw:
(
0 CoreFoundation 0x00ff9be9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0114e5c2 objc_exception_throw + 47
2 CoreFoundation 0x00fb2628 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x00fb259a +[NSException raise:format:] + 58
4 QuartzCore 0x01eb13ee _ZL16CALayerSetBoundsP7CALayerRKN2CA4RectEb + 227
5 QuartzCore 0x01eb12b6 -[CALayer setBounds:] + 122
6 UIKit 0x00361645 -[UIView(Geometry) setBounds:] + 394
7 UIKit 0x00379322 -[UIScrollView setBounds:] + 5884
8 UIKit 0x0037aa6e -[UIScrollView setContentOffset:] + 477
9 iMedBill 0x0000cb19 -[SCTextView setContentOffset:] + 169
10 UIKit 0x00375ba4 -[UIScrollView(Static) _adjustContentOffsetIfNecessary] + 2841
11 UIKit 0x0037958e -[UIScrollView setFrame:] + 525
12 UIKit 0x00422a7b -[UITextView setFrame:] + 167
13 UIKit 0x0035c2bb UIViewCommonInitWithFrame + 805
14 UIKit 0x0035d063 -[UIView initWithFrame:] + 113
15 UIKit 0x0036bd56 -[UIScrollView initWithFrame:] + 79
16 UIKit 0x004215a6 -[UITextView initWithFrame:] + 78
17 UIKit 0x0035c306 -[UIView init] + 67
18 iMedBill 0x0000ce66 -[SCTextViewCell initWithStyle:reuseIdentifier:] + 304
19 iMedBill 0x000099bf -[SCTableViewCell initWithText:withBoundObject:withPropertyName:] + 53
20 iMedBill 0x0000d093 -[SCTextViewCell initWithText:withBoundObject:withTextViewTextPropertyName:] + 57
21 iMedBill 0x0000cc99 +[SCTextViewCell cellWithText:withBoundObject:withTextViewTextPropertyName:] + 101
22 iMedBill 0x00026cbe -[SCObjectSection getCellForPropertyWithDefinition:withUIElementDelegate:] + 530
23 iMedBill 0x000269bd -[SCObjectSection initWithHeaderTitle:withBoundObject:withClassDefinition:] + 703
24 iMedBill 0x0002c448 -[SCArrayOfObjectsSection buildDetailTableModel:forItem:] + 117
25 iMedBill 0x000296c6 -[SCArrayOfItemsSection didTapAddButtonItem] + 1141
26 iMedBill 0x0000340c -[RootViewController addButtonTapped] + 87
27 iMedBill 0x000035ab -[DetailViewController addButtonTapped] + 58
28 UIKit 0x0032ba6e -[UIApplication sendAction:to:from:forEvent:] + 119
29 UIKit 0x00539167 -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 156
30 UIKit 0x0032ba6e -[UIApplication sendAction:to:from:forEvent:] + 119
31 UIKit 0x003ba1b5 -[UIControl sendAction:to:forEvent:] + 67
32 UIKit 0x003bc647 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
33 UIKit 0x003bb1f4 -[UIControl touchesEnded:withEvent:] + 458
34 UIKit 0x003500d1 -[UIWindow _sendTouchesForEvent:] + 567
35 UIKit 0x0033137a -[UIApplication sendEvent:] + 447
36 UIKit 0x00336732 _UIApplicationHandleEvent + 7576
37 GraphicsServices 0x0192fa36 PurpleEventCallback + 1550
38 CoreFoundation 0x00fdb064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
39 CoreFoundation 0x00f3b6f7 __CFRunLoopDoSource1 + 215
40 CoreFoundation 0x00f38983 __CFRunLoopRun + 979
41 CoreFoundation 0x00f38240 CFRunLoopRunSpecific + 208
42 CoreFoundation 0x00f38161 CFRunLoopRunInMode + 97
43 GraphicsServices 0x0192e268 GSEventRunModal + 217
44 GraphicsServices 0x0192e32d GSEventRun + 115
45 UIKit 0x0033a42e UIApplicationMain + 1160
46 iMedBill 0x00002494 main + 102
47 iMedBill 0x00002425 start + 53
)
terminate called after throwing an instance of 'NSException'
  • rajdn
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.95 seconds