Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10774

rootbrowse freezes after startup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.22/00
    • Fix Version/s: 6.22/00, 6.20/06
    • Component/s: PyROOT
    • Labels:
      None
    • Environment:

      probably any with experimental PyROOT

      Description

      rootbrowse displays the TBrowser windows, but the window is completely unresponsive. This patch seems to fix the issue (I'm not sure it is the right fix, but at least it shows the problem is with handling of graphics events, or lack thereof):

      diff --git a/main/python/cmdLineUtils.py b/main/python/cmdLineUtils.py
      index a346e07680..713d605ebf 100644
      --- a/main/python/cmdLineUtils.py
      +++ b/main/python/cmdLineUtils.py
      @@ -727,6 +727,8 @@ REPLACE_HELP = "replace object if already existing"
       
       def _openBrowser(rootFile=None):
           browser = ROOT.TBrowser()
      +    while True:
      +        ROOT.gSystem.ProcessEvents()
           _input("Press enter to exit.")
       
       def rootBrowse(fileName=None):
      

      One problem with the patch is that {{ _input("Press enter to exit.")}} is never executed, and users need to ctrl-C to quit.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                etejedor Enric Tejedor Saavedra
                Reporter:
                eguiraud Enrico Guiraud
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: