This is a migrated thread and some comments may be shown as answers.

memory leak when connecting to windows and then closing

5 Answers 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jem
Top achievements
Rank 1
Jem asked on 02 Jun 2015, 02:20 PM

Using Telerik Test Framework 2015.1.319.0

I have a wpf application to test which opens windows in a list-> detail paradigm.

Each detail window opens a new wpf window which can be wrapped by WpfApplication.WaitForWindow(caption, windowTimeout).

Each window is closed using:

     WpfWindow.Window.DetachWrappedWindow();
         WpfWindow.Window.Close();

Using a 32 bit test application this will open and close about 50 windows before terminating with an out of memory exception.

Using editbin /LARGEADDRESSAWARE $(TargetPath) to increase accessible memory allows about 250 iterations before the exception.

On examination it seems that the telerik test framework is not releasing resources when a WaitforWindow wpfWindow is  closed.

If the (detail) wpfwindow does not do any RefreshVisualTrees() or any .Find() operations then the resources do not run out.

The more complex the detail window, the more resources are lost.

I have attached a sample application which uses a similar model - showing the resources not being released. If you run the application (without debugger!) and simultaneously run perfmon looking at working set and working set peek - you can see it inexorably creeping up. With such a small application you wont actually get the out of memory condition. However this is preventing some important test scenarios for my clients.

Please can you advise?

Regards

 

5 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 05 Jun 2015, 12:50 PM
Hello Jem,

Could you please send also the test which reproduces the issue?

We need to replicate this in order to give you a solution.

Looking forward to hearing from you.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Jem
Top achievements
Rank 1
answered on 19 Jun 2015, 10:44 AM
There is an attachment!
0
Boyan Boev
Telerik team
answered on 24 Jun 2015, 08:28 AM
Hi Jem,

Unfortunately I am not able to reproduce the issue with our latest version of Testing Framework (528).

Could you please download and install it.

Give that a try and let me know the results.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Jem
Top achievements
Rank 1
answered on 24 Jun 2015, 12:57 PM

Apologies the version we are using is 2015.1.528.0.

We have now bought support so I am going to raise an issue with a forma ticket.

0
Boyan Boev
Telerik team
answered on 29 Jun 2015, 07:55 AM
Hi Jem,

Thank you.

Closing this one.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Jem
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Jem
Top achievements
Rank 1
Share this question
or