Exception occurs when try to record new recording

Bug reports.
syuhada
Posts: 28
Joined: Mon Sep 20, 2010 7:56 am

Exception occurs when try to record new recording

Post by syuhada » Tue Nov 01, 2011 8:43 am

Code: Select all

Ranorex Studio Version : 2.3.9.11654
.NET Version         : 2.0.50727.4963
OS Version           : Microsoft Windows NT 6.1.7600.0
Current culture      : English (United States) (en-US)
Working Set Memory   : 1030492kb
GC Heap Memory       : 275606kb

Exception thrown:
System.OutOfMemoryException: Out of memory.
   at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData)
   at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr, DrawImageAbort callback)
   at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit)
   at System.Windows.Forms.ControlPaint.DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset, RightToLeft rightToLeft)
   at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset)
   at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle)
   at System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
   at System.Windows.Forms.ScrollableControl.OnPaintBackground(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmEraseBkgnd(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.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.9.11654], [RxObjectRepository 2.3.9.11654], [RxRecorder 2.3.9.11654], [Workflow Foundation Designer 2.3.9.11654], [ElementTree 2.3.9.11654]
Workbench.ActiveContent: Ranorex.Addins.RecorderPrimaryViewContent
ProjectService.OpenSolution: [Solution: FileName=T:\IntegrationTest\InfrastudioQA.BasicTest\InfrastudioQA.BasicTest.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: InfraStudioQA.BasicTest.NewProject]

I have a few of project in one solution. Then i try to add new project to my old solution file.and continue with recording. After record,this exception comes out. Any suggestion to handle this problem?

Thanks you,.

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

Re: Exception occurs when try to record new recording

Post by Support Team » Tue Nov 01, 2011 12:52 pm

As the error message says, your system is out of memory and Ranorex Studio can therefore not continue to operate as usual. Do you have a lot of recordings/repositories/files open in Ranorex Studio? Try freeing up some resources by closing some of the open recordings and files in Ranorex Studio.

Have you created a lot of image-based recordings with large screenshots? If so, please try to remove unused and large screenshots from your repositories. With Ranorex 3.X that can easily be done using the repository "Cleanup" functionality (see this chapter in the Ranorex User Guide).

Regards,
Alex
Ranorex Team
.
Image

syuhada
Posts: 28
Joined: Mon Sep 20, 2010 7:56 am

Re: Exception occurs when try to record new recording

Post by syuhada » Mon Nov 21, 2011 10:17 am

Hi Ranorex Team,

This problem solved by separating the large project into new solution. Is there any way to do repository Cleanup in Ranorex 2.X?

Thanks .

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

Re: Exception occurs when try to record new recording

Post by Support Team » Mon Nov 21, 2011 1:39 pm

Hi,
syuhada wrote: Is there any way to do repository Cleanup in Ranorex 2.X?
Sorry but this feature is not available in 2.x. This feature was added in 3.0.

Regards,
Peter
Ranorex Team
.
Image