TGFileDialog multiple "Can't read file attributes" errors on Windows

Dear ROOTers,

I noticed that ROOT file dialog (TGFileDialog) throws multiple errors when browsing the contents of the C: drive. Issue reproduced on Windows computers. GNU/Linux has no errors.

Error messages following:

Can't read file attributes of "pagefile.sys": No such file or directory.
Can't read file attributes of "swapfile.sys": No such file or directory.
Can't read file attributes of "System Volume Information": No such file or directory.

How to reproduce:

  1. Install ROOT framework on Windows.
  2. Launch root tutorials/gui/guitest.C
  3. In window menu select File → Open…
  4. Navigate to C: drive.
  5. Multiple error dialogs are displayed.

Expected behavior: errors should not be displayed.

Tested on: Windows 10, root x64 for windows 6.30.04 - 31 Jan 2024 (from website).

Please let me know if I should create an issue on GitHub.

It’s well known that the root content of C:\ contains protected system files, and there is not much we can do about this. These are valid error messages, you can simply ignore them. But I’ll try to silence these specific files nevertheless. And no need to open a GitHub issue, it’s not a bug :wink:

A pull request addressing this topic has been open [GUI] Silence TGFileDialog error messages #14865

This is now fixed in GitHub master by commit #1fa4a5c

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.