cancel
Showing results for 
Search instead for 
Did you mean: 

Agentry crashes on integration with ESRI GIS

Former Member
0 Kudos

Hello Experts,

We are trying to integrate ESRI GIS with SAP Work Manager. on IOS We have followed all the steps mentioned in various blogs and are able to see the map and assets on Windows platform however, when we try to check on Ipad by navigating to location tab; the app simply crashes.

Would greatly appreciate help on this.

Thanks,

Alok.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Bill,

We are facing same issue on simulator also. I don't suppose we have missed any steps on the way.

Agentry version: 70.12.1.1

ArcGIS version: AGSRuntimeSDKiOSv10.2.3

Do you see anything incompatible here. Also attached simulator log for reference.

2016-07-06 13:11:20.031 SmpEsriIntegration[9123:429610] Starting Agentry from the SAP Mobile Platform Agentry Client Framework ...

2016-07-06 13:11:20.049 SmpEsriIntegration[9123:429610] Agentry Client - 70.12.1.1

2016-07-06 13:11:35.341 SmpEsriIntegration[9123:429610] [group: com.sap.mobile.maf.ui.ios] [artifact: MAFUIComponents] [version: 1.211.0] [buildTime: 2016-01-26 01:51] [gitCommit: 02d3dce2788c2f42c8f1b52edd73389989b7a890] [gitBranch: origin/fa/rel-1.211]

2016-07-06 13:11:35.844 SmpEsriIntegration[9123:429610] _BSMachError: (os/kern) invalid capability (20)

2016-07-06 13:11:35.845 SmpEsriIntegration[9123:429610] _BSMachError: (os/kern) invalid name (15)

2016-07-06 13:11:39.867 SmpEsriIntegration[9123:429610] Error using client ID <enter client id>: ClientID is invalid

2016-07-06 13:11:39.868 SmpEsriIntegration[9123:429835] collection: WorkOrders

2016-07-06 13:11:39.869 SmpEsriIntegration[9123:429610] Could not load the "esri.png" image referenced from a nib in the bundle with identifier "com.Company.ProtoType"

2016-07-06 13:11:39.880 SmpEsriIntegration[9123:429835] Collection: Equipment, Adding lat: 38.823667, lon: -77.020296, wkid:4326, tag: Equipment/Geometry, ci: 3, sub-ci: 0, attr: {

    Category = M;

    DETAIL = "ID: 2500210435\nCategory : M";

    Description = "";

    ID = 2500210435;

    TITLE = "";

}

2016-07-06 13:11:39.883 SmpEsriIntegration[9123:429835] Collection: WorkOrders, Adding lat: 38.823667, lon: -77.020296, wkid:4326, tag: WorkOrders/Geometry, ci: 3, sub-ci: -1, attr: {

    DETAIL = "Work Order: 1000000283\nDue : 07/05/2016";

    Description = "Test Work Order";

    Due = "07/05/2016";

    TITLE = "Test Work Order";

    "Work Order" = 1000000283;

}

2016-07-06 13:11:39.903 SmpEsriIntegration[9123:429835] collection: Notifications

2016-07-06 13:11:39.912 SmpEsriIntegration[9123:429835] collection: CATSRecords

2016-07-06 13:11:39.912 SmpEsriIntegration[9123:429835] collection: CATSHeaders

2016-07-06 13:11:39.913 SmpEsriIntegration[9123:429835] collection: DummyCollection

2016-07-06 13:11:39.913 SmpEsriIntegration[9123:429835] collection: MainMenuItems

2016-07-06 13:11:39.914 SmpEsriIntegration[9123:429835] collection: DocumentLinks

2016-07-06 13:11:39.914 SmpEsriIntegration[9123:429835] collection: DummyFetchObjects

2016-07-06 13:11:39.914 SmpEsriIntegration[9123:429835] collection: Settings

2016-07-06 13:11:39.914 SmpEsriIntegration[9123:429835] collection: EquipmentWorkList

2016-07-06 13:11:39.915 SmpEsriIntegration[9123:429835] collection: EquipmentSearchResults

2016-07-06 13:11:39.915 SmpEsriIntegration[9123:429835] collection: FuncLocSearchResults

2016-07-06 13:11:39.915 SmpEsriIntegration[9123:429835] collection: FuncLocWorkList

2016-07-06 13:11:39.916 SmpEsriIntegration[9123:429835] collection: SubEquipmentSearchResults

2016-07-06 13:11:39.916 SmpEsriIntegration[9123:429835] collection: LocalObjectEquipments

2016-07-06 13:11:39.916 SmpEsriIntegration[9123:429835] collection: LocalObjectFunctionalLocations

2016-07-06 13:11:39.944 SmpEsriIntegration[9123:429610] -[EsriMapViewController viewDidLoad] loading

2016-07-06 13:11:39.972 SmpEsriIntegration[9123:429610] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSCFString stringByReplacingOccurrencesOfString:withString:options:range:]: nil argument'

*** First throw call stack:

(

         0   CoreFoundation                      0x06e30494 __exceptionPreprocess + 180

         1   libobjc.A.dylib                     0x068eae02 objc_exception_throw + 50

         2   CoreFoundation                      0x06e303bd +[NSException raise:format:] + 141

         3   Foundation                          0x03dc4a43 -[NSString stringByReplacingOccurrencesOfString:withString:options:range:] + 101

         4   Foundation                          0x03dc49d3 -[NSString stringByReplacingOccurrencesOfString:withString:] + 88

         5   SmpEsriIntegration                  0x00e0036b -[AgentryBaseDataHelper textValueForKey:] + 411

         6   SmpEsriIntegration                  0x00db8cda -[EsriMapViewController viewDidLoad] + 1498

         7   UIKit                               0x043a0b72 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 44

         8   UIKit                               0x043a5692 -[UIViewController loadViewIfRequired] + 1384

         9   UIKit                               0x043a5ab1 -[UIViewController view] + 35

         10  SmpEsriIntegration                  0x00dbf359 -[EsriMapViewController setFrame:] + 57

         11  SmpEsriIntegration                  0x00da08d6 -[BaseLocationCollectionAdapter viewForFrame:] + 134

         12  SmpEsriIntegration                  0x0129f386 -[AGExtensionWidget loadView] + 172

         13  UIKit                               0x043a51c4 -[UIViewController loadViewIfRequired] + 154

         14  UIKit                               0x043a5ab1 -[UIViewController view] + 35

         15  SmpEsriIntegration                  0x0128989c -[AGWidgetLayoutViewController addWidget:] + 140

         16  SmpEsriIntegration                  0x011f8f0a _ZNK19IphoneWidgetFactory34setupWidgetAndListSelectionControlEPU41objcproto30AGListSelectionControlObserver8AGWidgetRK3RCPI18AgentryListControlE + 46

         17  SmpEsriIntegration                  0x011f994f _ZNK19IphoneWidgetFactory20createListViewWidgetERK3RCPI18AgentryListControlE + 123

         18  SmpEsriIntegration                  0x00fb819e _ZN17ControlWithWidgetI32AgentryPropertyColumnListControlE12createWidgetERK22IPlatformWidgetFactory + 60

         19  SmpEsriIntegration                  0x00fbc5c3 _ZN19AgentryDetailScreen16createControlsUIEv + 713

         20  SmpEsriIntegration                  0x01282f55 -[ObjCDetailScreen createWidgets] + 68

         21  SmpEsriIntegration                  0x0120c223 -[AGBaseScreenViewController loadView] + 2877

         22  UIKit                               0x043a51c4 -[UIViewController loadViewIfRequired] + 154

         23  UIKit                               0x043a5ab1 -[UIViewController view] + 35

         24  SmpEsriIntegration                  0x0128ef53 -[AGScreenSelectorScreenSetViewController setActiveScreenViewController:] + 56

         25  SmpEsriIntegration                  0x0128090f _ZN23IphoneScreenSetObserver14activateScreenE3RCPI13AgentryScreenE + 71

         26  SmpEsriIntegration                  0x01007c49 _ZN15ClientScreenSet14activateScreenE3RCPI13AgentryScreenE + 141

         27  SmpEsriIntegration                  0x010089e9 _ZN15ClientScreenSet39determineAndActivateScreenToBeDisplayedEv + 273

         28  SmpEsriIntegration                  0x01285479 -[ObjCScreenSet viewDidLoad] + 65

         29  SmpEsriIntegration                  0x0128ee75 -[AGScreenSelectorScreenSetViewController viewDidLoad] + 99

         30  SmpEsriIntegration                  0x01287d6e -[AGTileScreenSetViewController viewDidLoad] + 50

         31  UIKit                               0x043a0b72 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 44

         32  UIKit                               0x043a5692 -[UIViewController loadViewIfRequired] + 1384

         33  UIKit                               0x043a5ab1 -[UIViewController view] + 35

         34  SmpEsriIntegration                  0x01287023 -[AGTileScreenSetWidget loadScreenSetUI] + 449

         35  SmpEsriIntegration                  0x01286909 -[AGTileScreenSetWidget loadView] + 69

         36  UIKit                               0x043a51c4 -[UIViewController loadViewIfRequired] + 154

         37  UIKit                               0x043a5ab1 -[UIViewController view] + 35

         38  SmpEsriIntegration                  0x0128989c -[AGWidgetLayoutViewController addWidget:] + 140

         39  SmpEsriIntegration                  0x011f8d46 _ZNK19IphoneWidgetFactory21setupWidgetAndControlEP8AGWidgetRK3RCPI14AgentryControlE + 46

         40  SmpEsriIntegration                  0x011fbc88 _ZNK19IphoneWidgetFactory25createTileScreenSetWidgetERK3RCPI27AgentryTileScreenSetControlE + 178

         41  SmpEsriIntegration                  0x00fb8280 _ZN17ControlWithWidgetI27AgentryTileScreenSetControlE12createWidgetERK22IPlatformWidgetFactory + 30

         42  SmpEsriIntegration                  0x00fbc5c3 _ZN19AgentryDetailScreen16createControlsUIEv + 713

         43  SmpEsriIntegration                  0x01282f55 -[ObjCDetailScreen createWidgets] + 68

         44  SmpEsriIntegration                  0x0120c223 -[AGBaseScreenViewController loadView] + 2877

         45  UIKit                               0x043a51c4 -[UIViewController loadViewIfRequired] + 154

         46  UIKit                               0x043a5ab1 -[UIViewController view] + 35

         47  SmpEsriIntegration                  0x0128ef53 -[AGScreenSelectorScreenSetViewController setActiveScreenViewController:] + 56

         48  SmpEsriIntegration                  0x01219e2a -[AGTabbedScreenSetViewController screenSelectorBar:didSelectScreen:] + 230

         49  SmpEsriIntegration                  0x0128e65c -[AGScreenSelectorTabBar tabBar:didSelectItem:] + 101

         50  UIKit                               0x04631f1f -[UITabBar _sendAction:withEvent:] + 345

         51  libobjc.A.dylib                     0x068ff0b5 -[NSObject performSelector:withObject:withObject:] + 84

         52  UIKit                               0x041d6e38 -[UIApplication sendAction:to:from:forEvent:] + 118

         53  UIKit                               0x041d6db7 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 64

         54  UIKit                               0x0437af3b -[UIControl sendAction:to:forEvent:] + 79

         55  UIKit                               0x0437b2d4 -[UIControl _sendActionsForEvents:withEvent:] + 433

         56  UIKit                               0x0437af7b -[UIControl sendActionsForControlEvents:] + 48

         57  UIKit                               0x04637dc3 -[UITabBar(Static) _buttonUp:] + 123

         58  libobjc.A.dylib                     0x068ff0b5 -[NSObject performSelector:withObject:withObject:] + 84

         59  UIKit                               0x041d6e38 -[UIApplication sendAction:to:from:forEvent:] + 118

         60  UIKit                               0x041d6db7 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 64

         61  UIKit                               0x0437af3b -[UIControl sendAction:to:forEvent:] + 79

         62  UIKit                               0x0437b2d4 -[UIControl _sendActionsForEvents:withEvent:] + 433

         63  UIKit                               0x0437a2c1 -[UIControl touchesEnded:withEvent:] + 714

         64  UIKit                               0x0425752e -[UIWindow _sendTouchesForEvent:] + 1095

         65  UIKit                               0x042585cc -[UIWindow sendEvent:] + 1159

         66  UIKit                               0x041f9be8 -[UIApplication sendEvent:] + 266

         67  SmpEsriIntegration                  0x012b1b16 -[AGApplication sendEvent:] + 98

         68  UIKit                               0x041ce769 _UIApplicationHandleEventQueue + 7795

         69  CoreFoundation                      0x06d42e5f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15

         70  CoreFoundation                      0x06d38aeb __CFRunLoopDoSources0 + 523

         71  CoreFoundation                      0x06d37f08 __CFRunLoopRun + 1032

         72  CoreFoundation                      0x06d37846 CFRunLoopRunSpecific + 470

         73  CoreFoundation                      0x06d3765b CFRunLoopRunInMode + 123

         74  GraphicsServices                    0x08d25664 GSEventRunModal + 192

         75  GraphicsServices                    0x08d254a1 GSEventRun + 104

         76  UIKit                               0x041d4eb9 UIApplicationMain + 160

         77  SmpEsriIntegration                  0x00039316 main + 86

         78  libdyld.dylib 0x072dca25 start + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException

Thanks very much,

Alok.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Have you checked it in the simulator?  Do you get any error from the simulator?

I suspect there is a step that was missed when compiling the client or possibly the wrong version of the esri sdk.  Just as a thought.

--Bill