Ranorex closes unexpectedly

Ask general questions here.
DJB2308
Posts: 2
Joined: Fri Feb 05, 2021 4:52 pm

Ranorex closes unexpectedly

Post by DJB2308 » Mon Mar 15, 2021 8:25 pm

Has anyone else experienced Ranorex closing/crashing unexpectedly since going on 9.4.1? This has happened to me multiple times since moving to 9.4.1. Today, I was in 'Edit in Spy' trying to update the element path information when this happened. All unsaved data/changes are lost.

Below, I have included the RanorexStudio.log file information for the time frame. Any suggestions on what might be causing this or how to correct?
-------------------------------------------------------------------------------------------------------------
2021-03-15 13:58:27.231|DEBUG|Ranorex.Core.LicensingConfiguration+LicensingNLogLogger|Will create dual mode TCP client.
2021-03-15 13:59:27.246|DEBUG|Ranorex.Core.LicensingConfiguration+LicensingNLogLogger|Will create dual mode TCP client.
2021-03-15 13:59:33.382|DEBUG|Ranorex.Report|Plugins: Getting attribute 'branch' failed on FlavorElement with flavor 'chromeweb'. The given key was not present in the dictionary.
2021-03-15 13:59:33.382| INFO|Ranorex.Report|Getting attribute 'branch' failed on FlavorElement with flavor 'chromeweb'. System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Server stack trace:
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Ranorex.Plugin.MsgHostDom.GetElementStyle(Int32 wndId, Int32 tabId, Int64 frameId, NpPtr elemId, String name)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Ranorex.Plugin.IDom.GetElementStyle(Int32 wndId, Int32 tabId, Int64 frameId, NpPtr elemId, String name)
at Ranorex.Plugin.ChromeWebFlavorElement.GetStyleAttribute(String name)
at Ranorex.Plugin.ChromeWebFlavorElement.GetAttributeValue(Element element, String name)
at Ranorex.Core.Element.GetAttributeValue(String name)
2021-03-15 13:59:33.740|DEBUG|Ranorex.Plugin.ChromeWebFlavor|Add dom for: 593800
2021-03-15 13:59:40.900|DEBUG|Ranorex.Report|Plugins: Getting attribute 'branch' failed on FlavorElement with flavor 'chromeweb'. The given key was not present in the dictionary.
2021-03-15 13:59:40.900| INFO|Ranorex.Report|Getting attribute 'branch' failed on FlavorElement with flavor 'chromeweb'. System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Server stack trace:
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Ranorex.Plugin.MsgHostDom.GetElementStyle(Int32 wndId, Int32 tabId, Int64 frameId, NpPtr elemId, String name)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Ranorex.Plugin.IDom.GetElementStyle(Int32 wndId, Int32 tabId, Int64 frameId, NpPtr elemId, String name)
at Ranorex.Plugin.ChromeWebFlavorElement.GetStyleAttribute(String name)
at Ranorex.Plugin.ChromeWebFlavorElement.GetAttributeValue(Element element, String name)
at Ranorex.Core.Element.GetAttributeValue(String name)
2021-03-15 14:04:23.747|DEBUG|Ranorex.Core.Config.SolutionSettingsContext|Search solution config file in C:\Program Files (x86)\Ranorex\Studio\Bin\.
2021-03-15 14:04:23.747| INFO|Ranorex.Core.Config.SolutionSettingsContext|Register solution config file (none)
2021-03-15 14:04:24.061| INFO|Ranorex.Core.ElementEngine|Element engine starting up...

User avatar
tmcdoniel
Certified Professional
Certified Professional
Posts: 23
Joined: Mon Dec 07, 2020 6:30 pm

Re: Ranorex closes unexpectedly

Post by tmcdoniel » Thu Mar 25, 2021 6:59 pm

Try upgrading to the latest version which is 9.5.0 and see if that corrects the problem. Otherwise you might need to uninstall and reinstall the application.
Sales Engineer @ Ranorex