Wait For causes thread usage to continually increase

Bug reports.
scott-gilchrist
Posts: 2
Joined: Thu May 26, 2016 4:27 pm

Wait For causes thread usage to continually increase

Post by scott-gilchrist » Thu May 26, 2016 4:42 pm

I have noticed that when using the Wait For function in Ranorex studio 5.4.1 that the amount of threads being used in VisualVM would continually increase. This causes the application that is being tested by Ranorex to crash if the Wait For lasts long enough and the thread usage becomes high enough.

The issue was first noted when running scripts via a Jenkins CI server, but the issue persists when running the tests from Ranorex Studio.

I wrote a basic test application that will allow the user to enter a number and it waits that amount of seconds before a window appears with a simple "close" button. The threading issue appeared the exact same with this application.

I have attached screenshots of VisualVM showing the thread usage, as well as a thread dump from VisualVM. Issue has been noted in Windows7 and Windows8.1
Attachments
resource-monitor.png
screenshot showing resource monitor with Java using a large amount of memory
resource-monitor.png (863.54 KiB) Viewed 578 times
10-min-thread-issue.png
screenshot of VisualVM thread usage
10-min-thread-issue.png (58.3 KiB) Viewed 578 times
threaddump-1464082624820.txt
Thread dump showing ranorex thread usage
(74.48 KiB) Downloaded 27 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3929
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Wait For causes thread usage to continually increase

Post by odklizec » Fri May 27, 2016 2:49 pm

Hi,

Ranorex 5.4.1 is nearly one year old and no longer supported. Could you please try to reproduce the problem with latest 6.0 or previous 5.4.6? You see, there were introduced many changes and bug fixes sine 5.4.1 and there is always a chance the issue you found is already fixed.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration