You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhancementRequest for improvement: either for an existing feature or a new onehelp_wantedIf you have suggestions on how to fix, they are welcomeprio-highCritical to user experience
When using RIDE with large suite (1,000 tests), if you're using Windows 10, RIDE randomly causes the entire system to freeze for 10 seconds up to 1 minute when you click on anything in the RIDE window. I've seen this happen on many computers, all of them with Windows 10. It never happens on Windows 7.
This happens both in RIDE 1.5.2.1 (with recommended wxPython) and with RIDE 1.7.3.1 (I tested with wxPython 4.0.4, Python 2.7).
Reacted by simohakki, beoffutt, amoxuk and Snowcore Proteos
Is that a single test file with 1,000 tests? Or a directory with many test files?
Being a problem existing in 1.5.2.1, it proves that was not caused by recent code changes.
Reports of slow performance when using many test cases, are known, and are in my TODO list to analyse.
just wanted to join in here since I encounter exactly the same issue. Recently we switched laptops from Windows 7 to Windows 10, and now unfortunately RIDE freezes the whole system for 10 seconds or so. That is:
impossible to switch to other applications (neither by task bar, nor by )
even graphs of Windows Task Manager freezes
Actually it looks somehow related to leaving focus from main application window, because I see this quite often when right-clicking on a test suite in order to get the context menu up. This doesn't work most of the times - instead system freezes, and after 10 seconds the context menu shows-up. :-(
Today I tried to avoid to brng-up the context menu. Instead I selected / deselected tests manually. This seemed to help in the beginning, but after running RIDE for several hours I encountered the same issue again.
Similar to @Soothsilver we have tons of test suites containing 1.000+ test cases. I can provide some more details with accurate numbers on that, if needed.
Thanks so much in advance & kind regards!
Cheers, Erik
Reacted by Hélio Guilherme, gjungberg and Snowcore Proteos
not from my side - sorry. We're still struggling with this issue and some of us now use a Windows 7 VM in order to overcome this issue.
Besides closing RIDE frequently and reloading the test suite I'm currently working on I didn't find a reliable solution for this. Even loading less test cases (by selecting a test suite located lower in the hierarchie) just seems to postpone the freezes a bit - but it's not a guarantee that this problem doesn't show-up after an hour or so.
Is RIDE looking for all keywords documentation when a folder is opened?
-- Remedy: Only look for documentation from opened test suite.
Is Tree element too big to process and it slows down RIDE readiness?
-- Remedy: Have a "high-water" marker to stop loading Tree, or,
Have Tree to be loaded in background, or,
Have a switch to hide Tree on user choice (last resort solution).
The strange thing is that it's not just RIDE which freezes. I also considered that it might be documentation (I have maybe twenty XML files and twenty Python files loaded into RIDE in that big project) but if it was RIDE processing slowing down the system, I would expect only RIDE to freeze.
What happens instead is that the entire operating system freezes -- you can move the mouse pointer but do nothing else. That's why I suspected something related to the tree view control but I never managed to create a reproducible test case.
During scrolling the GUI will start lagging (i.e. it continues to scroll without you doing anything)
When that happens click on another GUI element in RIDE or on another window/taskbar/etc.
Every window/taskbar/etc you click on will become frozen. After a while everything else freezes too. If you wait a bit longer it will recover (time depends on how much you scrolled).
During this event, the CPU usage does not become high. Ctrl+Alt+Delete also doesn't activate until the freeze passes. It's really weird.
@sfdcselenium01 We now have on the development version, the possibility to hide the project explorer/tree view (in one attempt to help on this issue). So, there are some "workarounds" to attempt to reduce the long waiting time. Only open a test suite at the time. Not the full folder structure. You can easily open a folder or test suite, by right-clicking on the File explorer. If you use python3 then you can try the current development version. Thanks.
Most likely related to wxWidgets/Phoenix#1633
The tree widget has many child windows added to it, all based of the _ActionHandler class. They appear to be invisible (?) but are still valid widgets that need to be handled by the scrolled window. Likely they are causing the slowdown.
Hi @Soothsilver,
Can you please let me know how to install/use Snowride. I have existing Ride setup with lots of cases in that. What all changes I need to make to use Snowride.
Thanks.
@dinesh16kr There's a download link in the readme of the repository @HelioGuilherme66 pointed you to. Then double-click it or use the command "java -jar snowride.jar"
As a stab in the dark, is it necessary for _ActionHandler to be based off wx.Window?
If so, do they need to be children of the tree? You could possibly make them children of the parent of the tree:
In treenodehandlers.py line 91: wx.Window.__init__(self, tree.GetParent())
No idea what kind of side-effects this could have, but it fixes the issue for me. Seems like adding too many children to a window is an operating system limit that must be avoided.
@cbeytas Please make a Pull Request with you complete fix or implementation. That way we can validate if it fixes and does not break other functions. It would be really good if more people contribute with code. Thanks.
enhancementRequest for improvement: either for an existing feature or a new onehelp_wantedIf you have suggestions on how to fix, they are welcomeprio-highCritical to user experience
Activity
HelioGuilherme66 commentedon Mar 1, 2019
Is that a single test file with 1,000 tests? Or a directory with many test files?
Being a problem existing in 1.5.2.1, it proves that was not caused by recent code changes.
Reports of slow performance when using many test cases, are known, and are in my TODO list to analyse.
Soothsilver commentedon Mar 1, 2019
It is a directory with many directories. There are about 150 files which in total have 1000 test cases.
HW71 commentedon May 8, 2019
Hi all,
just wanted to join in here since I encounter exactly the same issue. Recently we switched laptops from Windows 7 to Windows 10, and now unfortunately RIDE freezes the whole system for 10 seconds or so. That is:
Actually it looks somehow related to leaving focus from main application window, because I see this quite often when right-clicking on a test suite in order to get the context menu up. This doesn't work most of the times - instead system freezes, and after 10 seconds the context menu shows-up. :-(
Today I tried to avoid to brng-up the context menu. Instead I selected / deselected tests manually. This seemed to help in the beginning, but after running RIDE for several hours I encountered the same issue again.
Similar to @Soothsilver we have tons of test suites containing 1.000+ test cases. I can provide some more details with accurate numbers on that, if needed.
Thanks so much in advance & kind regards!
Cheers, Erik
EPMageshwari commentedon Jun 24, 2019
Any update on this issue? I am also seeing the windows freeze, when using RIDE.
HW71 commentedon Jun 24, 2019
Hi @EPMageshwari
not from my side - sorry. We're still struggling with this issue and some of us now use a Windows 7 VM in order to overcome this issue.
Besides closing RIDE frequently and reloading the test suite I'm currently working on I didn't find a reliable solution for this. Even loading less test cases (by selecting a test suite located lower in the hierarchie) just seems to postpone the freezes a bit - but it's not a guarantee that this problem doesn't show-up after an hour or so.
Cheers, Erik
Soothsilver commentedon Jun 24, 2019
Hi, I don't have a fix, but I have a reimplementation of RIDE at https://github.com/Soothsilver/snowride, which I created precisely to avoid this bug. Of course, it doesn't have the long-term stability or full-featuredness of RIDE, but if you're going as far as running RIDE in a VM, it may be worth trying.
HW71 commentedon Jun 24, 2019
Hi @Soothsilver ,
thanks a lot for the hint - will give it a try tomorrow! :-)
Cheers, Erik
HelioGuilherme66 commentedon Jun 25, 2019
Things to investigate:
-- Remedy: Only look for documentation from opened test suite.
-- Remedy: Have a "high-water" marker to stop loading Tree, or,
Have Tree to be loaded in background, or,
Have a switch to hide Tree on user choice (last resort solution).
Soothsilver commentedon Jun 25, 2019
The strange thing is that it's not just RIDE which freezes. I also considered that it might be documentation (I have maybe twenty XML files and twenty Python files loaded into RIDE in that big project) but if it was RIDE processing slowing down the system, I would expect only RIDE to freeze.
What happens instead is that the entire operating system freezes -- you can move the mouse pointer but do nothing else. That's why I suspected something related to the tree view control but I never managed to create a reproducible test case.
Nyral commentedon Jun 25, 2019
@Soothsilver It's simple to reproduce.
Every window/taskbar/etc you click on will become frozen. After a while everything else freezes too. If you wait a bit longer it will recover (time depends on how much you scrolled).
During this event, the CPU usage does not become high. Ctrl+Alt+Delete also doesn't activate until the freeze passes. It's really weird.
17 remaining items
HelioGuilherme66 commentedon Mar 17, 2020
@sfdcselenium01 We now have on the development version, the possibility to hide the project explorer/tree view (in one attempt to help on this issue). So, there are some "workarounds" to attempt to reduce the long waiting time. Only open a test suite at the time. Not the full folder structure. You can easily open a folder or test suite, by right-clicking on the File explorer. If you use python3 then you can try the current development version. Thanks.
sfdcselenium01 commentedon Mar 18, 2020
@HelioGuilherme66 , I download development version and try it, still have same issue. RIDE freeze windows 10
Nyral commentedon Mar 21, 2020
@sfdcselenium01 Read my comment here.
valeriobruno commentedon May 3, 2020
Are you able to replicate the issue systematically?
cbeytas commentedon May 10, 2020
Most likely related to wxWidgets/Phoenix#1633
The tree widget has many child windows added to it, all based of the
_ActionHandlerclass. They appear to be invisible (?) but are still valid widgets that need to be handled by the scrolled window. Likely they are causing the slowdown.Tim-QA commentedon May 12, 2020
This issue affects also Windows Server 2019 and not Windows Server 2008 R2.
dinesh16kr commentedon May 26, 2020
Hi @Soothsilver,
Can you please let me know how to install/use Snowride. I have existing Ride setup with lots of cases in that. What all changes I need to make to use Snowride.
Thanks.
HelioGuilherme66 commentedon May 26, 2020
@dinesh16kr Why don't you see the instructions at he's project? It is just a Java app :).
Soothsilver commentedon May 26, 2020
@dinesh16kr There's a download link in the readme of the repository @HelioGuilherme66 pointed you to. Then double-click it or use the command "java -jar snowride.jar"
cbeytas commentedon Jun 6, 2020
As a stab in the dark, is it necessary for
_ActionHandlerto be based offwx.Window?If so, do they need to be children of the tree? You could possibly make them children of the parent of the tree:
In
treenodehandlers.pyline 91:wx.Window.__init__(self, tree.GetParent())No idea what kind of side-effects this could have, but it fixes the issue for me. Seems like adding too many children to a window is an operating system limit that must be avoided.
HelioGuilherme66 commentedon Jun 6, 2020
@cbeytas Please make a Pull Request with you complete fix or implementation. That way we can validate if it fixes and does not break other functions. It would be really good if more people contribute with code. Thanks.
Update treenodehandlers.py to prevent freeze ups
Update treenodehandlers.py to prevent freeze ups (#2205)