AnsweredAssumed Answered

AGSFeatureLayer crashing

Question asked by dave_mcd on Feb 21, 2013
Latest reply on Mar 26, 2013 by dave_mcd
I am receiving an exception shortly after adding a feature layer to the map with a particular layer definition. I have attached the definition JSON that fails and two others that work ok. We're running ArcGIS IOS runtime version 10.1.1 and using a ArcGIS 10.1 server.

I am using the following code to test the layer definitions on their own (i.e. with an empty feature set). 

AGSFeatureSet *empty = [[AGSFeatureSet alloc] init]; AGSFeatureLayer *fl = [[AGSFeatureLayer alloc] initWithLayerDefinitionJSON:featureLayerDefinition featureSet:empty]]; [[self mapView] addMapLayer:fl withName:@"test"];



This is the exception is being thrown:

2013-02-18 16:02:58.917 Development[7570:c07] -[NSNull ags_CGFloatValue]: unrecognized selector sent to instance 0x31f8678

2013-02-18 16:02:58.919 Development[7570:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull ags_CGFloatValue]: unrecognized selector sent to instance 0x31f8678'

*** First throw call stack:

(0x30c7012 0x2e0fe7e 0x31524bd 0x30b6bbc 0x30b694e 0x17daac 0x180857 0x17f543 0x180857 0x181455 0x16f7f2 0x16f537 0x16e6c6 0x13fd7c 0x13cfef 0x30bb1bd 0x30bb0d6 0x2e236b0 0x1cf8765 0x304af3f 0x304a96f 0x306d734 0x306cf44 0x306ce1b 0x47747e3 0x4774668 0x2132ffc 0x14a6d 0x2fe5 0x1)

libc++abi.dylib: terminate called throwing an exception


Dave

Attachments

Outcomes