Comment 9 for bug 903676

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

> Committed r11205 to fix OS X Lion (64bit) crash when
> updating an attribute.

A - Testing current trunk (r11206) on OS X 10.7.2 64bit:

1) Inkscape 0.48+devel r11206
   debug and optimized build, Apple llvm-gcc-4.2

a) running without gdb:
Inkscape crashes (as before) when clicking on an attribute in the attribute list (upper right).

Attached: crash report from crash when running inkscape r11206 directly (without gdb).

b) running within gdb:
Inkscape allows to select an attribute, but fails to display the value in the edit field (lower right). New values can be typed into the edit field and updated (i.e. overwritten) without crash. It is not possible to actually edit existing values.

Console message when filling current attribute value into the edit field fails:
(inkscape:63244): Gtk-CRITICAL **: void gtk_text_buffer_emit_insert(GtkTextBuffer *, GtkTextIter *, const gchar *, gint): assertion `g_utf8_validate (text, len, NULL)' failed

2) Inkscape 0.48+devel r11206
   experimental optimized build, FSF GCC 4.6.3 [1]

Selecting and editing an attribute works as expected with current trunk (no crash, no warnings on the console).

B - Testing patch with current trunk (r11206) on OS X 10.7.2 64bit:

1) Inkscape 0.48+devel r11206+903676.tree.v1.patch
   debug 64bit build, Apple llvm-gcc-4.2

Quick tests browsing the rewritten XML node tree on the left seems ok, but current build is still affected by above issues (if run directly: crash when selecting an attribute, if run from within gdb: fails to edit actual attribute content).

2) Inkscape 0.48+devel r11206+903676.tree.v1.patch
   experimental 64bit optimized build, FSF GCC 4.6.3 [1]

Quick tests browsing the rewritten XML node tree on the left seems ok.
Selecting and editing an attribute works as expected (no crash, no warnings on the console).

System info:
------------
32bit builds on Mac OS X 10.5.8 (not affected):
- Apple GCC 4.2, Gtk+/x11 2.24.8, glib2 2.28.8, glibmm 2.28.0
- Apple GCC 4.2, Gtk+/quartz 2.24.10, glib2 2.28.8, glibmm 2.28.0

64bit builds on Mac OS X 10.6.8 (crash - UnconventionalT):
- Apple GCC 4.2, Gtk+/quartz 2.24.10, glib 2.30.2, glibmm 2.28.3

64bit builds on OS X 10.7.2 (crash - suv-lp):
- Apple llvm-gcc-4.2, Gtk+/x11 2.24.10, glib 2.30.2, glibmm 2.28.2
- Apple llvm-gcc-4.2, Gtk+/x11 2.24.10, glib 2.32.0, glibmm 2.28.2

64bit builds on OS X 10.7.2 (experimental, no more crash with r11206)
- FSF GCC 4.6.3 [1], Gtk+/x11 2.24.10, glib 2.32.0, glibmm 2.28.2

[1] *** Note: these are local experimental builds using a custom-installed compiler (Apple does not provide newer GCC versions due to license changes in GCC after 4.2). Building Inkscape with a different C++ compiler requires to rebuild all C++ binding libs with the same compiler - not supported in MacPorts - and to use them during building and at runtime.