aconnolly

iPhone 5 and iOS 6 and SDK 2.3.2 app crash on zoom out

Discussion created by aconnolly on Sep 25, 2012
Latest reply on Oct 2, 2012 by aconnolly
Hi,

I'm trying to rebuild my app with iOS 6 and the latest SDK (2.3.2) however after distributing a test build a user reported seeing a crash on his iPhone 5 while zooming out. The app works fine on an iPhone 4 running iOS 6, however the iPhone 5 hardware is still causing some issues. The user simply zoomed in on a map that has a graphics layer and a few base map layers. It appears as though there is something with the AGS objects that might be causing the problem. Here is the stack trace for one of the crashes:

0 crime map 0x00446086 testflight_backtrace + 238
1 crime map 0x00446d70 TFSignalHandler + 264
2 libsystem_c.dylib 0x3c167d3a _sigtramp + 42
3 libsystem_c.dylib 0x3c15dfb6 pthread_kill + 58
4 libsystem_c.dylib 0x3c19a36a abort + 94
5 libsystem_c.dylib 0x3c13312c free + 360
6 libobjc.A.dylib 0x37bc13b8 object_dispose + 20
7 crime map 0x00101878 -[AGSGeometry dealloc] + 80
8 crime map 0x000fe014 -[AGSEnvelope dealloc] + 80
9 libobjc.A.dylib 0x37bcb0fe objc_setProperty + 18
10 crime map 0x00113668 -[AGSGraphicsLayer setCurrentEnvelope:] + 76
11 crime map 0x00112a7c -[AGSGraphicsLayer exportMapImage:] + 92
12 crime map 0x0016c2cc -[AGSDynamicLayerView draw:layerUpdateType:] + 2076
13 crime map 0x0016baa8 -[AGSDynamicLayerView drawDataChanged] + 168
14 Foundation 0x37db3cb0 <redacted> + 460
15 CoreFoundation 0x3b99b8f6 <redacted> + 14
16 CoreFoundation 0x3b99b15c <redacted> + 212
17 CoreFoundation 0x3b999f2e <redacted> + 646
18 CoreFoundation 0x3b90d23c CFRunLoopRunSpecific + 356
19 CoreFoundation 0x3b90d0c8 CFRunLoopRunInMode + 104
20 Foundation 0x37d06dd2 <redacted> + 254
21 crime map 0x0014f82c -[AGSWorkerThreadUnit workerThreadMainRoutine] + 252
22 Foundation 0x37db3a40 <redacted> + 972
23 libsystem_c.dylib 0x3c1400e0 <redacted> + 308
24 libsystem_c.dylib 0x3c13ffa7 thread_start + 7

Any ideas? I can share some code if that would be helpful.

Also, how do ensure that my project is running with the latest SDK? I've uninstalled v2.3 via the instructions and installed the latest version but do I have to do anything else (i.e. remove / re-add resources to my Xcode project) to ensure that my users are running the latest version of the SDK?

Thanks,
- Aaron

Outcomes