ThreadAbortException

Ranorex Spy, Recorder, and Studio.
i.matveev
Posts: 40
Joined: Thu Apr 11, 2013 1:10 pm

ThreadAbortException

Post by i.matveev » Tue Oct 14, 2014 5:07 pm

Periodically during testing occurs crash automated testing.
System: Windows Server 2008 R2 Standard Service Pack1
Running multiple sessions of RDP. Within each run autotests(Screen006, Screen007)
Error in Windows log:
  • Приложение: KT_v2.exe
    Версия платформы: v4.0.30319
    Описание. Процесс был завершен из-за необработанного исключения.
    Сведения об исключении: System.Threading.ThreadAbortException
    Стек:
    в KT_v2.Program.Main(System.String[])
  • Имя сбойного приложения: KT_v2.exe, версия: 1.0.5400.30675, отметка времени: 0x543d2cf6
    Имя сбойного модуля: KERNELBASE.dll, версия: 6.1.7601.18409, отметка времени 0x53159a86
    Код исключения: 0xe0434352
    Смещение ошибки: 0x0000c42d
    Идентификатор сбойного процесса: 0x10ac
    Время запуска сбойного приложения: 0x01cfe7bf73680f72
    Путь сбойного приложения: C:\Users\tester9\Desktop\RUN\KT_v2.exe
    Путь сбойного модуля: C:\Windows\syswow64\KERNELBASE.dll
    Код отчета: 81bb29bd-53b4-11e4-8b71-005056aa50d4

Code: Select all

System.Threading.ThreadAbortException: Поток находился в процессе прерывания.
в System.Threading.Thread.SleepInternal(Int32 millisecondsTimeout)
в Ranorex.Core.Element.TryFindInternal(RxPath path, Duration timeout, Boolean findSingle, IList`1& foundElements)
в Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException, Duration effectiveTimeoutOverride)
в Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException)
в Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[T](Boolean throwException)
more

Code: Select all

System.Threading.ThreadAbortException: Поток находился в процессе прерывания.
в Ranorex.Core.ElementEngine.ApplyGlueRules(Element element, GlueRuleExecutionState state)
в Ranorex.Core.ElementEngine.ApplyGlueRules(Element element)
в Ranorex.Core.Element.GetChildren(CacheSession session)
в Ranorex.Core.Element.get_Children()
в Ranorex.Core.RxPath.collectAxis(LocationStep step, Axis optimizedAxis, Element self, IList`1 elements, Boolean quitOnFirstGoodNode)
в Ranorex.Core.RxPath.ApplyInternal(RxPath path, Element startElement, Duration timeout, Boolean findSingle)
в Ranorex.Core.Element.TryFindInternal(RxPath path, Duration timeout, Boolean findSingle, IList`1& foundElements)
в Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException, Duration effectiveTimeoutOverride)
в Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException)
в Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[T](Boolean throwException)Ошибка потокаSystem.Threading.ThreadAbortException: Поток находился в процессе прерывания.
в Ranorex.Core.ElementEngine.ApplyGlueRules(Element element, GlueRuleExecutionState state)
в Ranorex.Core.ElementEngine.ApplyGlueRules(Element element)
в Ranorex.Core.Element.GetChildren(CacheSession session)
в Ranorex.Core.Element.get_Children()
в Ranorex.Core.RxPath.collectAxis(LocationStep step, Axis optimizedAxis, Element self, IList`1 elements, Boolean quitOnFirstGoodNode)
в Ranorex.Core.RxPath.ApplyInternal(RxPath path, Element startElement, Duration timeout, Boolean findSingle)
в Ranorex.Core.Element.TryFindInternal(RxPath path, Duration timeout, Boolean findSingle, IList`1& foundElements)
в Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException, Duration effectiveTimeoutOverride)
в Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException)
в Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[T](Boolean throwException)
more

Code: Select all

Поток находился в процессе прерывания. 
Show/Hide Stacktrace
 в System.Threading.Thread.SleepInternal(Int32 millisecondsTimeout) 
в Ranorex.Core.Element.TryFindInternal(RxPath path, Duration timeout, Boolean findSingle, IList`1& foundElements) 
в Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException, 
Duration effectiveTimeoutOverride) в Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, 
Boolean throwException) в Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[T](Boolean throwException) 
в Ranorex.Core.Repository.RepoItemInfo.Exists[T](T& adapter) в Ranorex.Core.Repository.RepoItemInfo.Exists()
Attachments
QIP Shot - Screen 007.png
QIP Shot - Screen 007.png (274.37 KiB) Viewed 1684 times
QIP Shot - Screen 006.png
QIP Shot - Screen 006.png (334.87 KiB) Viewed 1684 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: ThreadAbortException

Post by Support Team » Wed Oct 15, 2014 4:14 pm

Hi Ivan,

I already replied to your other forum post about the same issue: post.
Please do not post information of the same issue in different threads so please put all your information to the other forum thread where I asked for the internal log file.

Thanks,
Markus
.
Image