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

Windows: Native QFileDialog hangs and makes application crash when opening C:/

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 5.3.2
    • Windows 8.1 Pro Update 1 x64
      Qt 5.3.2 MSVC 2013 x64 OpenGL

      CPU: Intel i5 3570 @3.40 GHz
      RAM: 16 GB @1600 MHz
      System Drive: KINGSTON SVP200S37A240G
      "Storage" Drive: WDC WD7500AZEX-00ZF5A0

      On some systems, when calling the static method QFileDialog::getExistingDirectory(0, "", "C:/"); or when calling setFileMode(QFileDialog::Directory); and setOption(QFileDialog::ShowDirsOnly); on a dialog before executing/showing it, will make the dialog start appearing but then immediately hang up/freeze when it is required to be shown. Clicking on it makes application crash. There is no way to resume the application once the bugged file dialog is shown.
      If using a different path than C:/, it seems to work properly instead.

      May be the same bug reported at this link (including a windows-specific, non Qt, workaround), which seems a Windows issue: http://wishmesh.com/2011/06/call-to-openfiledialog-or-savefiledialog-hangs-or-freezes/

      This is the original MSDN post: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b79e618b-003d-4d72-bef5-6323164f51dc/showdialog-hangs-when-used-in-script-task-on-vista?forum=sqlintegrationservices

      If a QFileDialog with AnyFile file mode is opened/executed at least once before the one which causes the issue, then the "bugged" file dialog does not cause any issues and keeps working correctly.

        1. debug.png
          207 kB
          Claudio Barutta
        2. issue_code_0.png
          118 kB
          Claudio Barutta
        3. issue_code_1.png
          130 kB
          Claudio Barutta
        4. issue.png
          132 kB
          Claudio Barutta
        5. qtbug41416.zip
          1 kB
          Friedemann Kleint
        6. stack.tasks
          0.5 kB
          Claudio Barutta
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            jubba Claudio Barutta
            Votes:
            6 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes