GTK3: fails to launch GUI with GTK+ 3.14

Bug #1375085 reported by su_v
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Liam P. White

Bug Description

After upgrading GTK+ from 3.12.2 to GTK+ 3.14, inkscape trunk and experimental compiled with experimental GTK3 fails to launch:

** (inkscape:57708): CRITICAL **: SPCanvas* sp_desktop_canvas(const SPDesktop*): assertion 'desktop != NULL' failed

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000000000010c
0x00000001001d89be in SPCanvas::forceFullRedrawAfterInterruptions ()

Reproduced on
- Mac OS X 10.7.5 with GTK+/X11 3.14 (~suv)
- OS X 10.9.0 with GTK+/Quartz 3.14 (Liam P. White)

Tags: crash gtk3
Revision history for this message
su_v (suv-lp) wrote :

Backtrace with 0.91pre2 r13566 on OS X 10.7.5 (no debug build available):

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000000000010c
0x00000001001ecee4 in SPCanvas::forceFullRedrawAfterInterruptions ()
(gdb) bt
#0 0x00000001001ecee4 in SPCanvas::forceFullRedrawAfterInterruptions ()
#1 0x000000010065289a in Inkscape::UI::Widget::SelectedStyle::on_opacity_changed ()
#2 0x000000010217576f in Glib::SignalProxyNormal::slot0_void_callback ()
#3 0x0000000103379e0d in g_closure_invoke ()
#4 0x000000010338ca37 in signal_emit_unlocked_R ()
#5 0x000000010338d7a2 in g_signal_emit_valist ()
#6 0x000000010338db12 in g_signal_emit ()
#7 0x0000000101929679 in gtk_spin_button_value_changed ()
#8 0x0000000103379e0d in g_closure_invoke ()
#9 0x000000010338c7b8 in signal_emit_unlocked_R ()
#10 0x000000010338d7a2 in g_signal_emit_valist ()
#11 0x000000010338db12 in g_signal_emit ()
#12 0x00000001017c0c66 in gtk_adjustment_value_changed ()
#13 0x000000010064f9b1 in Inkscape::UI::Widget::SelectedStyle::SelectedStyle ()
#14 0x0000000100384a78 in SPDesktopWidget::init ()
#15 0x000000010338f296 in g_type_create_instance ()
#16 0x000000010337fc1d in g_object_new_internal ()
#17 0x000000010337f3cc in g_object_newv ()
#18 0x000000010337f191 in g_object_new ()
#19 0x0000000100388671 in SPDesktopWidget::createInstance ()
#20 0x00000001003885ab in sp_desktop_widget_new ()
#21 0x000000010004bab3 in sp_file_new ()
#22 0x000000010004be11 in sp_file_new_default ()
#23 0x00000001000028f4 in sp_main_gui ()
#24 0x0000000100001ca4 in start ()

description: updated
description: updated
Revision history for this message
Liam P. White (liampwhite) wrote :

Proposing patch for trunk

Revision history for this message
su_v (suv-lp) wrote :

Patch tested successfully (prevents the crash on launch) with r13569 using GTK+/X11 and GTK+/Quartz 3.14 on OS X 10.7.5.

Related console message on launch:
** (inkscape:25753): CRITICAL **: void Inkscape::UI::Widget::SelectedStyle::on_opacity_changed(): assertion '_desktop' failed

AFAICT with the patch in place the proper functioning of the opacity spinbox in the status bar is restored, at least with GTK+ 3.14 builds (the patch does not affect the broken state of that widget after launch with GTK2 in trunk (and stable)).

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks for the patch. LGTM.
Pushed up to revision 13611.

Changed in inkscape:
status: New → Fix Committed
su_v (suv-lp)
Changed in inkscape:
assignee: nobody → Liam P. White (inkscapebrony)
milestone: none → 0.91
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.