Fails to load folder when encountering lost+found directory

Bug #2006988 reported by Saijin_Naib
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SoundConverter
Fix Committed
High
GautierPortet

Bug Description

When loading the root directory of my WD-Red in a USB enclosure (GPT, ext4), SoundConverter (v4.0.4, flatpak, Alpine Linux latest-stable x86_64) will silently fail when "walking" the directory and encountering the system folder lost+found.

```
flatpak run org.soundconverter.SoundConverter
F: Can't get document portal: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Gtk-Message: 00:23:38.845: Failed to load module "xapp-gtk3-module"
Gtk-Message: 00:23:38.845: Failed to load module "canberra-gtk-module"
Gtk-Message: 00:23:38.845: Failed to load module "canberra-gtk-module"
ERROR: Disabling mp3-id-tags output. Do you have "gst-plugins-good" installed?
ERROR: Disabling mp3-vbr-tags output. Do you have "gst-plugins-ugly" installed?
soundconverter 4.0.3
walking: 'file:///run/media/USERNAME/WD-Red'
Traceback (most recent call last):
  File "/app/lib/python3.10/site-packages/soundconverter/interface/filelist.py", line 170, in add_uris
    filelist = vfs_walk(uri)
  File "/app/lib/python3.10/site-packages/soundconverter/util/fileoperations.py", line 71, in vfs_walk
    filelist.extend(vfs_walk(dirlist.get_child(file_info).get_uri()))
  File "/app/lib/python3.10/site-packages/soundconverter/util/fileoperations.py", line 63, in vfs_walk
    dirlist = Gio.file_parse_name(uri).enumerate_children(
gi.repository.GLib.GError: g-io-error-quark: Error opening directory '/run/media/USERNAME/WD-Red/lost+found': Permission denied (14)
```

This will happen when loading the folder via the GUI and using the Add Folder method on the root of the drive, as well as by using the Add Folder method with CTRL+A to select all folders under the root.

What did work correctly was using Thunar to browse to the root of the drive, selecting all files/folders with CTRL+A, and then drag/drop into SoundConverter.

Revision history for this message
sezanzeb (sezanzeb) wrote (last edit ):
Revision history for this message
Saijin_Naib (synper311) wrote :

Wow, that is a fast time to fix! Thanks so much for looking into this, and sorry if I didn't provide as much info as needed to make it easier for you. I'm not very well versed with dev/debug to begin with, and I have absolutely no idea how to even approach running something in FlatPak with GDB haha.

Changed in soundconverter:
importance: Undecided → High
assignee: nobody → GautierPortet (kassoulet)
milestone: none → 4.0.4
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.