D19784: Avoid calling QT_LSTAT and accessing recent documents

Robert Hoffmann noreply at phabricator.kde.org
Fri Mar 22 12:51:52 GMT 2019


hoffmannrobert added a comment.


  In D19784#434564 <https://phabricator.kde.org/D19784#434564>, @hoffmannrobert wrote:
  
  > In D19784#431683 <https://phabricator.kde.org/D19784#431683>, @ngraham wrote:
  >
  > > Nice, kinda sounds like this fixes https://bugs.kde.org/show_bug.cgi?id=373352. Can you confirm?
  >
  >
  > No, unfortunately it doesn't fix this. If the network isn't available, the file dialog waits for KCoreDirLister ("Iterating over dirs").
  
  
  After debugging opening a file dialog in kate and firefox, I found it's not `KCoreDirLister` but the `Recent Files[$e]` entries in `.config/katerc` and `.config/kdialogrc` which cause the hang.
  If they point to files on a network drive, and the network or the drive is not responding, `KUrlComboBox::setUrls()` is trying to access them at `if (u.isLocalFile() && !QFile::exists(u.toLocalFile())) {...`. The `QFile::exists()` calls `QFileInfo::exists()`which is hanging at a `__xstat64()` call.

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D19784

To: hoffmannrobert, #frameworks, dfaure, #dolphin
Cc: apol, ngraham, plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190322/1497c2a5/attachment.html>


More information about the Plasma-devel mailing list