Slow loading of network share directories due to excessive data reading
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- c, linux
- Domain
- desktop, networking, performance
Research direction
Reproduce the issue in Pix 3.4.5 by opening a mounted SMB directory on Linux Mint and monitoring network activity while the gallery loads. Start by investigating the repeated GIO content-type warnings shown in the console. Done means thumbnails or placeholders appear without reading all remote file data first, with directory loading remaining responsive.
Written by the indexing model from the issue text.
Description
Distribution
Linux Mint 22.1
Package version
3.4.5
Frequency
Always
Bug description
When trying to browse a gallery of a directory located on an SMB network share, Pix takes a very long time to show the contents. Monitoring network activity shows that hundreds of megabytes are being read from the network share before any thumbnails or content appear on the screen. It seems that Pix reads all the data in the remote directory before displaying the gallery.
The network connection is stable and fast. I can confirm that it is not the cause of the bottleneck.
It seems that this bug happens "Almost Always", like very rarely things load fast, but I couldn't isolate the cause.
Packages: All packages are up to date.
Steps to reproduce
- Open Pix and navigate to a directory on an SMB network share (mounted).
- Click on the directory to view its contents.
- Observe the delay and monitor network activity to see the excessive data being read.
Expected behavior
Pix should load the directory and display thumbnails or placeholders without reading all the data in the remote directory, allowing for faster loading times.
Or perhaps read the data asynchronously.
Additional information
Console output:
Running Pix from the console shows the following lines:
$ pix
(pix:850659): Gtk-WARNING **: 09:09:52.749: Failed to register client: GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to register client
(pix:850659): GLib-GIO-CRITICAL **: 09:09:53.855: GFileInfo created without standard::content-type
(pix:850659): GLib-GIO-CRITICAL **: 09:09:53.855: file ../../../gio/gfileinfo.c: line 1821 (g_file_info_get_content_type): should not be reached
(pix:850659): GLib-GIO-CRITICAL **: 09:09:53.921: GFileInfo created without standard::content-type
(pix:850659): GLib-GIO-CRITICAL **: 09:09:53.921: file ../../../gio/gfileinfo.c: line 1821 (g_file_info_get_content_type): should not be reached
The last two lines get repeated every time a file is read, for each file when scanning a directory, whether the file is an image or not. Also when a directory is navigated to, and when a file is viewed, either by double-clicking it from the gallery browser or by navigating Next and Prev from an already open image.
- Dominant language
- C
- Stars
- 270
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from linuxmint/pix
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100