Ranorex crashes with Unhandled exception

Bug reports.
fimo420
Posts: 55
Joined: Wed Jun 20, 2012 9:49 am

Ranorex crashes with Unhandled exception

Post by fimo420 » Thu Feb 28, 2013 8:15 am

SystemInfo:
Ranorex Version: 4.0.2.21666
OS: Windwos server 2008 R2 Standard with SP1 64 bit

Application: GpiRanorexUiTest.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:

at System.Collections.Generic.GenericArraySortHelper`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].BinarySearch(System.__Canon[], Int32, Int32, System.__Canon, System.Collections.Generic.IComparer`1<System.__Canon>)

at System.Array.BinarySearch[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon[], Int32, Int32, System.__Canon, System.Collections.Generic.IComparer`1<System.__Canon>)

at System.Collections.Generic.SortedList`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].IndexOfKey(System.__Canon)

at System.Collections.Generic.SortedList`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ContainsKey(System.__Canon)

at Ranorex.Core.GlueRuleExecutionState.IsSkipped(Ranorex.Core.LineageGlueRule)

at Ranorex.Core.ElementEngine.ApplyGlueRules(Ranorex.Core.Element, Ranorex.Core.GlueRuleExecutionState)

at Ranorex.Core.ElementEngine.ApplyGlueRules(Ranorex.Core.Element, Ranorex.Core.GlueRuleExecutionState)

at Ranorex.Core.ElementEngine.ApplyGlueRules(Ranorex.Core.Element)

at Ranorex.Core.Element.GetChildren(Ranorex.Core.CacheSession)

at Ranorex.Core.Element.get_Children()

at Ranorex.Core.RxPath.collectAxis(Ranorex.Core.Path.LocationStep, Ranorex.Core.Path.Axis, Ranorex.Core.Element, System.Collections.Generic.IList`1<Ranorex.Core.Element>, Boolean)

at Ranorex.Core.RxPath.ApplyInternal(Ranorex.Core.RxPath, Ranorex.Core.Element, Ranorex.Duration, Boolean)

at Ranorex.Core.Element.TryFindInternal(Ranorex.Core.RxPath, Ranorex.Duration, Boolean, System.Collections.Generic.IList`1<Ranorex.Core.Element> ByRef)

at Ranorex.Core.Repository.RepoItemInfo.Find[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Boolean, Boolean)

at Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Boolean)

at Ranorex.Core.Repository.RepoItemInfo.Exists[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon ByRef)

at Ranorex.Core.Repository.RepoItemInfo.Exists()

at GpiRanorexUiTest.Keywords.GenericSteps.GetGpiExceptionDetail()

at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)

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 System.Threading.ThreadHelper.ThreadStart()

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

Re: Ranorex crashes with Unhandled exception

Post by Support Team » Fri Mar 01, 2013 10:29 am

Thank you for reporting this exception!

Unfortunately, we have not found a way to reproduce that problem. Moreover, our developers cannot explain why such an exception could be thrown (the exception is thrown by a very basic operation in the .NET Framework that Ranorex is based on).

Can you tell us the steps to reproduce that problem?
Did you experience that exception just ones or several times?

Regards,
Alex
Ranorex Team
.
Image

fimo420
Posts: 55
Joined: Wed Jun 20, 2012 9:49 am

Re: Ranorex crashes with Unhandled exception

Post by fimo420 » Tue Mar 05, 2013 8:20 am

Hi,

Unfortunately i cannot say the steps :(
But it has happened several times.
It always happens when i run my nightly tests.
I have like 18 nightly tests that run every night through Teamcity.
And the crash has happened 4 times, but very randomly (never happened on version 3 of Ranorex).
My setup:
Remote desktop
Teamcity initiates the tests to start and in the morning when i log into my remote machine i see the unhandled exception.

Sorry if i it wasn’t much.

/Feroz

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

Re: Ranorex crashes with Unhandled exception

Post by Support Team » Tue Mar 05, 2013 9:39 am

One thing we noticed in your first post is that the exception message is missing. Are you sure you posted the complete exception text? The exception message could be key...

Are all Windows and .NET Framework updates and patches installed? All those updates are delivered through Windows Update, so you just need to confirm that all Windows Updates are installed.

Regards,
Alex
Ranorex Team
.
Image

fimo420
Posts: 55
Joined: Wed Jun 20, 2012 9:49 am

Re: Ranorex crashes with Unhandled exception

Post by fimo420 » Tue Mar 05, 2013 10:07 am

About Windows Update, yes i've got it updated to latest.

This is all i got from event viewer:

Application Error:
Faulting application name: GpiRanorexUiTest.exe, version: 1.0.4807.5634, time stamp: 0x512ebbf4
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e211319
Exception code: 0xe0434352
Fault offset: 0x0000b9bc
Faulting process id: 0x7aa14
Faulting application start time: 0x01ce15586f981629
Faulting application path: C:\Development\GPIDev\SubSolutions\GpiRanorexUiTest\GpiRanorexUiTest\bin\Debug\GpiRanorexUiTest.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 493d2943-8159-11e2-9183-5ab32636fbb5

.Net Runtime error:
Application: GpiRanorexUiTest.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at System.Collections.Generic.GenericArraySortHelper`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].BinarySearch(System.__Canon[], Int32, Int32, System.__Canon, System.Collections.Generic.IComparer`1<System.__Canon>)
at System.Array.BinarySearch[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon[], Int32, Int32, System.__Canon, System.Collections.Generic.IComparer`1<System.__Canon>)
at System.Collections.Generic.SortedList`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].IndexOfKey(System.__Canon)
at System.Collections.Generic.SortedList`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ContainsKey(System.__Canon)
at Ranorex.Core.GlueRuleExecutionState.IsSkipped(Ranorex.Core.LineageGlueRule)
at Ranorex.Core.ElementEngine.ApplyGlueRules(Ranorex.Core.Element, Ranorex.Core.GlueRuleExecutionState)
at Ranorex.Core.ElementEngine.ApplyGlueRules(Ranorex.Core.Element, Ranorex.Core.GlueRuleExecutionState)
at Ranorex.Core.ElementEngine.ApplyGlueRules(Ranorex.Core.Element)
at Ranorex.Core.Element.GetChildren(Ranorex.Core.CacheSession)
at Ranorex.Core.Element.get_Children()
at Ranorex.Core.RxPath.collectAxis(Ranorex.Core.Path.LocationStep, Ranorex.Core.Path.Axis, Ranorex.Core.Element, System.Collections.Generic.IList`1<Ranorex.Core.Element>, Boolean)
at Ranorex.Core.RxPath.ApplyInternal(Ranorex.Core.RxPath, Ranorex.Core.Element, Ranorex.Duration, Boolean)
at Ranorex.Core.Element.TryFindInternal(Ranorex.Core.RxPath, Ranorex.Duration, Boolean, System.Collections.Generic.IList`1<Ranorex.Core.Element> ByRef)
at Ranorex.Core.Repository.RepoItemInfo.Find[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Boolean, Boolean)
at Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Boolean)
at Ranorex.Core.Repository.RepoItemInfo.Exists[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon ByRef)
at Ranorex.Core.Repository.RepoItemInfo.Exists()
at GpiRanorexUiTest.Keywords.GenericSteps.GetGpiExceptionDetail()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
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 System.Threading.ThreadHelper.ThreadStart()

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

Re: Ranorex crashes with Unhandled exception

Post by Support Team » Tue Mar 05, 2013 3:02 pm

As I said earlier, that stack trace is unfortunately missing the exception message :(
Don't you have a Teamcity report with the full exception message in it?

Regards,
Alex
Ranorex Team
.
Image