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

qt.labs.platform.FileDialog hangs for 10-20 seconds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2, 6.2.0
    • Quick: Dialogs
    • None
    • macOS

    Description

      Steps to reproduce:

      1 Click on main window -> file dialog will be opened in folder

      StandardPaths.writableLocation(StandardPaths.PicturesLocation)

      2 Chose any file in network location on other machine(for example network_machine)

      3 Disconnect network_machine from net

      3 Click on main window to open file dialog again

      Expected result: 

      File dialog will be opened at once

       

      Actual result:

      Application hangs and file dialog will be opened during 10 - 20 seconds

      NOTE:
      Debug showed that dialog hangs in openPanel time in qtbase/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm

      method :
      initWithAcceptMode:(const QString &)selectFile options:(SharedPointerFileDialogOptions)options helper:(QCocoaFileDialogHelper *)helper

      line: 
      mOpenPanel = [NSOpenPanel openPanel];

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            evgenpervenenko Evgen Pervenenko
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes