Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44533

assistant startup takes several minutes with -enableremotecontrol

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.x
    • Tools: Assistant
    • None

      On my computer, I'm interfacing my IDE with assistant using the -enableremotecontrol argument.

      It works fine, excepts that it's very slow to start. I've narrowed the problem in the MainWindow::checkInitState function.

      in remote control mode, it's called several times. The function HelpEngineWrapper::instance().initialDocSetupDone(); is called several times too, connecting signals several times.

      If I modify the start of the function this way :

      MainWindow.cpp
      void MainWindow::checkInitState()
      {
          TRACE_OBJ
          if (!m_cmdLine->enableRemoteControl()) {
      	    HelpEngineWrapper::instance().initialDocSetupDone();
      	    return;
          }
      
          HelpEngineWrapper &helpEngine = HelpEngineWrapper::instance();
          if (helpEngine.contentModel()->isCreatingContents()
              || helpEngine.indexModel()->isCreatingIndex()) {
              if (!m_connectedInitSignals) {
      	    HelpEngineWrapper::instance().initialDocSetupDone();
      

      startup becomes normal again. I'm not sure this is the proper fix though.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            heimrich Karsten Heimrich
            guillaumecl Guillaume Clement
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes