Unhandeled Exception when clicking on an element in Spy

Bug reports.
User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Unhandeled Exception when clicking on an element in Spy

Post by Ciege » Thu Oct 30, 2008 7:02 pm

I clicked on an element in Ranorex Spy 2.0 Preview and got this exception.

Code: Select all

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
Ranorex.Core.RanorexException: The operation was aborted because the RxPath search timeout has been reached.
   at Ranorex.Core.RxPath.CheckTimeout()
   at Ranorex.Core.RxPath.collectAxis(Axis axis, IElement self, IList`1 elements)
   at Ranorex.Core.RxPath.Apply(IElement startElement, Boolean createNewSessionContext, IDataProvider dataProvider, Int32 timeout)
   at Ranorex.Core.Element.FindNoCache(RxPath path)
   at Ranorex.Core.RxPath.BuildElementPath(IElement relativeParent, IElement element, PathBuildMode mode, Boolean internalCacheContext)
   at Ranorex.Core.Element.GetPath(PathBuildMode buildMode)
   at Ranorex.Tools.SpyForm.elemTree_InternalStatusChanged(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at Ranorex.Controls.ElementTreeAdv.OnInternalStatusChanged(EventArgs e)
   at Ranorex.Controls.ElementTreeAdv.treeView_SelectionChanged(Object sender, EventArgs e)
   at Aga.Controls.Tree.TreeViewAdv.OnSelectionChanged()
   at Aga.Controls.Tree.TreeViewAdv.set_SuspendSelectionEvent(Boolean value)
   at Aga.Controls.Tree.NormalInputState.DoMouseOperation(TreeNodeAdvMouseEventArgs args)
   at Aga.Controls.Tree.NormalInputState.MouseDown(TreeNodeAdvMouseEventArgs args)
   at Aga.Controls.Tree.TreeViewAdv.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Ranorex.Spy
    Assembly Version: 2.0.0.4395
    Win32 Version: 2.0.0.4395
    CodeBase: file:///C:/Program%20Files/Ranorex%202.0%20Preview/Bin/Ranorex.Spy.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Ranorex.Controls
    Assembly Version: 2.0.0.4395
    Win32 Version: 2.0.0.4395
    CodeBase: file:///C:/Program%20Files/Ranorex%202.0%20Preview/Bin/Ranorex.Controls.DLL
----------------------------------------
Ranorex.Plugin.Win32
    Assembly Version: 2.0.0.4395
    Win32 Version: 2.0.0.4395
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Ranorex.Plugin.Win32/2.0.0.4395__b798506b574ebc9a/Ranorex.Plugin.Win32.dll
----------------------------------------
Ranorex.Core
    Assembly Version: 2.0.0.4395
    Win32 Version: 2.0.0.4395
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Ranorex.Core/2.0.0.4395__b798506b574ebc9a/Ranorex.Core.dll
----------------------------------------
Ranorex.Libs
    Assembly Version: 2.0.0.4049
    Win32 Version: 2.0.0.4049
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Ranorex.Libs/2.0.0.4049__b798506b574ebc9a/Ranorex.Libs.dll
----------------------------------------
Ranorex.Core.WinApi
    Assembly Version: 2.0.0.4395
    Win32 Version: 
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/Ranorex.Core.WinApi/2.0.0.4395__b798506b574ebc9a/Ranorex.Core.WinApi.dll
----------------------------------------
msvcm80
    Assembly Version: 8.0.50727.3053
    Win32 Version: 8.00.50727.3053
    CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_b80fa8ca/msvcm80.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
hiviqobe
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Ranorex.Plugin.Msaa
    Assembly Version: 2.0.0.4395
    Win32 Version: 2.0.0.4395
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Ranorex.Plugin.Msaa/2.0.0.4395__b798506b574ebc9a/Ranorex.Plugin.Msaa.dll
----------------------------------------
Ranorex.Plugin.Web
    Assembly Version: 2.0.0.4395
    Win32 Version: 2.0.0.4395
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Ranorex.Plugin.Web/2.0.0.4395__b798506b574ebc9a/Ranorex.Plugin.Web.dll
----------------------------------------
Ranorex.Plugin.Wpf
    Assembly Version: 2.0.0.4395
    Win32 Version: 2.0.0.4395
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Ranorex.Plugin.Wpf/2.0.0.4395__b798506b574ebc9a/Ranorex.Plugin.Wpf.dll
----------------------------------------
UIAutomationClient
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.6920.1427 built by: SP
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/UIAutomationClient/3.0.0.0__31bf3856ad364e35/UIAutomationClient.dll
----------------------------------------
UIAutomationTypes
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.6920.1427 built by: SP
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/UIAutomationTypes/3.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
----------------------------------------
Ranorex.Plugin.WinForms
    Assembly Version: 2.0.0.4395
    Win32 Version: 2.0.0.4395
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Ranorex.Plugin.WinForms/2.0.0.4395__b798506b574ebc9a/Ranorex.Plugin.WinForms.dll
----------------------------------------
Ranorex.Plugin.Flex
    Assembly Version: 2.0.0.4395
    Win32 Version: 2.0.0.4395
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Ranorex.Plugin.Flex/2.0.0.4395__b798506b574ebc9a/Ranorex.Plugin.Flex.dll
----------------------------------------
Ranorex.Libs.Web
    Assembly Version: 2.0.0.4049
    Win32 Version: 2.0.0.4049
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Ranorex.Libs.Web/2.0.0.4049__b798506b574ebc9a/Ranorex.Libs.Web.dll
----------------------------------------
Ranorex.Libs.WinForms
    Assembly Version: 2.0.0.4395
    Win32 Version: 
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/Ranorex.Libs.WinForms/2.0.0.4395__b798506b574ebc9a/Ranorex.Libs.WinForms.dll
----------------------------------------
Ranorex.Recorder
    Assembly Version: 2.0.0.4395
    Win32 Version: 2.0.0.4395
    CodeBase: file:///C:/Program%20Files/Ranorex%202.0%20Preview/Bin/Ranorex.Recorder.EXE
----------------------------------------
GridMainDemo
    Assembly Version: 1.0.3180.23937
    Win32 Version: 1.0.3180.23937
    CodeBase: file:///C:/Program%20Files/Developer%20Express%20.NET%20v8.2/Demos/XtraGrid/Bin/GridMainDemo.exe
----------------------------------------
DevExpress.Tutorials.v8.2
    Assembly Version: 8.2.4.0
    Win32 Version: 8.2.4.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.Tutorials.v8.2/8.2.4.0__9b171c9fd64da1d1/DevExpress.Tutorials.v8.2.dll
----------------------------------------
DevExpress.Utils.v8.2
    Assembly Version: 8.2.4.0
    Win32 Version: 8.2.4.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.Utils.v8.2/8.2.4.0__9b171c9fd64da1d1/DevExpress.Utils.v8.2.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
DevExpress.XtraBars.v8.2
    Assembly Version: 8.2.4.0
    Win32 Version: 8.2.4.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.XtraBars.v8.2/8.2.4.0__9b171c9fd64da1d1/DevExpress.XtraBars.v8.2.dll
----------------------------------------
DevExpress.XtraGrid.v8.2
    Assembly Version: 8.2.4.0
    Win32 Version: 8.2.4.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.XtraGrid.v8.2/8.2.4.0__9b171c9fd64da1d1/DevExpress.XtraGrid.v8.2.dll
----------------------------------------
DevExpress.XtraEditors.v8.2
    Assembly Version: 8.2.4.0
    Win32 Version: 8.2.4.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.XtraEditors.v8.2/8.2.4.0__9b171c9fd64da1d1/DevExpress.XtraEditors.v8.2.dll
----------------------------------------
DevExpress.Data.v8.2
    Assembly Version: 8.2.4.0
    Win32 Version: 8.2.4.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.Data.v8.2/8.2.4.0__9b171c9fd64da1d1/DevExpress.Data.v8.2.dll
----------------------------------------
System.Design
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



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

Post by Support Team » Fri Oct 31, 2008 5:41 pm

1.
We have fixed a lot of bugs in the first preview and will release a new preview version by the end of next week.

2.
I think this exception will be thrown if you want to spy a DevExpress data grid.
The problem is, that the Spy tries to read all elements of the grid with Active Accessibility (Ranorex.Plugin.Msaa) and MSAA (Microsoft Active Accessibility) is very slow in this case.
(You can try the same with Microsoft’s AccExplorer.exe).

But this control is a .NET control, so you can also get/set properties or call functions of the grid control.

See: http://www.ranorex.com/blog/transfering ... et-control

Jenö
Ranorex Team