Found few crashes on Crashlytics, with following details, any help about the cause of issue, its occurring when we tap on map.
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000
Crashed: com.apple.main-thread
0 libsystem_platform.dylib 0x182f362a0 _platform_memmove + 176
1 AGXGLDriver 0x194d2ff6c glrAGXRenderVertexArray(GLDContextRec*, unsigned int, unsigned int, int, int, unsigned int, void const*, int, void const*)
2 AGXGLDriver 0x194d2ff6c glrAGXRenderVertexArray(GLDContextRec*, unsigned int, unsigned int, int, int, unsigned int, void const*, int, void const*)
3 GLEngine 0x195ad2ea4 glDrawElements_ACC_ES2Exec
4 MyCity 0x100a4c044 Esri_runtimecore::Map_renderer::Sequence_pick_visitor::draw_() + 396
5 MyCity 0x100a36b98 Esri_runtimecore::Map_renderer::Graphic_buffer::visit_sequences_(std::__1::shared_ptr<Esri_runtimecore::HAL::Device> const&, std::__1::shared_ptr<Esri_runtimecore::Map_renderer::Sequence_visitor> const&, Esri_runtimecore::Map_renderer::Graphic_buffer::Allow_throttling, bool) + 972
6 MyCity 0x100a05e0c Esri_runtimecore::Map_renderer::Graphics_layer::gpu_hit_test_(std::__1::shared_ptr<Esri_runtimecore::HAL::Device> const&, std::__1::shared_ptr<Esri_runtimecore::Map_renderer::Display_properties> const&, std::__1::shared_ptr<Esri_runtimecore::Map_renderer::Hit_testable::Hit_test_request_details> const&) + 1004
7 MyCity 0x100a0773c Esri_runtimecore::Map_renderer::Graphics_layer::hit_test(std::__1::shared_ptr<Esri_runtimecore::Geometry::Multi_path> const&, unsigned long) + 460
8 MyCity 0x10046b894 -[AGSMapViewBase hitTestPoint:mapPoint:] + 232
9 MyCity 0x100399bac -[AGSMapView singleTap] + 336
10 UIKit 0x1889c1f30 _UIGestureRecognizerSendTargetActions + 164
11 UIKit 0x1885d6728 _UIGestureRecognizerSendActions + 172
12 UIKit 0x1884637a0 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 784
13 UIKit 0x1889c3530 ___UIGestureRecognizerUpdate_block_invoke898 + 72
14 UIKit 0x1884224d8 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 372
15 UIKit 0x18841f254 _UIGestureRecognizerUpdate + 2404
16 CoreFoundation 0x183290728 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
17 CoreFoundation 0x18328e4cc __CFRunLoopDoObservers + 372
18 CoreFoundation 0x18328e8fc __CFRunLoopRun + 928
19 CoreFoundation 0x1831b8c50 CFRunLoopRunSpecific + 384
20 GraphicsServices 0x184aa0088 GSEventRunModal + 180
21 UIKit 0x18849a088 UIApplicationMain + 204
22 MyCity 0x10024a550 main (AppDelegate.swift:16)
Did that fix work for you?
No Chris, it didn't work for me, the issue is still occurring.
Is it possible you're tapping on the map to hittest the graphic before the graphics layer or other layers have finished drawing? I don't know if that would cause this problem, it's just a shot in the dark. If you have a repro case that can reliably produce the problem it'll be easier to troubleshoot.
Thanks Divesh, for replying.
We have verified it on app, layerDidLoad getting called properly for all layers,
In app we have AGSMapView on two View controllers
5. App is getting crashed when ViewController3 presentation is in progress with following crash logs.
We are getting two different type of crash logs, but for both cases crash reproduction steps are same.Following is another one, posted another question for this
https://community.esri.com/thread/179502
Complete Crash Logs: 1.https://www.dropbox.com/s/g08og9sfmkgqr2z/AGSMapRenderer_drawRequested_Crash_Log.txt?dl=0
2. https://www.dropbox.com/s/dim1fcx17bdwtro/AGSMapView_singleTap_Crash_Log.txt?dl=0
Here are some queries:
so will it create a issue?
2. On both ViewController1 and ViewController2 we are calling self.agsMapView.locationDisplay.startDataSource()
On ViewController3 we need users current location so we are checking for it by using CLLocationManager, any chances that this will create a issue.
Let me know if you need any more details.