GNOME Bugzilla – Bug 89640
Dia 0.90 w/o fonts -> Crash when using many (most?) of the stencils
Last modified: 2004-12-22 21:47:04 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:
+ Trace 25750
$4 = (GdkFont *) 0x0 (gdb) Can dia be built with Gnome2? I might attempt that, and see if these crashes are reproducible.
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.
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).
Any guess at what ps fonts I need for this to work, or (better yet) what package those fonts are in?
Try gsfonts and gsfonts-x11. If this helps, please let the Debian maintainer know that this dependency is necessary.
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.
"recommends" is slightly weak for something that Dia plain doesn't work without. That should be changed. I'm closing this bug.
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
*** Bug 100914 has been marked as a duplicate of this bug. ***
In the CVS version, we've totally abolished X font handling in favor of
PangoFT2 (for Unix, that is). This means that we need access to the
font files, something the X font server does not give us. Thus, we will
need to include at least a minimal set of fonts (sans, serif, monospace)
with the distribution.

Reopening this to remind us to include fonts.

For debian users at least, 0.90 can be fixed by installing gsfonts-x11.
Other distributions can probably be fixed similarly, please add info.
*** Bug 89119 has been marked as a duplicate of this bug. ***
*** Bug 104863 has been marked as a duplicate of this bug. ***
*** Bug 107442 has been marked as a duplicate of this bug. ***
*** Bug 111311 has been marked as a duplicate of this bug. ***
*** Bug 111879 has been marked as a duplicate of this bug. ***
*** Bug 112599 has been marked as a duplicate of this bug. ***
*** Bug 117658 has been marked as a duplicate of this bug. ***
*** Bug 109414 has been marked as a duplicate of this bug. ***
*** Bug 97782 has been marked as a duplicate of this bug. ***
*** Bug 123174 has been marked as a duplicate of this bug. ***
*** Bug 93073 has been marked as a duplicate of this bug. ***
make the summary more verbose ...
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).
*** Bug 104872 has been marked as a duplicate of this bug. ***