uriegel / systemicons

MIT License
6 stars 10 forks source link

No icons on Linux #3

Open WhyNotHugo opened 8 months ago

WhyNotHugo commented 8 months ago

I'm trying out https://github.com/pop-os/cosmic-files, which uses this crate for rendering icons. cosmic-files renders no icons for me, which I reported at https://github.com/pop-os/cosmic-files/issues/48

I tried running the example from this crate and it doesn't seem to work for me. When I run it i prints:

Serving example on http://localhost:8888

When I visit the page, it prints:

(hello:30932): GLib-CRITICAL **: 20:22:44.882: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(hello:30932): GLib-CRITICAL **: 20:22:44.882: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(hello:30932): GLib-CRITICAL **: 20:22:44.882: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(hello:30932): GLib-CRITICAL **: 20:22:44.882: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(hello:30932): GLib-CRITICAL **: 20:22:44.882: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(hello:30932): Gtk-CRITICAL **: 20:22:44.882: gtk_icon_info_get_filename: assertion 'icon_info != NULL' failed

(hello:30932): GLib-CRITICAL **: 20:22:44.882: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(hello:30932): GLib-CRITICAL **: 20:22:44.882: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(hello:30932): GLib-CRITICAL **: 20:22:44.882: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(hello:30932): Gtk-CRITICAL **: 20:22:44.882: gtk_icon_info_get_filename: assertion 'icon_info != NULL' failed
zsh: segmentation fault  cargo run --example=hello

The page renders no icons:

Screenshot shows the browser rendering the test page with all images replaced with the placeholder which indicates "broken or missing image"

WhyNotHugo commented 8 months ago

Looking at the browser inspect, it is clear that the process segfault'd before responding to the image requests. The browser got a CONNECTION REFUSED as response for the images.