Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 791151 - www-client/firefox crash when dragging tabs
Summary: www-client/firefox crash when dragging tabs
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-20 00:43 UTC by doj
Modified: 2022-09-28 12:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,6.12 KB, text/plain)
2021-05-20 00:45 UTC, doj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description doj 2021-05-20 00:43:51 UTC
I have built firefox versions 78.10.1 and 88.0.1 , both have the same issue. They crash immediately when I drag (re-arrange) any tabs. I have a fairly minimal X11 setup, with only the bare X server and the lumina desktop, I didn't install any gnome. Looking at the console output of the crashing firefox:

doj@cubicle:~ $ firefox 

(firefox:7244): Gtk-WARNING **: 17:32:27.606: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:/var/tmp/portage/x11-libs/gtk+-3.24.26/work/gtk+-3.24.26/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/gnome/32x32/status/image-missing.png: Error opening file /usr/share/icons/gnome/32x32/status/image-missing.png: No such file or directory (g-io-error-quark, 1)
Bail out! Gtk:ERROR:/var/tmp/portage/x11-libs/gtk+-3.24.26/work/gtk+-3.24.26/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/gnome/32x32/status/image-missing.png: Error opening file /usr/share/icons/gnome/32x32/status/image-missing.png: No such file or directory (g-io-error-quark, 1)
Redirecting call to abort() to mozalloc_abort


Indeed my system did not have the file /usr/share/icons/gnome/32x32/status/image-missing.png
In fact, my system didn't even have the directory /usr/share/icons/gnome/32x32/status/
I created that directory and copied a png image with the expected filename into it. Now firefox is not crashing any more and I can re-arrange tabs as expected.

I assume that somewhere in firefox this path is hardcoded. Maybe the ebuild can install an image into this location?
Comment 1 doj 2021-05-20 00:45:23 UTC
Created attachment 709935 [details]
emerge --info
Comment 2 doj 2021-05-20 00:47:58 UTC
Update: after submitting the bug, I wanted to add an attachment. Clicking the "Browse..." button had firefox crash again, this time expecting the file:

/usr/share/icons/gnome/16x16/status/image-missing.png

After I copied a file into that location, I could use the browse file feature. So maybe firefox is expecting this icon in several sizes. On my system I have such icons in the directory /usr/share/icons/Adwaita/
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2021-05-21 15:55:50 UTC
I am not sure this is a firefox problem. Firefox doesn't install these files and they aren't referenced in source code.

Like you, I have these files below /usr/share/icons/Adwaita but no /usr/share/icons/gnome/<size>... at all and I have no crashes.

A quick search showed https://bugzilla.mozilla.org/show_bug.cgi?id=1472420 -- sadly, the reporter did not mention the software causing the problem.
Comment 4 doj 2021-05-22 01:05:55 UTC
So it's maybe the GTK framework that wants to look up this icon?
And maybe my Gentoo system doesn't correctly set a default path for icon lookups?

Looking at https://developer.gnome.org/gtk3/stable/GtkSettings.html#GtkSettings--gtk-icon-theme-name it seems that "Adwaita" is the default gtk (3) icon theme name.

https://www.reddit.com/r/voidlinux/comments/b5ngjy/application_crashes_when_attempting_to_open_the/ had the same issue I have.
Comment 5 Joonas Niilola gentoo-dev 2022-09-28 12:47:20 UTC
I'm pretty sure this isn't an issue anymore with updated versions.