crash when creating new grid after duplicate window close

Bug #183621 reported by Johan Engelen
6
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Rygle

Bug Description

From bug 179982

1. Start Inkscape
2. Duplicate window
3. close Duplicate window
4. enable grid (#) in original window
> Inkscape crashes with the same error as in screenshot newgrid.png

If you first enable grid in step 1, and disable in step 4. you get crash but without the error message.

Tags: crash grids
Changed in inkscape:
importance: Undecided → High
milestone: none → 0.46
status: New → Confirmed
Revision history for this message
Johan Engelen (johanengelen) wrote :

Fixed. When SPDesktop is destroyed, it was not removed from SPNamedview. very bad indeed! this is fixed now.
However, another bug still lives with similar trigger:
1. Start Inkscape
2. Duplicate window
3. draw a rectangle in the duplicate window
4. close Duplicate window
5. enable grid (#) in original window
> Inkscape crashes, with emergency crash

Changed in inkscape:
assignee: nobody → johanengelen
Changed in inkscape:
assignee: johanengelen → nobody
Revision history for this message
Johan Engelen (johanengelen) wrote :

Can no longer reproduce :S
Can anybody comment please whether this really got fixed by my fix?

Changed in inkscape:
assignee: nobody → johanengelen
status: Confirmed → Incomplete
Revision history for this message
Johan Engelen (johanengelen) wrote :

Assigning off me, so others might have a look at it.
I just reproduced it. So please ignore my comment of 2008-01-20.

Changed in inkscape:
assignee: johanengelen → nobody
status: Incomplete → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

I'm not able to reproduce it, using these steps, however perhaps we should leave it open since you suspect it's still there. However I'm going to drop the milestone since it doesn't seem to be too visible.

Changed in inkscape:
milestone: 0.46 → none
Revision history for this message
Johan Engelen (johanengelen) wrote :

These are the steps:
1. Start Inkscape
2. Duplicate window
3. draw a rectangle in the duplicate window
4. close Duplicate window
5. enable grid (#) in original window
> Inkscape crashes, with emergency crash

Revision history for this message
Christophe Dehais (christophe-dehais) wrote :

I was not able to reproduce with the above steps.

Revision history for this message
prkos (prkos) wrote :

I can confirm all 3 scenarios on WinXP, 0.46+pre4

The error message is always the same, "internal error" and autosave info.

Revision history for this message
Rygle (rygle) wrote :

Has anyone been able to reproduce this on Linux, or is it windows only. Please be specific about builds that do or don't crash.

Johan?
Bryce - ubuntu
Prkos - Win32
Christophe?

Thanks

Revision history for this message
Rygle (rygle) wrote :

I have just posted the debug stuff for pre4 on SF now. Please try and do a backtrace if possible;
* Put the files in the inkscape directory
* From a command prompt in that directory, type;
..>gdb (enter)
(gdb) file inkscape.exe inkscape.dbg (enter)
(gdb) run

May give an error about and xml file sigsev - type
(gdb) continue (enter)

Now it should run, and if you can reproduce the crash, then go to the command window and type bt (enter)
Copy the info into the bug report.

Thanks, Rygle

Changed in inkscape:
assignee: nobody → pittos
Revision history for this message
prkos (prkos) wrote :

These are my results from fedora 7, Inkscape dev build Jan 10th

1. scenario
crash, internal error message

2. scenario
no crash

3. scenario
crash, internal error + autosave info message

Revision history for this message
prkos (prkos) wrote :
Download full text (4.7 KiB)

On winXP pre4-2 all 3 scenarios freeze in gdb, bt looks the same but Im including them all here :

Program received signal SIGSEGV, Segmentation fault.
0x77c478c0 in strlen () from C:\WINDOWS\system32\msvcrt.dll
(gdb) bt
#0 0x77c478c0 in strlen () from C:\WINDOWS\system32\msvcrt.dll
#1 0x6861cbc3 in _g_gnulib_vasnprintf ()
   from C:\Program Files\inkscape\libglib-2.0-0.dll
#2 0x6861d8a7 in _g_gnulib_vasprintf ()
   from C:\Program Files\inkscape\libglib-2.0-0.dll
#3 0x686151a4 in g_vasprintf ()
   from C:\Program Files\inkscape\libglib-2.0-0.dll
#4 0x686023d6 in g_strdup_vprintf ()
   from C:\Program Files\inkscape\libglib-2.0-0.dll
#5 0x685ee6a7 in g_logv () from C:\Program Files\inkscape\libglib-2.0-0.dll
#6 0x685ee8c6 in g_log () from C:\Program Files\inkscape\libglib-2.0-0.dll
#7 0x63a61297 in g_type_check_instance_cast ()
   from C:\Program Files\inkscape\libgobject-2.0-0.dll
#8 0x00664a13 in connector_tb_event_attr_changed ()
#9 0x006a797d in Inkscape::XML::(anonymous namespace)::VectorNodeObserver::noti
fyAttributeChanged ()
#10 0x006a80e3 in Inkscape::XML::CompositeNodeObserver::notifyAttributeChanged
    ()
#11 0x004fb2c1 in Inkscape::XML::SimpleNode::setAttribute ()
#12 0x0042adfa in sp_repr_set_boolean ()
#13 0x0040c12e in sp_namedview_show_grids ()
#14 0x00451bf0 in SPDesktop::showGrids ()
#15 0x00451e25 in SPDesktop::toggleGrids ()
#16 0x00433851 in Inkscape::ZoomVerb::perform ()
#17 0x004e7d92 in sp_action_perform ()
#18 0x63a43945 in g_closure_invoke ()
   from C:\Program Files\inkscape\libgobject-2.0-0.dll
#19 0x63a57075 in signal_emit_unlocked_R ()
   from C:\Program Files\inkscape\libgobject-2.0-0.dll
#20 0x00000000 in ?? ()

Program received signal SIGSEGV, Segmentation fault.
0x77c478c0 in strlen () from C:\WINDOWS\system32\msvcrt.dll
(gdb) bt
#0 0x77c478c0 in strlen () from C:\WINDOWS\system32\msvcrt.dll
#1 0x6861cbc3 in _g_gnulib_vasnprintf ()
   from C:\Program Files\inkscape\libglib-2.0-0.dll
#2 0x6861d8a7 in _g_gnulib_vasprintf ()
   from C:\Program Files\inkscape\libglib-2.0-0.dll
#3 0x686151a4 in g_vasprintf ()
   from C:\Program Files\inkscape\libglib-2.0-0.dll
#4 0x686023d6 in g_strdup_vprintf ()
   from C:\Program Files\inkscape\libglib-2.0-0.dll
#5 0x685ee6a7 in g_logv () from C:\Program Files\inkscape\libglib-2.0-0.dll
#6 0x685ee8c6 in g_log () from C:\Program Files\inkscape\libglib-2.0-0.dll
#7 0x63a61297 in g_type_check_instance_cast ()
   from C:\Program Files\inkscape\libgobject-2.0-0.dll
#8 0x00664a13 in connector_tb_event_attr_changed ()
#9 0x006a797d in Inkscape::XML::(anonymous namespace)::VectorNodeObserver::noti
fyAttributeChanged ()
#10 0x006a80e3 in Inkscape::XML::CompositeNodeObserver::notifyAttributeChanged
    ()
#11 0x004fb2c1 in Inkscape::XML::SimpleNode::setAttribute ()
#12 0x0042adfa in sp_repr_set_boolean ()
#13 0x0040c12e in sp_namedview_show_grids ()
#14 0x00451bf0 in SPDesktop::showGrids ()
#15 0x00451de4 in SPDesktop::toggleGrids ()
#16 0x00433851 in Inkscape::ZoomVerb::perform ()
#17 0x004e7d92 in sp_action_perform ()
#18 0x63a43945 in g_closure_invoke ()
   from C:\Program Files\inkscape\libgobject-2.0-0.dll
#19 0x63a57075 in signal_emit_unlocked_R ()
   from C:\P...

Read more...

Revision history for this message
Johan Engelen (johanengelen) wrote :

This is still present in svn 20059.

Seems the listener to sodipodi:namedview XML is not removed when closing the duplicate window?

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Can't reproduce this on Fedora 10 using revision 21506

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

Inkscape 0.46+devel r21461on Mac OS X 10.5.7

no crash either way.
noticed console warnings: toggling grid on/off in original window after closing duplicated window produces 3 warnings for each toggle. No warnings occur when toggling grid view without/before duplicating the window.

(inkscape-bin:1643): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkWidget'

(inkscape-bin:1643): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GObject'

(inkscape-bin:1643): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed

(inkscape-bin:1643): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkWidget'

(inkscape-bin:1643): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GObject'

(inkscape-bin:1643): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed

Revision history for this message
Alvin Penner (apenner) wrote :

cannot produce a crash in Windows nightly build 21460

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

Inkscape 0.46+devel r22293 on OS X 10.5.8

cannot reproduced this crash with any of the 3 above listed scenarios. Can we close this bug as 'Fix released'?

Note: still see these Glib-GObject-WARNINGs though:
(inkscape-bin:90090): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkWidget'
(inkscape-bin:90090): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GObject'
(inkscape-bin:90090): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed

Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Windows XP, Inkscape 0.46, 0.47, 0.48.2 and trunk revision 10760, and on Ubuntu trunk revision 10760.
Did someone manage to reproduce it recently?

Revision history for this message
jazzynico (jazzynico) wrote :

Closing "Fix released" in 0.47. Don't hesitate to reopen if the bug reoccurs.

Changed in inkscape:
milestone: none → 0.47
status: Confirmed → 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.