Hi there,
An AGSGDBSyncTask crashes after it has downloaded all features but right before it enters the completion block. The stack trace right before the crash happens looks like this:
StackTrace: (
0 SOF-Land 0x00000001091eeece __33-[mainViewController viewDidLoad]_block_invoke + 94
1 SOF-Land 0x00000001093ec181 __67-[AGSGDBSyncTask generateGeodatabaseWithUtility:status:completion:]_block_invoke + 49
2 SOF-Land 0x000000010941fbab __56-[AGSResumableTaskJobUtility privateFetchResultWithUrl:]_block_invoke344 + 347
3 SOF-Land 0x000000010933c54e __40-[AGSRequestOperation kickoffConnection]_block_invoke + 222
4 libdispatch.dylib 0x000000010e4b5186 _dispatch_call_block_and_release + 12
5 libdispatch.dylib 0x000000010e4d4614 _dispatch_client_callout + 8
6 libdispatch.dylib 0x000000010e4bca1c _dispatch_main_queue_callback_4CF + 1664
7 CoreFoundation 0x000000010d8931f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
8 CoreFoundation 0x000000010d854dcb __CFRunLoopRun + 2043
9 CoreFoundation 0x000000010d854366 CFRunLoopRunSpecific + 470
10 GraphicsServices 0x000000011045ea3e GSEventRunModal + 161
11 UIKit 0x000000010bf0c900 UIApplicationMain + 1282
12 SOF-Land 0x00000001091e37bf main + 111
13 libdyld.dylib 0x000000010e508145 start + 1
14 ??? 0x0000000000000001 0x0 + 1
Any advice on this?
What version of ArcGIS Server is the feature service on?
Hi Divesh,
the service runs on ArcGIS Server v10.3. It is hosted within ArcGIS Online.
Some additional information, if I load data from this service: Sync/WildfireSync (FeatureServer) the completion-block can be reached and the runtime gdb is successfully created.
Also, if I try to load the data from my service with the code from the OfflineFeatureEditingSample, from the function "switchToLiveData" which copied in my application, the features are downloaded and displayed as live data in the map.
I can confirm what you're seeing is a bug.
It appears to have started happening with version 10.3.1 of on-premise, ArcGIS Server based feature services, and, more recently with the latest update to ArcGIS Online, also with hosted feature services. The issue is that the geodatabase generated from such services includes additional indexes which prevents them from being opened successfully in the SDK. We are looking into it and hope to provide an SDK update soon to resolve the issue.
EDIT : The Sync/Wildfire service works correctly because it is based on an 10.3 version of ArcGIS Server.