POST
|
Hello, While trying to migrate some code from ArcGIS 10.2.5 to ArcGIS 100, I've noticed some AGSPictureMarkerSymbol changes. When creating a AGSPictureMarkerSymbol with a local asset, it takes into consideration the image size (e.g. if @2x images are provided, the symbol is using that). However, when using programatic images (e.g. UIViews screenshots), the supplied image is treated as @1x image. On iPad 2, it's rendered at 1x, on iPad Air 2s it's rendered at 2x. The old SDK (and Apple's UIKit) is treating the UIView "screenshot" as "fit for current size", e.g. the image is rendered at the same relative size (1x or 2x). See attached screenshots (please ignore E66). Thank you, Marius
... View more
03-22-2017
11:06 PM
|
0
|
2
|
1684
|
POST
|
Hello, While trying to migrate the app from 10.2.5 to 100 I've started to get lots of crashes with "Esri_runtimecore::Common::Sqlite_readonly_exception:". They happen when you're browsing the map or you're interacting with the map. The map has a simple basemap (Streets Vector) and a couple of AGSGraphicsOverlays. The map has a touchDelegate set to self. Is this a known issue? Do you have any hints where I should start looking? Thank you, Marius Next day edit: I'm trying to get more info on what's causing this issue. So far, it seems to be a race condition when interacting with the map while the map is downloading. I can reproduce it pretty easily by quickly moving the map around while the map is loading. Performing the same interactions after the map is loaded (2-3 seconds later) does not seem to crash the app. I've got some call trees from Instruments, but I'm pretty sure they are not the cause of the crash. Is there any way I can get you some debug info? Log files? Is there any way to set the vector map cache store to memory?
... View more
03-21-2017
10:13 PM
|
0
|
4
|
922
|
BLOG
|
According to Apple, starting with January 2017, ATS will be mandatory, and apps using the exception keys will be rejected. Is there any chance we get a patch update for the stable SDK, so we can submit updates after January 2017? Here's a blog post re ATS https://nabla-c0d3.github.io/blog/2016/08/14/ats-enforced-2017/ that provides some details on that. Thank you
... View more
11-14-2016
02:10 PM
|
2
|
0
|
269
|
POST
|
I did manage to get this crash happening on my system once. It seems that it crashes when the AGSMapView is deallocated (once you leave that view). It may be possible that I'm clearing up some resources and forget about others. Is there a way to "cancel all operations" for AGSMapView?
... View more
05-26-2016
09:36 PM
|
0
|
0
|
996
|
POST
|
Hi, Do you have any suggestions on where to start to look for the following crash: -[AGSNSURLSessionDemultiplexer URLSession:task:didCompleteWithError:]
-[NSMapTable NSMapTable { } ] count underflow The full stack trace is: Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x1810e2e38 __exceptionPreprocess
1 libobjc.A.dylib 0x180747f80 objc_exception_throw
2 CoreFoundation 0x1810e2d80 -[NSException initWithCoder:]
3 Foundation 0x181a94acc -[NSConcreteMapTable raiseCountUnderflowException]
4 Foundation 0x1819e9470 -[NSConcreteMapTable rehashAround:]
5 Tablet CMD 0x1003f80c8 -[AGSNSURLSessionDemultiplexer URLSession:task:didCompleteWithError:]
6 CFNetwork 0x1817f0924 __51-[NSURLSession delegate_task:didCompleteWithError:]_block_invoke170
7 Foundation 0x181a9c510 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__
8 Foundation 0x1819ee900 -[NSBlockOperation main]
9 Foundation 0x1819deed8 -[__NSOperationInternal _start:]
10 Foundation 0x181a9e904 __NSOQSchedule_f
11 libdispatch.dylib 0x180b2d47c _dispatch_client_callout
12 libdispatch.dylib 0x180b394c0 _dispatch_queue_drain
13 libdispatch.dylib 0x180b30f80 _dispatch_queue_invoke
14 libdispatch.dylib 0x180b3b390 _dispatch_root_queue_drain
15 libdispatch.dylib 0x180b3b0b0 _dispatch_worker_thread3
16 libsystem_pthread.dylib 0x180d45470 _pthread_wqthread
17 libsystem_pthread.dylib 0x180d45020 start_wqthread Unfortunately, I don't have any steps to reproduce these, as I got them from Crashlytics. Thank you, Marius
... View more
05-19-2016
01:06 AM
|
0
|
6
|
5979
|
POST
|
Kristopher, thanks for your blog post. When using Mac OSX 10.11 El Capitan as the server, the directory structure changed a bit. The build is ran from the directory /var/_xcsbuildd/, so instead of linking to /var/teamsserver/Library/SDKs, just link to /var/_xcsbuildd/Library/SDKs: sudo ln -s ~/Library/SDKs /var/_xcsbuildd/Library/SDKs Do not forget to check that the full path to the .framework directory is accessible by all the users (your home directory, your library directory, etc).
... View more
02-08-2016
10:07 PM
|
0
|
0
|
310
|
POST
|
The actual error is for "[NSObject(NSObject) doesNotRecognizeSelector:] ". It does not show up in the Crashlytics logs, but it does in the device logs. In my case it was because an object was observing the AGSMapViewDidEndPanningNotification/AGSMapViewDidEndZoomingNotification notifications and I did not remove the object as an observer, in dealloc. For whatever reason, the issue was visible only on iOS 8. M. Last Exception Backtrace: 0 CoreFoundation 0x2a5000d2 __exceptionPreprocess + 122 1 libobjc.A.dylib 0x38cd8c72 objc_exception_throw + 34 2 CoreFoundation 0x2a505598 -[NSObject(NSObject) doesNotRecognizeSelector:] + 184 3 CoreFoundation 0x2a503474 ___forwarding___ + 708 4 CoreFoundation 0x2a432704 _CF_forwarding_prep_0 + 20 5 CoreFoundation 0x2a4b7ea0 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 8 6 CoreFoundation 0x2a4119e8 _CFXNotificationPost + 1796 7 Tablet CMD 0x0056d880 -[AGSMapViewBase ags_mapHasDrawn] + 1984 8 Tablet CMD 0x0048ffc4 -[AGSMapRenderer drawRequested] + 760 9 Tablet CMD 0x0048f882 -[AGSMapRenderer pulse:] + 370 10 QuartzCore 0x2d5c2b62 CA::Display::DisplayLinkItem::dispatch() + 94 11 QuartzCore 0x2d5c29ca CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 362 12 IOMobileFramebuffer 0x32342bfe IOMobileFramebufferVsyncNotifyFunc + 86 13 IOKit 0x2b47ad08 IODispatchCalloutFromCFMessage + 252 14 CoreFoundation 0x2a4b5330 __CFMachPortPerform + 128 15 CoreFoundation 0x2a4c5826 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30 16 CoreFoundation 0x2a4c57c2 __CFRunLoopDoSource1 + 342 17 CoreFoundation 0x2a4c3de4 __CFRunLoopRun + 1604 18 CoreFoundation 0x2a40f6cc CFRunLoopRunSpecific + 472 19 CoreFoundation 0x2a40f4de CFRunLoopRunInMode + 102 20 GraphicsServices 0x31d8b1a4 GSEventRunModal + 132 21 UIKit 0x2dbc1440 UIApplicationMain + 1436 22 Tablet CMD 0x00048878 main (main.m:18) 23 libdyld.dylib 0x392a6aaa tlv_initializer + 2
... View more
01-20-2016
10:19 PM
|
1
|
0
|
367
|
POST
|
Hi, Do you have any ideas what could cause a crash in [AGSMapViewBase ags_mapHasDrawn]? Are there any assumptions that I'm ignoring (e.g. always running on main thread, etc)? It happens pretty often, on iOS 8.2/8.3, but not on iOS 9. Thank you, Marius Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x1957a3bd0 objc_msgSend + 16 1 CoreFoundation 0x1840162c4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20 2 CoreFoundation 0x183f53450 _CFXNotificationPost + 2060 3 Tablet CMD 0x1003a527c -[AGSMapViewBase ags_mapHasDrawn] + 1382348 4 Tablet CMD 0x1002ced48 -[AGSMapRenderer drawRequested] + 504472 5 Tablet CMD 0x1002ce718 -[AGSMapRenderer pulse:] + 502888 6 QuartzCore 0x18844629c CA::Display::DisplayLinkItem::dispatch() + 32 7 QuartzCore 0x188446134 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 324 8 IOKit 0x185221470 IODispatchCalloutFromCFMessage + 376 9 CoreFoundation 0x184012dc4 __CFMachPortPerform + 180 10 CoreFoundation 0x184027a54 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56 11 CoreFoundation 0x1840279b4 __CFRunLoopDoSource1 + 436 12 CoreFoundation 0x184025934 __CFRunLoopRun + 1640 13 CoreFoundation 0x183f512d4 CFRunLoopRunSpecific + 396 14 GraphicsServices 0x18d63f6fc GSEventRunModal + 168 15 UIKit 0x188b16fac UIApplicationMain + 1488 16 Tablet CMD 0x10001d920 main (main.m:18) 17 libdyld.dylib 0x195e0ea08 start + 4
... View more
01-20-2016
04:40 PM
|
0
|
1
|
2548
|
POST
|
When checking why the AGSLayer visible property does not propagate to the corresponding AGSWebMapLayerInfo layerInfo object, I noticed that if you're hiding one of the layers, it is removed from operationalLayers, so if you're using operationalLayers as the user layers' source, you can't toggle the layers back on (or you have to also keep track of the for the removed layers). I ended up implementing webMap:didLoadLayer: to save a copy of the loaded layer, update the AGSLayer name with the AGSWebMapLayerInfo title, then change that layer's 'visible' property, as needed. Any reason why the AGSLayer's name, id and other properties are not set to their corresponding values from AGSWebMapLayerInfo?
... View more
11-23-2015
06:03 PM
|
0
|
0
|
401
|
POST
|
I don't think that the (feature) layers from that property are correctly setup. The feature layer seem to have a different name then the one from operationalLayers, and it seem to miss the layerId. (lldb) po [self.esriMapView mapLayers] <__NSArrayI 0x7c1991c0>( <AGSTiledMapServiceLayer: 0x7e9798d0>, <AGSFeatureLayer: 0x81d3ca80>, <AGSFeatureLayer: 0x81f91e50>, <AGSGraphicsLayer: 0x7be44910>, <AGSGraphicsLayer: 0x7c510100>, <AGSGraphicsLayer: 0x7c510190>, <AGSGraphicsLayer: 0x7c510220>, <AGSGraphicsLayer: 0x7c5102b0>, <AGSGraphicsLayer: 0x7c5106a0>, <AGSGraphicsLayer: 0x7c510730> ) (lldb) po [[self.esriMapView mapLayers] objectAtIndex:1] <AGSFeatureLayer: 0x81d3ca80> (lldb) po [[[self.esriMapView mapLayers] objectAtIndex:1] name] https://docs.google.com/spreadsheets/d/...&output=csv (lldb) po [[[self.esriMapView mapLayers] objectAtIndex:1] layerId] nil (lldb) po [self.esriMapView class] AGSMapView (lldb) po [self.esriWebMap operationalLayers] <__NSArrayI 0x81bda390>( id: csv_2521 title:Google Sheeps url:https://docs.google.com/spreadsheets/d/...&output=csv opacity:1.000000 type:CSV , ... ) P.S. I wish this forum would use a similar WYSIWYG editor like StackOverflow. AFAIK, that editor was open sourced.
... View more
11-17-2015
05:24 PM
|
0
|
2
|
401
|
POST
|
Hello, I'm trying to add a button that allows a user to disable certain layers, on user defined maps. The first implementation, that worked fine, was using webMap:didLoadLayer: to save the loaded layers to a different array, and then toggle the layer.visible property, as a response to a UITableView cell tap. The problem with that approach is the fact that the (AGSLayer *)layer received by - (void)webMap:(AGSWebMap *)webMap didLoadLayer:(AGSLayer *)layer has different info then the AGSWebMapLayerInfo that are part of webMap.operationalLayers. The issue that bothers me is that the AGSLayer name is different than AGSWebMapLayerInfo title. If you're creating a layer using an online CSV file, the AGSLayer name is that url (e.g. https://docs.google.com/spreadsheets/d/...&output=csv), the AGSLayer layerId is nil, etc. The AGSWebMapLayerInfo title has the same name as specified in the ArcGIS online portal, the URL is correct, the layerId is set etc. I've tried to change the AGSWebMapLayerInfo visibility property, however it does not seem to apply that change. Do you have any suggestions on how to get the correct layer name, or how to convert an AGSWebMapLayerInfo to a valid AGSLayer that can change the visibility of the layer? Thank you, Marius
... View more
11-17-2015
03:25 PM
|
0
|
4
|
3613
|
POST
|
I've heard this suggestion before, but I'm not so keen to use it. First, because you only need to build the pods once (per Xcode/SDK change, that is), I prefer to check them all in. This approach does not work for node.js or other platforms, where the binary packages support a wide range of platforms. Every time you switch branches, you have to run pod install/update, and wait for the pods to download. That's fine if you're having a proper internet connection, but does not work that well on ADSL or cell phone tethering (5GB data/month). Also, because of the large file sizes, even if you add the ArcGIS.framework to your project, you still can't commit it to GitHub. Currently, I've installed the SDK in ~/Library and will use this setup until the files size get to a reasonable value (or GitHub increases the file limit to 200M).
... View more
11-17-2015
02:47 PM
|
0
|
4
|
1181
|
POST
|
Hello, Is there a way to make these files smaller: 380M Pods/ArcGIS-Runtime-SDK-iOS/ArcGIS.framework/Versions/Current/ArcGIS 112M Pods/ArcGIS-Runtime-SDK-iOS/file.zip The file.zip also seem to contain the file ArcGIS.framework/Versions/Current/ArcGIS of size 398M. Ideally, they should be smaller than 50M. Thank you, Marius
... View more
11-11-2015
06:49 PM
|
0
|
7
|
5089
|
POST
|
Hi Nick, I can confirm that apps already in the store load the maps properly, and do not crash on iOS 9 beta4 anymore. Regards, Marius
... View more
07-21-2015
07:36 PM
|
0
|
0
|
593
|
Title | Kudos | Posted |
---|---|---|
1 | 01-20-2016 10:19 PM | |
2 | 11-14-2016 02:10 PM |
Online Status |
Offline
|
Date Last Visited |
08-30-2023
12:08 AM
|