Out of memory exception
Posted: Wed Jul 22, 2020 8:06 am
Ranorex version - 9.2.0
OS - Windows 10 (Version - 1809 Build - 17763.1282)
While doing execution, got below exception. Execution was stuck and need to kill AUT and Ranorex. This is hampering execution. Can you please check?
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
---STACKTRACE---
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
System.Collections.Generic.List`1.set_Capacity(Int32 value) +0x21
System.Collections.Generic.List`1.EnsureCapacity(Int32 min) +0x36
System.Collections.Generic.List`1.Add(T item) +0x0
Debugger.Interop.TrackedComObjects.Track(Object obj) +0x23
Debugger.MTA2STA.MarshalIntPtrTo(IntPtr param,Type outputType) +0x41
Debugger.MTA2STA.MarshalIntPtrTo(IntPtr param) +0x0
Debugger.ManagedCallbackProxy+<>c__DisplayClass22_0.<ExitProcess>b__0() +0x0
Debugger.MTA2STA+<>c__DisplayClass21_0.<EnqueueCall>b__0() +0x0
Debugger.MTA2STA.PerformCall() +0x47
Debugger.MTA2STA.PerformAllCalls() +0x0
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) +0x0
System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) +0x20
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) +0x79
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) +0x0
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state) +0x2b
System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme) +0x37
System.Windows.Forms.Control.InvokeMarshaledCallbacks() +0x62
---ORIGINAL STACKTRACE---
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Collections.Generic.List`1.set_Capacity(Int32 value)
at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
at System.Collections.Generic.List`1.Add(T item)
at Debugger.Interop.TrackedComObjects.Track(Object obj)
at Debugger.MTA2STA.MarshalIntPtrTo(IntPtr param, Type outputType)
at Debugger.MTA2STA.MarshalIntPtrTo[T](IntPtr param)
at Debugger.ManagedCallbackProxy.<>c__DisplayClass22_0.<ExitProcess>b__0()
at Debugger.MTA2STA.<>c__DisplayClass21_0.<EnqueueCall>b__0()
at Debugger.MTA2STA.PerformCall()
at Debugger.MTA2STA.PerformAllCalls()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
OS - Windows 10 (Version - 1809 Build - 17763.1282)
While doing execution, got below exception. Execution was stuck and need to kill AUT and Ranorex. This is hampering execution. Can you please check?
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
---STACKTRACE---
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
System.Collections.Generic.List`1.set_Capacity(Int32 value) +0x21
System.Collections.Generic.List`1.EnsureCapacity(Int32 min) +0x36
System.Collections.Generic.List`1.Add(T item) +0x0
Debugger.Interop.TrackedComObjects.Track(Object obj) +0x23
Debugger.MTA2STA.MarshalIntPtrTo(IntPtr param,Type outputType) +0x41
Debugger.MTA2STA.MarshalIntPtrTo(IntPtr param) +0x0
Debugger.ManagedCallbackProxy+<>c__DisplayClass22_0.<ExitProcess>b__0() +0x0
Debugger.MTA2STA+<>c__DisplayClass21_0.<EnqueueCall>b__0() +0x0
Debugger.MTA2STA.PerformCall() +0x47
Debugger.MTA2STA.PerformAllCalls() +0x0
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) +0x0
System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) +0x20
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) +0x79
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) +0x0
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state) +0x2b
System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme) +0x37
System.Windows.Forms.Control.InvokeMarshaledCallbacks() +0x62
---ORIGINAL STACKTRACE---
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Collections.Generic.List`1.set_Capacity(Int32 value)
at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
at System.Collections.Generic.List`1.Add(T item)
at Debugger.Interop.TrackedComObjects.Track(Object obj)
at Debugger.MTA2STA.MarshalIntPtrTo(IntPtr param, Type outputType)
at Debugger.MTA2STA.MarshalIntPtrTo[T](IntPtr param)
at Debugger.ManagedCallbackProxy.<>c__DisplayClass22_0.<ExitProcess>b__0()
at Debugger.MTA2STA.<>c__DisplayClass21_0.<EnqueueCall>b__0()
at Debugger.MTA2STA.PerformCall()
at Debugger.MTA2STA.PerformAllCalls()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()