FS#74290 - [inkscape] gtk crash on startup

Attached to Project: Arch Linux
Opened by bartus (bartus) - Thursday, 31 March 2022, 10:09 GMT
Last edited by Christian Heusel (gromit) - Wednesday, 09 August 2023, 09:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Christian Hesse (eworm)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
Inkscape crashes on start up with: GTK_IS_STYLE_PROVIDER_PRIVATE (provider): failed error

Additional info:
* package version: Inkscape 1.1.2 (0a00cf5339, 2022-02-04, custom)

Steps to reproduce:
* install: pacman -Ss inkscape
* run: inkscape
* crash:

Stderr output:

$ LC_ALL=C inkscape

(inkscape:531894): Gtk-CRITICAL **: 12:08:27.919: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(inkscape:531894): Gtk-CRITICAL **: 12:08:27.919: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(inkscape:531894): Gtk-CRITICAL **: 12:08:27.919: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at https://inkscape.org/report
with a detailed description of the steps leading to the crash, so we can fix it.
** Message: 12:08:27.924: Error: Inkscape encountered an internal error and will close now.
This task depends upon

Closed by  Christian Heusel (gromit)
Wednesday, 09 August 2023, 09:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  Is reported to work again in the comments
Comment by bartus (bartus) - Thursday, 31 March 2022, 10:11 GMT
gdb backtrace:

(gdb) bt
#0 gtk_css_value_icon_theme_compute
(icon_theme=<optimized out>, property_id=<optimized out>, provider=<optimized out>, style=<optimized out>, parent_style=<optimized out>)
at ../gtk/gtk/gtkcssiconthemevalue.c:84
#1 0x00007ffff4349a7c in _gtk_css_value_compute
(parent_style=0x0, style=0x555556944300, provider=0x0, property_id=3, value=0x7ffff49c7ee0 <inherit.lto_priv>) at ../gtk/gtk/gtkcssvalue.c:97
#2 gtk_css_static_style_compute_value (section=0x0, specified=0x7ffff49c7ee0 <inherit.lto_priv>, id=3, parent_style=0x0, provider=0x0, style=0x555556944300)
at ../gtk/gtk/gtkcssstaticstyle.c:237
#3 _gtk_css_lookup_resolve (parent_style=0x0, style=0x555556944300, provider=0x0, lookup=0x555556946000) at ../gtk/gtk/gtkcsslookup.c:122
#4 gtk_css_static_style_new_compute (provider=<optimized out>, matcher=<optimized out>, parent=<optimized out>) at ../gtk/gtk/gtkcssstaticstyle.c:195
#5 0x00007ffff4333965 in gtk_css_static_style_get_default () at ../gtk/gtk/gtkcssstaticstyle.c:164
#6 gtk_css_node_init (cssnode=0x55555693a720) at ../gtk/gtk/gtkcssnode.c:667
#7 0x00007ffff56ebfe3 in g_type_create_instance (type=<optimized out>) at ../glib/gobject/gtype.c:1923
#8 0x00007ffff56d2cee in g_object_new_internal (class=class@entry=0x555556607870, params=params@entry=0x0, n_params=n_params@entry=0)
at ../glib/gobject/gobject.c:2011
#9 0x00007ffff56d3f35 in g_object_new_with_propertiesPython Exception <class 'TypeError'>: can only concatenate str (not "NoneType") to str
(object_type=, n_properties=0, names=names@entry=0x0, values=values@entry=0x0)
at ../glib/gobject/gobject.c:2181
#10 0x00007ffff56d4a9a in g_object_new (object_type=<optimized out>, first_property_name=first_property_name@entry=0x0) at ../glib/gobject/gobject.c:1821
#11 0x00007ffff45497a3 in gtk_css_widget_node_new (widget=0x5555569442c0) at ../gtk/gtk/gtkcsswidgetnode.c:302
#12 gtk_widget_init (instance=0x5555569442c0, g_class=0x5555569430e0) at ../gtk/gtk/gtkwidget.c:4472
#13 0x00007ffff56ebfe3 in g_type_create_instance (type=<optimized out>) at ../glib/gobject/gtype.c:1923
#14 0x00007ffff56d2cee in g_object_new_internal (class=class@entry=0x5555569430e0, params=params@entry=0x0, n_params=n_params@entry=0)
at ../glib/gobject/gobject.c:2011
#15 0x00007ffff56d42cd in g_object_newvPython Exception <class 'TypeError'>: can only concatenate str (not "NoneType") to str
(object_type=, n_parameters=0, parameters=0x0) at ../glib/gobject/gobject.c:2251
#16 0x00007ffff6535c86 in Glib::Object::Object(Glib::ConstructParams const&) () at /usr/lib/libglibmm-2.4.so.1
#17 0x00007ffff4df0d9d in Gtk::Object::Object(Glib::ConstructParams const&) () at /usr/bin/../lib/inkscape/../libgtkmm-3.0.so.1
#18 0x00007ffff4dccf3f in Gtk::Widget::Widget(Glib::ConstructParams const&) () at /usr/bin/../lib/inkscape/../libgtkmm-3.0.so.1
#19 0x00007ffff4d2bb46 in Gtk::Container::Container(Glib::ConstructParams const&) () at /usr/bin/../lib/inkscape/../libgtkmm-3.0.so.1
#20 0x00007ffff4d06f66 in Gtk::Bin::Bin(Glib::ConstructParams const&) () at /usr/bin/../lib/inkscape/../libgtkmm-3.0.so.1
#21 0x00007ffff4dd4d16 in Gtk::Window::Window(Glib::ConstructParams const&) () at /usr/bin/../lib/inkscape/../libgtkmm-3.0.so.1
#22 0x00007ffff4d2da0a in Gtk::Dialog::Dialog() () at /usr/bin/../lib/inkscape/../libgtkmm-3.0.so.1
#23 0x00007ffff769b13e in Inkscape::UI::Dialog::StartScreen::StartScreen() () at /usr/bin/../lib/inkscape/libinkscape_base.so
#24 0x00007ffff7960b46 in InkscapeApplication::on_activate() () at /usr/bin/../lib/inkscape/libinkscape_base.so
#25 0x00007ffff6535e49 in Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) () at /usr/lib/libglibmm-2.4.so.1
#29 0x00007ffff56e0824 in <emit signal ??? on instance ???> (instance=instance@entry=0x5555555e0950, signal_id=<optimized out>, detail=detail@entry=0)
at ../glib/gobject/gsignal.c:3553
#26 0x00007ffff56c2f8f in g_closure_invoke
(closure=0x5555555b8e50, return_value=0x0, n_param_values=1, param_values=0x7fffffffd1b0, invocation_hint=0x7fffffffd130)
at ../glib/gobject/gclosure.c:830
#27 0x00007ffff56ded9b in signal_emit_unlocked_R
(node=node@entry=0x55555560bee0, detail=detail@entry=0, instance=instance@entry=0x5555555e0950, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7fffffffd1b0) at ../glib/gobject/gsignal.c:3814
#28 0x00007ffff56e05c7 in g_signal_emit_valist
(instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fffffffd360) at ../glib/gobject/gsignal.c:3496
#30 0x00007ffff57df0fc in g_application_activate (application=application@entry=0x5555555e0950) at ../glib/gio/gapplication.c:2308
#31 0x00007ffff57e12f9 in g_application_real_local_command_line (application=0x5555555e0950, arguments=0x7fffffffd4a8, exit_status=0x7fffffffd4a4)
at ../glib/gio/gapplication.c:1144
#32 0x00007ffff57e147a in g_application_run (application=0x5555555e0950, argc=-11100, argv=<optimized out>) at ../glib/gio/gapplication.c:2538
#33 0x00007ffff60b4310 in __libc_start_call_main () at /usr/lib/libc.so.6
#34 0x00007ffff60b43c1 in __libc_start_main_impl () at /usr/lib/libc.so.6
#35 0x0000555555556c75 in _start ()
Comment by bartus (bartus) - Thursday, 31 March 2022, 10:15 GMT
Ditching local config has no effect, same error with `HOME=/tmp/test inkscape`
Comment by bartus (bartus) - Thursday, 31 March 2022, 10:27 GMT
Switching DE to xfce4 doesn't change anything.
Inkscape works without DE (tested with `xvfb-run` and `Xephyr`, attached `strace` logs hope it helps).
Xorg run: http://ix.io/3TUM
xvfb-run: http://ix.io/3TUN
xwd screenshot for xvfb-run: http://ix.io/3TUJ
Comment by Nathan Lee (nathanal) - Thursday, 07 April 2022, 08:57 GMT
Does changing the gtk theme and/or icon theme change behavior? (Adwaita theme and hicolor/adwaita icon theme being safe defaults).
Comment by ormsgard (ormsgard) - Tuesday, 03 May 2022, 06:09 GMT
I'm having this bug since today after upgrading gtkmm3 3.24.5-2 -> 3.24.6-1 and glibmm 2.66.2-1 -> 2.66.3-1. Downgrading both fixes it.
Comment by Tomas Coufal (Tumi) - Wednesday, 04 May 2022, 07:46 GMT
I had the same issue as @ormsgard and used the same workaround. Yesterday a new release landed for glibmm - 2.66.3-3, this fixed the issue for me (all packages up to date).
Comment by Antonio Rojas (arojas) - Wednesday, 04 May 2022, 08:03 GMT
The glibmm issue is unrelated to this bug report.
Comment by Freddie Chopin (Freddie Chopin) - Wednesday, 04 May 2022, 19:37 GMT
Had the same problem with glibmm 2.66.3-1 and gtkmm3 3.24.6-1 (most recent). After updating the system to glibmm 2.66.4-1 Inkscape starts correctly. I've also updated other packages, so glibmm may not be the real fix here.
Comment by Christian Hesse (eworm) - Wednesday, 09 August 2023, 07:37 GMT
Anybody can still reproduce this?
Comment by bartus (bartus) - Wednesday, 09 August 2023, 08:43 GMT
Nope, works fine now.

Loading...