gujjula / core-plot

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

CPTXYAxis viewPointForOrthogonalCoordinateDecimal sigabrt #327

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Newly installed core-plot - example code builds/runs fine under simulator.  Cut 
and pasted example code into new xCode 3.2.5 Project, but crashes on CPTXYAxis 
viewPointForOrthogonalCoordinateDecimal.

*****

2011-08-31 09:33:09.295 Thecus[17318:207] -[NSDecimalNumber cgFloatValue]: 
unrecognized selector sent to instance 0x592d820
2011-08-31 09:33:09.298 Thecus[17318:207] *** Terminating app due to uncaught 
exception 'NSInvalidArgumentException', reason: '-[NSDecimalNumber 
cgFloatValue]: unrecognized selector sent to instance 0x592d820'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x011ac5a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x01300313 objc_exception_throw + 44
    2   CoreFoundation                      0x011ae0bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x0111d966 ___forwarding___ + 966
    4   CoreFoundation                      0x0111d522 _CF_forwarding_prep_0 + 50
    5   Thecus                              0x0003df3c -[CPTXYPlotSpace viewCoordinateForViewLength:linearPlotRange:plotCoordinateValue:] + 572
    6   Thecus                              0x0003e462 -[CPTXYPlotSpace plotAreaViewPointForPlotPoint:] + 450
    7   Thecus                              0x0004fa74 -[CPTXYAxis viewPointForOrthogonalCoordinateDecimal:axisCoordinateDecimal:] + 292
    8   Thecus                              0x000534b2 -[CPTXYAxis updateConstraints] + 242
    9   Thecus                              0x000537c9 -[CPTXYAxis setOrthogonalCoordinateDecimal:] + 137
    10  Thecus                              0x00002c2f -[MainViewController viewDidLoad] + 1337
    11  UIKit                               0x00412089 -[UIViewController view] + 179
    12  Thecus                              0x00001fbe -[ThecusAppDelegate application:didFinishLaunchingWithOptions:] + 79
    13  UIKit                               0x00362c89 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1163
    14  UIKit                               0x00364d88 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 439
    15  UIKit                               0x0036f617 -[UIApplication handleEvent:withNewEvent:] + 1533
    16  UIKit                               0x00367abf -[UIApplication sendEvent:] + 71
    17  UIKit                               0x0036cf2e _UIApplicationHandleEvent + 7576
    18  GraphicsServices                    0x01b04992 PurpleEventCallback + 1550
    19  CoreFoundation                      0x0118d944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
    20  CoreFoundation                      0x010edcf7 __CFRunLoopDoSource1 + 215
    21  CoreFoundation                      0x010eaf83 __CFRunLoopRun + 979
    22  CoreFoundation                      0x010ea840 CFRunLoopRunSpecific + 208
    23  CoreFoundation                      0x010ea761 CFRunLoopRunInMode + 97
    24  UIKit                               0x003647d2 -[UIApplication _run] + 623
    25  UIKit                               0x00370c93 UIApplicationMain + 1160
    26  Thecus                              0x00001ef4 main + 102
    27  Thecus                              0x00001e85 start + 53
)
terminate called after throwing an instance of 'NSException'
Program received signal:  “SIGABRT”.

Original issue reported on code.google.com by shasteso...@gmail.com on 31 Aug 2011 at 4:37

GoogleCodeExporter commented 9 years ago
Add the -ObjC and -all_load linker flags to your project.

Original comment by eskr...@mac.com on 4 Sep 2011 at 12:43