After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 528903 - Text connected to box crashes on load
Text connected to box crashes on load
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
devel
Other All
: Normal critical
: 0.97
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-19 12:52 UTC by Leon Stringer
Modified: 2008-04-19 14:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Leon Stringer 2008-04-19 12:52:13 UTC
Steps to reproduce:
1. Create new diagram.
2. In the toolbox click 'Box' and click on the diagram window to add it.
3. In the toolbox click 'Text' and click on the diagram window to add it.
4. Type some text for the newly added Text (e.g. "Test").
5. Drag the Text object so that the green connection point is over the centre of the Box object so the point turns red to indicate it is linked.
6. Save diagram and close diagram window.
7. Load diagram (e.g. from the toolbox File menu). Dia crashes.

Stack trace:
Backtrace was generated from '/usr/local/bin/dia'

[?1034h[Thread debugging using libthread_db enabled]
[New Thread 0xb807fb80 (LWP 11083)]
0x00110416 in __kernel_vsyscall ()

Thread 1 (Thread 0xb807fb80 (LWP 11083))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 g_spawn_sync
    from /lib/libglib-2.0.so.0
  • #3 g_spawn_command_line_sync
    from /lib/libglib-2.0.so.0
  • #4 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #5 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #6 google_breakpad::ExceptionHandler::InternalWriteMinidump
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #7 google_breakpad::ExceptionHandler::HandleException
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #8 <signal handler called>
  • #9 dia_font_set_height
    at font.c line 394
  • #10 dia_font_build_layout
    at font.c line 581
  • #11 dia_font_get_sizes
    at font.c line 726
  • #12 text_line_cache_values
    at textline.c line 300
  • #13 text_line_get_width
    at textline.c line 165
  • #14 text_get_line_width
    at text.c line 126
  • #15 text_set_font
    at text.c line 177
  • #16 text_set_attributes
    at text.c line 1052
  • #17 apply_textattr_properties
    at text.c line 1174
  • #18 textobj_set_props
    at textobj.c line 181
  • #19 read_connections
    at load_save.c line 353
  • #20 diagram_data_load
    at load_save.c line 650
  • #21 diagram_load_into
    at diagram.c line 258
  • #22 diagram_load
    at diagram.c line 305
  • #23 open_recent_file_callback
    at recent_files.c line 161
  • #24 g_cclosure_marshal_VOID__VOID
    from /lib/libgobject-2.0.so.0
  • #25 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #26 ??
    from /lib/libgobject-2.0.so.0
  • #27 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #28 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #29 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #30 ??
  • #31 ??
  • #32 ??
  • #0 __kernel_vsyscall

Other information:
I see this problem on Fedora 7 and Fedora 9 Beta (trace from F9B).
Comment 1 Hans Breuer 2008-04-19 14:13:27 UTC
thanks for the debug help, just fixed :

2008-04-19  Hans Breuer  <hans@breuer.org>

	* objects/standard/textobj.c(textobj_load) : intialize TextObj::attrs 
	from TextObj::text (bug #528903, Leon Stringer)
	* objects/Istar/goal.c objects/Istar/other.c objects/Jackson/domain.c
	  objects/SADT/box.c : had a similar problem leaving attrs 
	 uninitialized in their create method