Skip to content

System freezes on Windows 10 #1843

Closed

Description

@Soothsilver

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).

Activity

  1. HelioGuilherme66 commented on Mar 1, 2019

    @HelioGuilherme66
    Member

    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.

  2. Soothsilver commented on Mar 1, 2019

    @Soothsilver
    Author

    It is a directory with many directories. There are about 150 files which in total have 1000 test cases.

  3. added
    enhancement
    on Apr 14, 2019
  4. HW71 commented on May 8, 2019

    @HW71

    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:

    • 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

  5. added
    help_wanted
    prio-medium
    on Jun 10, 2019
  6. EPMageshwari commented on Jun 24, 2019

    @EPMageshwari

    Any update on this issue? I am also seeing the windows freeze, when using RIDE.

  7. HW71 commented on Jun 24, 2019

    @HW71

    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

  8. Soothsilver commented on Jun 24, 2019

    @Soothsilver
    Author

    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.

  9. HW71 commented on Jun 24, 2019

    @HW71

    Hi @Soothsilver ,

    thanks a lot for the hint - will give it a try tomorrow! :-)

    Cheers, Erik

  10. added
    prio-high
    and removed
    prio-medium
    on Jun 25, 2019
  11. HelioGuilherme66 commented on Jun 25, 2019

    @HelioGuilherme66
    Member

    Things to investigate:

    • 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).
  12. Soothsilver commented on Jun 25, 2019

    @Soothsilver
    Author

    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.

  13. Nyral commented on Jun 25, 2019

    @Nyral
    Contributor

    @Soothsilver It's simple to reproduce.

    • Load 50 suites (with ~50 test cases each)
    • Expand all in tree
    • Scrolling down using mouse wheel (important)
    • 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.

  14. 17 remaining items

  15. HelioGuilherme66 commented on Mar 17, 2020

    @HelioGuilherme66
    Member

    @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.

  16. sfdcselenium01 commented on Mar 18, 2020

    @sfdcselenium01

    @HelioGuilherme66 , I download development version and try it, still have same issue. RIDE freeze windows 10

  17. Nyral commented on Mar 21, 2020

    @Nyral
    Contributor

    @sfdcselenium01 Read my comment here.

  18. valeriobruno commented on May 3, 2020

    @valeriobruno
    Contributor

    Are you able to replicate the issue systematically?

  19. cbeytas commented on May 10, 2020

    @cbeytas
    Contributor

    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.

  20. Tim-QA commented on May 12, 2020

    @Tim-QA

    This issue affects also Windows Server 2019 and not Windows Server 2008 R2.

  21. dinesh16kr commented on May 26, 2020

    @dinesh16kr

    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.

  22. HelioGuilherme66 commented on May 26, 2020

    @HelioGuilherme66
    Member

    @dinesh16kr Why don't you see the instructions at he's project? It is just a Java app :).

  23. Soothsilver commented on May 26, 2020

    @Soothsilver
    Author

    @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"

  24. cbeytas commented on Jun 6, 2020

    @cbeytas
    Contributor

    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.

  25. HelioGuilherme66 commented on Jun 6, 2020

    @HelioGuilherme66
    Member

    @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.

  26. added a commit that references this issue on Jun 10, 2020
    183747c
  27. added this to the v2.0 milestone on Jul 6, 2020
  28. added a commit that references this issue on Jul 16, 2020
    970d2a4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementhelp_wantedprio-high

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions