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

getOpenFileName throws std::runtime_error if inotify_add_watch fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.14.1, 5.14.2
    • None
    • Linux/X11

    Description

      Hello,

      when the maximal number of notify watches is reached, a call to QFileDialog::getOpenFileName leads to a std::runtime_exception due to failed inotify_add_watch. This exception comes from the std lib and not from Qt. The exception is thrown before the dialog shows up.

      I can catch this exception, but I cannot get a filename from the user at this point.

      In Version Qt 10.1 the dialog worked flawless. Maybe it did not recognized changes on the filesystem during the short time the dialog was opened. But this is ok, since a required system resource is not available.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            martin_koerner Martin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes