Out of Memory Exception for Repository Error

Ranorex Studio, Spy, Recorder, and Driver.
garyb576
Posts: 7
Joined: Fri Nov 05, 2010 12:43 pm

Out of Memory Exception for Repository Error

Post by garyb576 » Fri Nov 05, 2010 12:56 pm

I receive the following error when trying to add to my repository, if this is full is there anyway I can remove some of the items without manually checking if it is being used within my solution

Ranorex Studio Version : 2.3.4.9270
.NET Version : 2.0.50727.3053
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 3
Current culture : English (United Kingdom) (en-GB)
Current UI language : en-US
Working Set Memory : 429520kb
GC Heap Memory : 249111kb

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(String 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.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.ToXmlString()
at Ranorex.Controls.RepositoryEditor.LoadRepository(Boolean external)
at Ranorex.Controls.RepositoryEditor.InternExternButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.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.4.9270], [RxObjectRepository 2.3.4.9270], [RxRecorder 2.3.4.9270], [Workflow Foundation Designer 2.3.4.9270], [ElementTree 2.3.4.9270]
Workbench.ActiveContent: Ranorex.Addins.RecorderPrimaryViewContent
ProjectService.OpenSolution: [Solution: FileName=C:\Documents and Settings\Test\My Documents\Training DB VM\Solution TrainingDBVM.rxsln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: TrainingDBVM]

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Out of Memory Exception for Repository Error

Post by Support Team » Fri Nov 05, 2010 1:23 pm

Hi,

Thank you for posting this bug. Would it be possible to send us the repository or can you share it on one place, so we can download it?

Thanks in advance.

Regards,
Peter
Ranorex Team

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Out of Memory Exception for Repository Error

Post by Support Team » Mon Nov 15, 2010 2:52 pm

Hi,

Thank you for sending us the repository. We were able to reproduce the problem and will try to fix it with Ranorex 3.0.

Regards,
Peter
Ranorex Team