regolith-linux / ilia

A GTK-based Desktop Executor
Apache License 2.0
83 stars 11 forks source link

[BUG] ilia 0.13.1 error when a symbol is not present in a theme #89

Open cmon1701 opened 3 months ago

cmon1701 commented 3 months ago
JournalErrors:
 systemd[1]: l2tpns.service: Failed with result 'exit-code'.
 systemd[1]: l2tpns.service: Failed with result 'exit-code'.
 ilia[3323945]: g_hash_table_lookup: assertion 'hash_table != NULL' failed
 ilia[3323945]: g_hash_table_lookup: assertion 'hash_table != NULL' failed
 regolith.desktop[3323945]: **
 regolith.desktop[3323945]: Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Symbol »image-missing« nicht im Thema Dracula vorhanden (gtk-icon-theme-error-quark, 0)
 ilia[3323945]: g_hash_table_lookup: assertion 'hash_table != NULL' failed
 ilia[3323945]: g_hash_table_lookup: assertion 'hash_table != NULL' failed
 ilia[3323945]: g_hash_table_lookup: assertion 'hash_table != NULL' failed
 ilia[3323945]: g_hash_table_lookup: assertion 'hash_table != NULL' failed
 ilia[3323945]: g_hash_table_lookup: assertion 'hash_table != NULL' failed
 ilia[3323945]: g_hash_table_lookup: assertion 'hash_table != NULL' failed
 systemd[1]: l2tpns.service: Failed with result 'exit-code'.
 regolith.desktop[3323944]: Aborted (core dumped)
 systemd[1]: l2tpns.service: Failed with result 'exit-code'.
 regolith.desktop[3324576]: Aborting, failed to grab input: 1
Package: ilia 0.13.1-jammy-1regolith-jammy [origin: https://regolith-desktop.org/release-3_1-ubuntu-jammy-amd64]
kgilmer commented 3 months ago

Hi @cmon1701 , thanks for the bug report. I am unable to reproduce this myself. Did I miss a step?

  1. install the dracula theme
  2. set the dracula theme
  3. run ilia
cmon1701 commented 3 months ago

Hi @kgilmer, the error only occurs about once a day, not every time I use Ilia. That makes the error not so easy to reproduce, I guess.

kgilmer commented 3 months ago

Ah ok. I did look around the code but didn't find any obvious problems w/ icon handling. From searches it seems that people see crashes like this in other programs from snap-packaged apps. Kindly update the ticket if you find a way to reproduce the problem reliably, thanks!

cmon1701 commented 3 months ago

I found a way to reproduce it! It happens about every third time when I do this call from command line:

❯ ilia -p apps

(ilia:1814865): GLib-CRITICAL **: 10:33:28.561: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:1814865): GLib-CRITICAL **: 10:33:28.561: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:1814865): GLib-CRITICAL **: 10:33:28.561: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:1814865): GLib-CRITICAL **: 10:33:28.561: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:1814865): GLib-CRITICAL **: 10:33:28.561: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:1814865): GLib-CRITICAL **: 10:33:28.561: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:1814865): GLib-CRITICAL **: 10:33:28.561: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:1814865): GLib-CRITICAL **: 10:33:28.561: g_hash_table_lookup: assertion 'hash_table != NULL' failed
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Symbol »image-missing« nicht im Thema Dracula vorhanden (gtk-icon-theme-error-quark, 0)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Symbol »image-missing« nicht im Thema Dracula vorhanden (gtk-icon-theme-error-quark, 0)
[1]    1814865 IOT instruction (core dumped)  ilia -p apps
cmon1701 commented 3 months ago

Hi @kgilmer, the error only occurs about once a day, not every time I use Ilia. That makes the error not so easy to reproduce, I guess.

I have to correct my statement : The error does occur more much often, about ever third time. By command line call or Win+Space (just nothing happens when the error occurs). I only get the Ubuntu error window about once a day (and it seems that the corresponding file /var/crash/_usr_bin_ilia.1000.crash is only written once a day).

newptcai commented 2 months ago

I have a similar problem. When I run ilia from command line, I see this error

ilia -p apps

(ilia:70743): GLib-CRITICAL **: 13:52:54.324: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:70743): GLib-CRITICAL **: 13:52:54.324: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:70743): GLib-CRITICAL **: 13:52:54.324: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:70743): GLib-CRITICAL **: 13:52:54.324: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:70743): GLib-CRITICAL **: 13:52:54.324: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:70743): GLib-CRITICAL **: 13:52:54.324: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:70743): GLib-CRITICAL **: 13:52:54.324: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(ilia:70743): GLib-CRITICAL **: 13:52:54.324: g_hash_table_lookup: assertion 'hash_table != NULL' failed
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Icon 'image-missing' not present in theme hicolor (gtk-icon-theme-error-quark, 0)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Icon 'image-missing' not present in theme hicolor (gtk-icon-theme-error-quark, 0)
Aborted (core dumped)

Note that if I run ilia -p keybidings -a, there is no such problem.

A walk around is to change Icon in gnome-tweak from Highcolor to Adwaita.

image