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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • 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

    Description

      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.

      Attachments

        1. debug.png
          debug.png
          207 kB
        2. issue_code_0.png
          issue_code_0.png
          118 kB
        3. issue_code_1.png
          issue_code_1.png
          130 kB
        4. issue.png
          issue.png
          132 kB
        5. qtbug41416.zip
          1 kB
        6. stack.tasks
          0.5 kB

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes