Page 1 of 1

Unhandled exception popup

Posted: Wed Feb 16, 2011 6:34 am
by syuhada
Ranorex Studio Version : 2.3.8.10854
.NET Version : 2.0.50727.3615
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 3
Current culture : English (United States) (en-US)
Working Set Memory : 577824kb
GC Heap Memory : 265709kb

Exception thrown:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)
at System.Text.StringBuilder.GetNewString(String currentString, Int32 requiredLength)
at System.Text.StringBuilder.Append(Char value)
at Ranorex.Core.FastXml.XmlNode.PrintNode(StringBuilder text, XmlNode node, String indent)
at Ranorex.Core.FastXml.XmlNode.PrintNode(StringBuilder text, XmlNode node, String indent)
at Ranorex.Core.FastXml.XmlNode.PrintNode(StringBuilder text, XmlNode node, String indent)
at Ranorex.Core.FastXml.XmlNode.PrintNode(StringBuilder text, XmlNode node, String indent)
at Ranorex.Core.FastXml.XmlNode.PrintNode(StringBuilder text, XmlNode node, String indent)
at Ranorex.Core.FastXml.XmlNode.ToXmlString()
at Ranorex.Core.Repository.ElementRepository.CreateMemento()
at Ranorex.Core.Repository.ElementRepository.ComputeChangeStateHash()
at Ranorex.Core.Repository.ElementRepository.get_IsDirty()
at Ranorex.Controls.ItemRecorder.get_IsDirty()
at Ranorex.Controls.ItemRecorder.OnRecordingChanged(Boolean updateUndo)
at Ranorex.Controls.ItemRecorder.UpdateListFromRecordTable(Boolean causeOnRecordingChanged)
at Ranorex.Controls.ItemRecorder.lvItems_DoubleClick(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
at System.Windows.Forms.ListView.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)

---- 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:
Installed 3rd party AddIns: [RxLogViewer 2.3.8.10854], [RxObjectRepository 2.3.8.10854], [RxRecorder 2.3.8.10854], [Workflow Foundation Designer 2.3.8.10854], [ElementTree 2.3.8.10854]
Workbench.ActiveContent: Ranorex.Addins.RecorderPrimaryViewContent
ProjectService.OpenSolution: [Solution: FileName=T:\IntegrationTest\InfrastudioQA\InfrastudioQA.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: InfraStudioQA.BasicTest.Sequencer]

Description:
This exception occurs when add/edit recording to old solution.I have thousands of recordings.

Re: Unhandled exception popup

Posted: Wed Feb 16, 2011 7:46 am
by Support Team
Hi,

First thank you for posting the bug. Would it be possible to post us a short description how we can reproduce this memory exception? Are you working with Image Based Automation and you have a lot of images inside the repository?

Regards,
Peter
Ranorex Team

Re: Unhandled exception popup

Posted: Thu Feb 17, 2011 8:16 am
by syuhada
This exception occurs when i editing my old recording. I have a few recording that have image inside . Sometimes this exception also happen on my project that have no image based record.

Re: Unhandled exception popup

Posted: Thu Feb 17, 2011 10:10 am
by Support Team
Hi,

Please post me the filesize (Mega Byte) of your Repository and Recordings. How many images are inside the Repository? Maybe it is possible to send or post us the project?

Thanks in advance.

Regards,
Peter
Ranorex Team