memory leak when connecting to windows and then closing

6 posts, 0 answers
  1. Jem
    Jem avatar
    5 posts
    Member since:
    Feb 2009

    Posted 02 Jun 2015 Link to this post

    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

     

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1043 posts

    Posted 05 Jun 2015 Link to this post

    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
     
  3. Jem
    Jem avatar
    5 posts
    Member since:
    Feb 2009

    Posted 19 Jun 2015 in reply to Boyan Boev Link to this post

    There is an attachment!
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1043 posts

    Posted 24 Jun 2015 Link to this post

    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
     
  5. Jem
    Jem avatar
    5 posts
    Member since:
    Feb 2009

    Posted 24 Jun 2015 in reply to Boyan Boev Link to this post

    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.

  6. Boyan Boev
    Admin
    Boyan Boev avatar
    1043 posts

    Posted 29 Jun 2015 Link to this post

    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
     
Back to Top