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 89640 - Dia 0.90 w/o fonts -> Crash when using many (most?) of the stencils
Dia 0.90 w/o fonts -> Crash when using many (most?) of the stencils
Status: RESOLVED WONTFIX
Product: dia
Classification: Other
Component: general
0.90
Other Linux
: Normal critical
: ---
Assigned To: Dia maintainers
Dia maintainers
: 89119 93073 97782 100914 104863 104872 107442 109414 111311 111879 112599 117658 123174 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-08-01 20:06 UTC by corydodt_spambucket
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description corydodt_spambucket 2002-08-01 20:06:02 UTC
(As reported to Debian - the package maintainer has not upstreamed this bug
or claimed it as his own, so I will.)

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux corylinux 2.4.18-bf2.4 #1 Sam Mär 30 00:56:06 CET 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages dia depends on:
ii  dia-common                 0.90-2        Diagram editor (common files)
ii  libart2                    1.4.1.7-1     The GNOME canvas widget - runtime 
ii  libc6                      2.2.5-7       GNU C Library: Shared libraries an
ii  libgdk-pixbuf2             0.17.0-2      The GdkPixBuf library.
ii  libglib1.2                 1.2.10-5      The GLib library of C routines
ii  libgtk1.2                  1.2.10-12     The GIMP Toolkit set of widgets fo
ii  libpng2                    1.0.12-3      PNG library - runtime
ii  libpopt0                   1.6.4-1       lib for parsing cmdline parameters
ii  libunicode0                0.4.0-2       The GNOME Unicode library.
ii  libxml1                    1:1.8.17-2    GNOME XML library
ii  xlibs                      4.2.0-0pre1v1 X Window System client libraries
ii  zlib1g                     1:1.1.4-1     compression library - runtime

Debian Bug report logs - #151281

Severity: important; Package: dia; Reported by: "Cory Dodt"
<xant@users.sourceforge.net>; dated Fri, 28 Jun 2002 15:33:01 UTC;
Maintainer for dia is Fredrik Hallenberg <hallon@debian.org>;
[ -- snip mailer header --]
Date: Fri, 28 Jun 2002 08:28:57 -0700

Package: dia
Version: 0.90-2
Severity: important

Steps to reproduce:
-------------------
$ dia
  (in dia window) File>New (ctrl-N)
                  Click Time Scale or Data Line button in the toolbox
                  Click inside the new dia document
Segmentation fault


Subject: Crashes in other stencils
Date: Fri, 28 Jun 2002 12:56:27 -0700

Package: dia
Version: 0.90-2
Followup-For: Bug #151281

Being a new user, I didn't realize that the two buttons I mentioned earlier are
actually part of the Chronogram stencil set.  Once I realized that I
checked to see if other stencils also cause it to crash, and they do.
I attempted a complete list of the stencils that come with dia that cause it
to crash when used.

Cronogram>*all*
Civil>Container
Civil>Frequency Converter
ER>Entity
ER>Weak Entity
ER>Relationship
ER>Attribute
Electric>Normally open contact
Electric>Normally closed contact
Electric>Normally open position switch
Electric>Normally closed position switch
Electric>Relay command organ
Electric>Relay
Electric>Lamp
FS>*all*
...

At this point I stopped and ran gdb with a random sampling of these
stencils.  In every case, I got the following traceback:

  • #0 apply_textstr_properties
  • #1 font_getfont
  • #2 attributes_get_default_font
  • #3 _init
    from /usr/lib/dia/libflowchart_objects.so
  • #4 free_scroll_tool
  • #5 ddisplay_canvas_events
  • #6 gtk_marshal_BOOL__POINTER
    from /usr/lib/libgtk-1.2.so.0
  • #7 gtk_signal_remove_emission_hook
    from /usr/lib/libgtk-1.2.so.0
  • #8 gtk_signal_set_funcs
    from /usr/lib/libgtk-1.2.so.0
  • #9 gtk_signal_emit
    from /usr/lib/libgtk-1.2.so.0
  • #10 gtk_widget_event
    from /usr/lib/libgtk-1.2.so.0
  • #11 gtk_propagate_event
    from /usr/lib/libgtk-1.2.so.0
  • #12 gtk_main_do_event
    from /usr/lib/libgtk-1.2.so.0
  • #13 gdk_wm_protocols_filter
    from /usr/lib/libgdk-1.2.so.0
  • #14 g_get_current_time
    from /usr/lib/libglib-1.2.so.0
  • #15 g_get_current_time
    from /usr/lib/libglib-1.2.so.0
  • #16 g_main_run
    from /usr/lib/libglib-1.2.so.0
  • #17 gtk_main
    from /usr/lib/libgtk-1.2.so.0
  • #18 main
  • #19 __libc_start_main
    from /lib/libc.so.6
  • #0 init_x11_font
    at font.c line 534
  • #1 font_getfont
    at font.c line 1192
  • #2 g_module_check_init
    from /usr/lib/dia/libchronogram_objects.so
  • #3 create_object_button_press
    at create_object.c line 54
$4 = (GdkFont *) 0x0
(gdb)


Can dia be built with Gnome2?  I might attempt that, and see if these
crashes are reproducible.
Comment 1 Lars Clausen 2002-08-01 20:44:07 UTC
Looks like it's having trouble finding some fonts.  It's not as good about that as it should be.  To see if it's particular fonts or all fonts, try the following:  In a new diagram, add a Text object.  If that crashes, next double-click the Text object icon (the one with the T), select a different font, click OK and then make a new Text object.

Probably Dia should depend on some package that contains the appropriate (default postscript) fonts.
Comment 2 corydodt_spambucket 2002-08-01 21:36:06 UTC
Erf, I followed your directions--it crashes when I try to use the text
tool, and it 
crashes when I double-click on the text tool as well (I don't get a
font dialog).
Comment 3 corydodt_spambucket 2002-08-01 21:37:09 UTC
Any guess at what ps fonts I need for this to work, or (better yet) 
what package those fonts are in?
Comment 4 Lars Clausen 2002-08-01 21:45:46 UTC
Try gsfonts and gsfonts-x11.  If this helps, please let the Debian
maintainer know that this dependency is necessary.
Comment 5 corydodt_spambucket 2002-08-01 21:49:14 UTC
Managed to answer my own question.  The debian package "recommends"
gsfonts-x11, which contains ps fonts.  When this package is installed,
Dia works properly.  (Unfortunately, galeon looks horrible when
gsfonts-x11 is installed, so I have to open <a
href='http://bugs.debian.org/galeon'>another bug</a> to report that.)

So there's now a workaround, at least.
Comment 6 Lars Clausen 2002-08-01 21:53:36 UTC
"recommends" is slightly weak for something that Dia plain doesn't work without.
That should be changed.  I'm closing this bug.
Comment 7 corydodt_spambucket 2002-08-01 22:18:41 UTC
Ack, not so fast! Apparently Debian policy won't allow a package to
require binary fonts.  So Dia has to have some way to recover
gracefully if the fonts aren't there.  Please consider re-opening this
bug, or contact the package maintainer directly, because they won't be
able to just change the dependencies (I have asked, just in case, but
I don't expect it to happen).  See
http://www.debian.org/doc/debian-policy/ch-customized-programs.html#fr51
Comment 8 Lars Clausen 2002-12-11 14:13:42 UTC
*** Bug 100914 has been marked as a duplicate of this bug. ***
Comment 9 Lars Clausen 2003-01-15 11:14:23 UTC
In the CVS version, we've totally abolished X font handling in favor of&#013;&#010;PangoFT2 (for Unix, that is).  This means that we need access to the&#013;&#010;font files, something the X font server does not give us.  Thus, we will&#013;&#010;need to include at least a minimal set of fonts (sans, serif, monospace)&#013;&#010;with the distribution.&#013;&#010;&#013;&#010;Reopening this to remind us to include fonts.&#013;&#010;&#013;&#010;For debian users at least, 0.90 can be fixed by installing gsfonts-x11.&#013;&#010;Other distributions can probably be fixed similarly, please add info.
Comment 10 Lars Clausen 2003-01-15 11:15:10 UTC
*** Bug 89119 has been marked as a duplicate of this bug. ***
Comment 11 Lars Clausen 2003-01-31 01:36:10 UTC
*** Bug 104863 has been marked as a duplicate of this bug. ***
Comment 12 Lars Clausen 2003-03-05 18:04:55 UTC
*** Bug 107442 has been marked as a duplicate of this bug. ***
Comment 13 Lars Clausen 2003-04-22 01:49:50 UTC
*** Bug 111311 has been marked as a duplicate of this bug. ***
Comment 14 Lars Clausen 2003-04-30 00:44:22 UTC
*** Bug 111879 has been marked as a duplicate of this bug. ***
Comment 15 Lars Clausen 2003-05-08 19:54:43 UTC
*** Bug 112599 has been marked as a duplicate of this bug. ***
Comment 16 Lars Clausen 2003-07-17 14:28:17 UTC
*** Bug 117658 has been marked as a duplicate of this bug. ***
Comment 17 Lars Clausen 2003-08-18 06:16:06 UTC
*** Bug 109414 has been marked as a duplicate of this bug. ***
Comment 18 Hans Breuer 2004-01-05 17:15:28 UTC
*** Bug 97782 has been marked as a duplicate of this bug. ***
Comment 19 Hans Breuer 2004-01-05 18:22:16 UTC
*** Bug 123174 has been marked as a duplicate of this bug. ***
Comment 20 Hans Breuer 2004-01-05 18:27:37 UTC
*** Bug 93073 has been marked as a duplicate of this bug. ***
Comment 21 Hans Breuer 2004-01-05 18:35:16 UTC
make the summary more verbose ...
Comment 22 Lars Clausen 2004-02-17 17:41:04 UTC
This problem has disappeared with the move to PangoFT2, to be replaced
by other more subtle problems:)  Please upgrade to at least 0.91,
preferably 0.92.2 (which solves a nasty bug with newer Pango versions).
Comment 23 Hans Breuer 2004-05-20 19:32:05 UTC
*** Bug 104872 has been marked as a duplicate of this bug. ***