Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mogwai crashes in Ubuntu File Dialog #422

Open
saadam1n opened this issue Feb 29, 2024 · 3 comments
Open

Mogwai crashes in Ubuntu File Dialog #422

saadam1n opened this issue Feb 29, 2024 · 3 comments

Comments

@saadam1n
Copy link

I get this issue whenever I navigate to any directory when a file dialog opens. Here's the terminal output:

(Mogwai:9052): Gtk-WARNING **: 19:42:46.174: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: Fatal error reading PNG image file: Invalid IHDR data (gdk-pixbuf-error-quark, 0)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: Fatal error reading PNG image file: Invalid IHDR data (gdk-pixbuf-error-quark, 0)

It appears that the file dialog tries loading icons from the custom theme I am using (Yaru) and crashes when it does not find image-missing.png (kind of ironic, if you ask me). However, I also tested this on Adwaita (the default icon theme) and I still go the same crash:

(Mogwai:10876): Gtk-WARNING **: 19:48:40.845: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Fatal error reading PNG image file: Invalid IHDR data (gdk-pixbuf-error-quark, 0)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Fatal error reading PNG image file: Invalid IHDR data (gdk-pixbuf-error-quark, 0)
@saadam1n saadam1n changed the title Mogawi crashes in Ubuntu File Dialog Mogwai crashes in Ubuntu File Dialog Feb 29, 2024
@zyhhncz
Copy link

zyhhncz commented Oct 18, 2024

I had the same problem. Did you have resolved this issue?

@saadam1n
Copy link
Author

saadam1n commented Oct 18, 2024 via email

@AdamYuan
Copy link

AdamYuan commented Nov 22, 2024

I also encountered the problem. It seems the crash happens as soon as there's a list entry with a cached file thumbnail in the dialog.
The strange thing is that I can't reproduce this crash in a minimal Gtk3 program that uses the same file dialog code. I think there might be some linking conflicts between Gtk3 and other libraries in Falcor.
As a temporary solution I replace the Gtk3 file dialog with Zenith file dialog (thanks to https://github.com/mlabbe/nativefiledialog for the Zenity-related code), and it works perfectly. Here is my fork: https://github.com/AdamYuan/Falcor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants