Ranox crashes when changing path in Spy.

Bug reports.
edxxgardo
Posts: 13
Joined: Wed Mar 10, 2010 1:22 pm

Ranox crashes when changing path in Spy.

Post by edxxgardo » Fri Mar 12, 2010 11:17 am

After the crash, Ranorex was installed and this error came out.



Ranorex Studio Version : 2.2.2.7850
.NET Version : 2.0.50727.4927
OS Version : Microsoft Windows NT 6.1.7600.0
Current culture : English (United Kingdom) (en-GB)
Working Set Memory : 37316kb
GC Heap Memory : 2348kb

Unhandled exception terminated RanorexStudio
Exception thrown:
Ranorex.Core.RanorexCoreException: Failed to load plugins from user directory. ---> Ranorex.Core.RanorexCoreException: Failed to initialize plugin 'rxpathweights'. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.SortedList`2.get_Item(TKey key)
at Ranorex.Core.ReadOnlyDictionaryWrapper`2.get_Item(TKey key)
at Ranorex.Plugin.RxPathWeightsPlugin.Initialize()
at Ranorex.Core.PluginManager.Load(Plugin plugin)
--- End of inner exception stack trace ---
at Ranorex.Core.PluginManager.Load(Plugin plugin)
at Ranorex.Core.PluginManager.LoadPluginsWithDependencies(IList`1 flavorPlugins)
at Ranorex.Core.PluginManager.LoadPluginsFromDirectory(String directory)
at Ranorex.Core.PluginManager.LoadRanorexPluginsFromUserDirectory()
at Ranorex.Core.PluginManager.LoadDefaultPlugins()
--- End of inner exception stack trace ---
at Ranorex.Core.PluginManager.LoadDefaultPlugins()
at Ranorex.Core.PluginManager.LoadDefaultPluginsSuppressible()
at Ranorex.Core.ElementEngine.get_Instance()
at ICSharpCode.SharpDevelop.SplashScreenForm..ctor()
at ICSharpCode.SharpDevelop.SplashScreenForm.ShowSplashScreen()
at ICSharpCode.SharpDevelop.SharpDevelopMain.Run(String[] args)
at ICSharpCode.SharpDevelop.SharpDevelopMain.Main(String[] args)

---- Recent log messages:
Failed to append recent log messages.
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Sda.LogMessageRecorder.AppendRecentLogMessages(StringBuilder sb, ILog log)
at ICSharpCode.SharpDevelop.Sda.ExceptionBox.getClipboardString()

---- Post-error application state information:

edxxgardo
Posts: 13
Joined: Wed Mar 10, 2010 1:22 pm

Re: Ranox crashes when changing path in Spy.

Post by edxxgardo » Fri Mar 12, 2010 11:25 am

After this crash, I can't start RanorexStudio and RanorexSpy, even if I remove it completly: I attached some screenshots:

Error:

Ranorex.Core.RanorexCoreException: Failed to load plugins from user directory. ---> Ranorex.Core.RanorexCoreException: Failed to initialize plugin 'rxpathweights'. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.SortedList`2.get_Item(TKey key)
at Ranorex.Core.ReadOnlyDictionaryWrapper`2.get_Item(TKey key)
at Ranorex.Plugin.RxPathWeightsPlugin.Initialize()
at Ranorex.Core.PluginManager.Load(Plugin plugin)
--- End of inner exception stack trace ---
at Ranorex.Core.PluginManager.Load(Plugin plugin)
at Ranorex.Core.PluginManager.LoadPluginsWithDependencies(IList`1 flavorPlugins)
at Ranorex.Core.PluginManager.LoadPluginsFromDirectory(String directory)
at Ranorex.Core.PluginManager.LoadRanorexPluginsFromUserDirectory()
at Ranorex.Core.PluginManager.LoadDefaultPlugins()
--- End of inner exception stack trace ---
at Ranorex.Core.PluginManager.LoadDefaultPlugins()
at Ranorex.Tools.SpyForm.InitLate()
at Ranorex.Tools.SpyForm.loadTimer_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Attachments
RanoxSpy.png
RanoxSpy.png (84.34 KiB) Viewed 954 times
RanoxStudio.png
RanoxStudio.png (152.14 KiB) Viewed 954 times

edxxgardo
Posts: 13
Joined: Wed Mar 10, 2010 1:22 pm

Re: Ranox crashes when changing path in Spy.

Post by edxxgardo » Fri Mar 12, 2010 11:35 am

Ok, I solved it removing the Plugins folder from the ProgramData folder in Windows 7, before reinstalling the application because the removing procedure leaves behind the Plugin folder.

Regards,

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

Re: Ranox crashes when changing path in Spy.

Post by Support Team » Fri Mar 12, 2010 11:50 am

Sorry, i've done a mistake in the xml syntax.
Just replace the term capability="trtag" with capability="webelement". Then the plugin should work.

Regards,
Peter
Ranorex Support Team
.
Image