piaoyongren / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

CPTestApp for iPad crashes in simulator iOS 4.2 #233

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The CPTestApp-iPad is crashing at launch on the iOS 4.2 simulator.
Here is what I get:

CPTestApp-iPad[9109:207] *** Terminating app due to uncaught exception
'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan
nan]'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x00fa6be9
__exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x010fb5c2
objc_exception_throw + 47
    2   CoreFoundation                      0x00f5f628 +[NSException
raise:format:arguments:] + 136
    3   CoreFoundation                      0x00f5f59a +[NSException
raise:format:] + 58
    4   QuartzCore                          0x00d4096a
_ZL18CALayerSetPositionP7CALayerRKN2CA4Vec2IdEEb + 177
    5   QuartzCore                          0x00d408b5 -[CALayer
setPosition:] + 42
    6   CPTestApp-iPad                      0x0001f382 -[CPLayer
setPosition:] + 68
    7   CPTestApp-iPad                      0x0003bead -
[CPPlotSpaceAnnotation positionContentLayer] + 1032
    8   CoreFoundation                      0x00f1d2cf -[NSArray
makeObjectsPerformSelector:] + 239
    9   CPTestApp-iPad                      0x0003a8df -
[CPAnnotationHostLayer layoutSublayers] + 100
    10  CPTestApp-iPad                      0x00007524 -[CPPlot
layoutSublayers] + 72
    11  QuartzCore                          0x00d4517c
CALayerLayoutIfNeeded + 220
    12  QuartzCore                          0x00d3e37c
_ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
    13  QuartzCore                          0x00d3e0d0
_ZN2CA11Transaction6commitEv + 292
    14  UIKit                               0x0035519f -[UIApplication
_reportAppLaunchFinished] + 39
    15  UIKit                               0x00355659 -[UIApplication
_runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:]
+ 690
    16  UIKit                               0x0035fdb2 -[UIApplication
handleEvent:withNewEvent:] + 1533
    17  UIKit                               0x00358202 -[UIApplication
sendEvent:] + 71
    18  UIKit                               0x0035d732
_UIApplicationHandleEvent + 7576
    19  GraphicsServices                    0x018dca36
PurpleEventCallback + 1550
    20  CoreFoundation                      0x00f88064
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
    21  CoreFoundation                      0x00ee86f7
__CFRunLoopDoSource1 + 215
    22  CoreFoundation                      0x00ee5983 __CFRunLoopRun +
979
    23  CoreFoundation                      0x00ee5240
CFRunLoopRunSpecific + 208
    24  CoreFoundation                      0x00ee5161 CFRunLoopRunInMode
+ 97
    25  UIKit                               0x00354fa8 -[UIApplication
_run] + 636
    26  UIKit                               0x0036142e UIApplicationMain
+ 1160
    27  CPTestApp-iPad                      0x000020b9 main + 121
    28  CPTestApp-iPad                      0x00001ff5 start + 53
)
terminate called after throwing an instance of 'NSException'

A NaN is being returned by the cache when asking for a double value in the 
CPPieChart when positioning labels.

Original issue reported on code.google.com by drewmcco...@mac.com on 14 Dec 2010 at 7:07

GoogleCodeExporter commented 8 years ago
There's a NAN in the data to test the missing data code. From the stack trace, 
it looks like Core Plot made a label for the missing point and crashed when it 
tried to position the label.

Eric 

Original comment by eskr...@mac.com on 15 Dec 2010 at 1:42

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 1a9dad56b5.

Original comment by eskr...@mac.com on 17 Dec 2010 at 2:01

GoogleCodeExporter commented 8 years ago
I'm using XCode 4.0.1, and when I run the CPTestApp for iPad on iOS 4.2 
Simulator, I still get this error. I have made no changes to the project.

Original comment by umai...@gmail.com on 15 Apr 2011 at 4:34

GoogleCodeExporter commented 8 years ago
Never mind. I am using version 0.2.2 (the latest downloadable), and apparently 
this change was made to the trunk. I'll try to sync the source changes directly.

Original comment by umai...@gmail.com on 15 Apr 2011 at 4:41