Application randomly crashed using the run time version 100.5 and 100.6

664
12
09-13-2019 08:04 AM
New Contributor II

Hello All,

I need to help to identify the issue with application crash randomly using runtime 100.5 and 100.6.  I didn't have this issue when the app was using runtime 10.2.7.  

The application is processing addresses and coordinate data to display them on the map as graphics overlay.  The data is coming almost every seconds as there is a change.  I already set the rendering mode as static for all graphics overlay.  The application randomly crashed on the production site.  I was running for 4 or 5 hours then crashed.

Here are the exception from Event Viewer.

Faulting application name: MyMap.exe, version: 4.1.18.0, time stamp: 0x5d7a4914
Faulting module name: runtimecore.dll, version: 100.6.0.2513, time stamp: 0x5d570501
Exception code: 0xc0000005
Fault offset: 0x000000000156968d
Faulting process id: 0x74
Faulting application start time: 0x01d5696ec7667b54
Faulting application path: C:\Program Files (x86)\Mapping\MyMap.exe
Faulting module path: C:\Program Files (x86)\Mapping\arcgisruntime100.6\client64\runtimecore.dll
Report Id: 3affd698-d5ae-11e9-bb16-fb9381a577cd

Application: MyMap.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at RuntimeCoreNet.GeneratedWrappers.CoreVector.CoreRT_Vector_insert(IntPtr, Int64, IntPtr, IntPtr ByRef)
at RuntimeCoreNet.GeneratedWrappers.CoreVector.Insert(Int64, RuntimeCoreNet.GeneratedWrappers.CoreElement)
at Esri.ArcGISRuntime.RuntimeCollection`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ExecuteActionWithUndo(System.Collections.Generic.Stack`1<System.Action>, System.Action, System.Action)
at Esri.ArcGISRuntime.RuntimeCollection`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetItem(Int32, System.__Canon)
at Esri.ArcGISRuntime.RuntimeObservableCollection`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetItem(Int32, System.__Canon)
at MyMapControl.AddGraphicsOverlay(MyList, Esri.ArcGISRuntime.UI.GraphicsOverlay, System.String)
at MyMapControl.AddGraphicsOverlay(MyList)
at MyMapControl.PlotMapPoint()
at MyMapControl+<GeoCodeMyItem>d__187.MoveNext()
at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon ByRef)
at MyMapControl.GeoCodeMyItem()
at MyMapControl.DrawMapPoint()
at MyMapControl.MapRefreshChangedWorker_RunWorkerCompleted(System.Object, System.ComponentModel.RunWorkerCompletedEventArgs)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(System.ComponentModel.RunWorkerCompletedEventArgs)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at WpfCadMap.App.Main()

I am not able to reproduce the problem.

Thanks,

Steven

Reply
0 Kudos
12 Replies
New Contributor II

Is version 100.4 of the ArcGIS Runtime still being supported by Esri?  We're going to see if the crashing happens with this version.

Reply
0 Kudos
Esri Frequent Contributor

Bryan,

ArcGIS Runtime life cycle status: Esri Support ArcGIS Runtime SDK for .NET 100.4 

Regards

Mike

Reply
0 Kudos
New Contributor II

Hi Michael,

I managed to get the dump file and loaded in Visual Studio.  Here is the stack trace.

[External Code]
[Managed to Native Transition]
Esri.ArcGISRuntime.dll!RuntimeCoreNet.GeneratedWrappers.CoreVector.Remove(long position) Unknown
Esri.ArcGISRuntime.dll!Esri.ArcGISRuntime.RuntimeCollection<System.__Canon>.ExecuteActionWithUndo(System.Collections.Generic.Stack<System.Action> undoStack, System.Action action, System.Action undoAction) Unknown
Esri.ArcGISRuntime.dll!Esri.ArcGISRuntime.RuntimeCollection<Esri.ArcGISRuntime.UI.Graphic>.SetItem(int index, Esri.ArcGISRuntime.UI.Graphic item) Unknown
Esri.ArcGISRuntime.dll!Esri.ArcGISRuntime.RuntimeObservableCollection<Esri.ArcGISRuntime.UI.Graphic>.SetItem(int index, Esri.ArcGISRuntime.UI.Graphic item) Unknown
> CadMap.exe!WpfCadMap.WpfMapControl.AddGraphicsOverlay(WpfCadMap.CfsMasterList itm, Esri.ArcGISRuntime.UI.GraphicsOverlay gpOverlay, string symbolPath) Line 2930 C#
CadMap.exe!WpfCadMap.WpfMapControl.AddGraphicsOverlay(WpfCadMap.CfsMasterList itm) Line 2746 C#
CadMap.exe!WpfCadMap.WpfMapControl.PlotAvlDisconnectList() Line 3113 C#
CadMap.exe!WpfCadMap.WpfMapControl.GeoCodeCfsMasterList() Line 2348 C#
CadMap.exe!WpfCadMap.WpfMapControl.DrawMapPoint() Line 1601 C#
CadMap.exe!WpfCadMap.WpfMapControl.MapRefreshChangedWorker_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e) Line 355 C#
System.dll!System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(System.ComponentModel.RunWorkerCompletedEventArgs e) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) Unknown
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() Unknown
WindowsBase.dll!MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(object obj) Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
WindowsBase.dll!MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke() Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue() Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Unknown
WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Unknown
WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) Unknown
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) Unknown
[Native to Managed Transition]
[External Code]
[Managed to Native Transition]
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) Unknown
PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) Unknown
PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) Unknown
CadMap.exe!WpfCadMap.App.Main() Unknown
[Native to Managed Transition]
[External Code]

Reply
0 Kudos