Bug#1101158: glib2.0: Can not open files from smb share in since 2.84.0-2

Ian Wienand ian at wienand.org
Mon Mar 24 04:55:02 GMT 2025


Ok, some more searching turned up

https://gitlab.gnome.org/GNOME/eog/-/issues/312

which describes eog crashing in a similar way when viewing images on a
smb share, because of the meta-data returned by gvfs.

https://gitlab.gnome.org/GNOME/gimp/-/issues/9994

Describes a similar issue in gimp

However, if I do

---
$ gio info smb://...<file>
...
attributes:
  standard::type: 1
...
  standard::content-type: image/jpeg
  standard::fast-content-type: image/jpeg
---

it would seem that gio at least thinks it has standard::content-type

I do probably think glib is warning here because of some other issue,
but what that is I am open to suggestions :)

On Mon, 24 Mar 2025 at 15:31, Ian Wienand <ian at wienand.org> wrote:
>
> Source: glib2.0
> Version: 2.84.0-2
> Severity: normal
> X-Debbugs-Cc: ian at wienand.org
>
> Dear Maintainer,
>
> I can no longer upload files from Firefox 136.0.2 from a smb share I
> have mounted, or open them in Gimp (this is the two things I've found).
>
> I can enter the upload dialog, browse the file and see it, but when I
> upload it gives "The file does not have read permissions" in a modal
> (I'm sure that's a spurious error) and in the journal logs I can see
>
> ---
> Mar 24 15:14:30 framework firefox-bin[18770]: GFileInfo created without standard::content-type
> Mar 24 15:14:30 framework firefox-bin[18770]: file ../../../gio/gfileinfo.c: line 1821 (g_file_info_get_content_type): should not be reached
> Mar 24 15:14:30 framework firefox.desktop[18770]: [Parent 18770, Main Thread] WARNING: GFileInfo created without standard::content-type: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
> Mar 24 15:14:30 framework firefox.desktop[18770]: [Parent 18770, Main Thread] WARNING: file ../../../gio/gfileinfo.c: line 1821 (g_file_info_get_content_type): should not be reached: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
> ---
>
> I tried with firefox-beta (137.0b9) and I get the same thing
>
> ---
> (firefox-beta:14257): GLib-GIO-CRITICAL **: 14:19:44.355: GFileInfo created without standard::content-type
> [Parent 14257, Main Thread] WARNING: file ../../../gio/gfileinfo.c: line 1821 (g_file_info_get_content_type): should not be reached: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
>
> (firefox-beta:14257): GLib-GIO-CRITICAL **: 14:19:44.355: file ../../../gio/gfileinfo.c: line 1821 (g_file_info_get_content_type): should not be reached
> [Parent 14257, Main Thread] WARNING: GFileInfo created without standard::content-type: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
> ---
>
> Out of interest I also tried with GTK_USE_PORTAL=1 and I see the "new"
> dialog box then, but when I try to upload it just dies with no other
> details.  In the logs there is
>
> ---
> [Parent 22691, Main Thread] WARNING: invalid cast from 'GtkFileChooserNative' to 'GtkWindow': 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
>
> (firefox-beta:22691): GLib-GObject-CRITICAL **: 15:18:41.707: invalid cast from 'GtkFileChooserNative' to 'GtkWindow'
> [Parent 22691, Main Thread] WARNING: gtk_message_dialog_new: assertion 'parent == NULL || GTK_IS_WINDOW (parent)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:201
> ---
>
> I think that might be a separate issue, just adding for completness ...
>
> I then tried opening with gimp which seems to use a different file
> chooser again, and it gives the same error in the logs
>
> ---
> Mar 24 15:27:24 framework gimp-3.0[24342]: GFileInfo created without standard::content-type
> Mar 24 15:27:24 framework gimp-3.0[24342]: file ../../../gio/gfileinfo.c: line 1821 (g_file_info_get_content_type): should not be reached
> ---
>
> and gives an error "the file doesn't exist".
>
> Note this only seems to happen for files on the mounted smb share.
> From nautilus I can see them, open them, etc. just fine.  It's just
> the upload dialog AFAICT -- I haven't triggered it any other way.
>
> I also tried Chrome ... and the window just exits and the upload never
> happens; but I can't get a message out of the logs for that though?
>
> All of this makes me think it is not a gimp/firefox specific thing,
> it's something lower in glib?
>
> -i
>
> -- System Information:
> Debian Release: trixie/sid
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 6.12.19-amd64 (SMP w/16 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_WARN
> Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled



More information about the pkg-gnome-maintainers mailing list