Dear Maintainer, Creating a text element breaks all GUI fonts in dia. Steps to reproduce: - open dia - create a text element - right click on the text element
Hello, I cannot reproduce the bug on a up-to-date Debian Sid with XFCE. Your version of dia is not the latest available (0.97.3+git20220525-4 is available in unstable), but that shouldn't be the origin of the bug since the difference between -3+b1 and -4 is only a change in the recommended packages. Can you try to provide more context, so I can reproduce the issue? What is your desktop environment? Do you have any specific fonts installed? Philippe. Le 22/09/2022 à 20:56, Dr. Nikolaus Klepp a écrit :
Hi! I just found out that installing libfreetype6_2.10.4+dfsg-1+deb11u1_amd64.deb solves the problem. I assume that "Bitstream Vera Sans 345593.26171875" tries to create a font of size 345593, which is a bit strange. Looks like a overflow or division by zero to me. I have a lot of old TTF fonsts installed + mscorefonts + bitmap fonts (enabled for Xorg). Desktop Environment is TDE. Anyway, the affectd Bitstream Vera Sans is from ttf-bitstream-vera 1.10-8.2 Special settings for GDK/GTK: GDK_DPI_SCALE=1.25 GTK_CSD=0 LD_PRELOAD=libgtk3-nocsd.so.0 Nik Anno domini 2022 Thu, 22 Sep 21:53:16 +0200 Philippe SWARTVAGHER scripsit:
I removed ~/.dia --> dia now works again as expected. So for me this bug can be closed. Probably it'll show itseff again, but for now purging the configs is good enough. Nik -- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
Hello, Since I didn’t manage to reproduce the bug, but it seems there is a bug anyway (the error message, and the fact you needed to remove the ~/.dia folder), I keep the bug open, but add the unreproducible tag. Philippe.
Hello, I am facing the same bug on bookworm, and removing ~/.dia/ does *not* solve the issue for me. Sometimes simply opening and selecting a text element causes this problem, that is, all text disappear in the GUI / menus. Sometimes there is an additional consequence: several text elements of the diagram also disappear, but I just have to zoom or unzoom to get them back. It's somewhat random and not always reproducible, but it happens very often (typically within 15 seconds of opening the document and working in it). Information on my system: - dia version: 0.97.3+git20220525-5 - libfreetype6 version: 2.12.1+dfsg-4 - Desktop environment: i3 It looks related to bug #1025239 (same effect but different cause). Below are example errors spewed out by Dia: (dia:641138): Pango-WARNING **: 14:21:06.557: failed to create cairo scaled font, expect ugly output. the offending font is 'Noto Sans 57994.88671875' (dia:641138): Pango-WARNING **: 14:21:06.557: font_face status is: error occurred in libfreetype (dia:641138): Pango-WARNING **: 14:21:06.557: scaled_font status is: error occurred in libfreetype (dia:641138): Pango-WARNING **: 14:21:07.012: failed to create cairo scaled font, expect ugly output. the offending font is 'Noto Sans 50745.3642578125' (dia:641138): Pango-WARNING **: 14:21:07.012: font_face status is: error occurred in libfreetype (dia:641138): Pango-WARNING **: 14:21:07.012: scaled_font status is: error occurred in libfreetype (dia:641138): Pango-WARNING **: 14:21:07.014: failed to create cairo scaled font, expect ugly output. the offending font is 'FreeSerif 50745.3642578125' (dia:641138): Pango-WARNING **: 14:21:07.014: font_face status is: error occurred in libfreetype (dia:641138): Pango-WARNING **: 14:21:07.014: scaled_font status is: error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:1067, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:408, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:513, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:408, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:513, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:460, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:434, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:984, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:408, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:513, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:460, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:677, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:408, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:513, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:408, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:513, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:460, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:07.014: ../lib/renderer/diacairo-renderer.c:539, error occurred in libfreetype (dia:641138): Pango-WARNING **: 14:21:08.799: failed to create cairo scaled font, expect ugly output. the offending font is 'Noto Sans 50745.3642578125' (dia:641138): Pango-WARNING **: 14:21:08.799: font_face status is: error occurred in libfreetype (dia:641138): Pango-WARNING **: 14:21:08.799: scaled_font status is: error occurred in libfreetype (dia:641138): Pango-WARNING **: 14:21:08.801: failed to create cairo scaled font, expect ugly output. the offending font is 'FreeSerif 50745.3642578125' (dia:641138): Pango-WARNING **: 14:21:08.801: font_face status is: error occurred in libfreetype (dia:641138): Pango-WARNING **: 14:21:08.801: scaled_font status is: error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:1067, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:408, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:513, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:408, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:513, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:460, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:434, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:984, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:408, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:513, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:460, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:677, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:408, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:513, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:408, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:513, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:460, error occurred in libfreetype (dia:641138): DiaCairo-WARNING **: 14:21:08.805: ../lib/renderer/diacairo-renderer.c:539, error occurred in libfreetype (dia:641138): Pango-WARNING **: 14:24:40.755: failed to create cairo scaled font, expect ugly output. the offending font is 'Noto Sans 57994.919921875' (dia:641138): Pango-WARNING **: 14:24:40.755: font_face status is: error occurred in libfreetype (dia:641138): Pango-WARNING **: 14:24:40.755: scaled_font status is: error occurred in libfreetype
Hello, I face the same bug after upgrading from Debian 11.7 to Debian 12. Removing ~/.dia/ did not solve the issue for me. Dia became unusable with this bug for me with version 0.97.3+git20220525-5. The text elements get killed when zooming in or out of the diagram. And it runs pretty slow. The terminal gets populated with these error messages: (dia:221888): Pango-WARNING **: 08:52:55.861: font_face status is: error occurred in libfreetype (dia:221888): Pango-WARNING **: 08:52:55.861: scaled_font status is: error occurred in libfreetype (dia:221888): Pango-WARNING **: 08:52:55.927: failed to create cairo scaled font, expect ugly output. the offending font is 'Noto Sans 57995.1591796875' Downgrading to dia 0.97.3+git20160930-9 from Debian 11 solves the issue, but this is not a sustainable solution. Christian
Hello, Today I did a fresh install of Debian 12.2 with dia 0.97.3+git20220525-5 on a different computer and the described issue is present. This version of dia is unusable. Does anyone here have a workaround? Can I do anything to support fixing this? Best Regards Christian
This issue is solved in dia version 0.97.3+git20220525-5 of Debian testing (trixie) with libpango 1.51.0+ds-3 and libfreetype 2.13.2+dfsg-1.
We believe that the bug you reported is fixed in the latest version of
dia, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1020531@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Philippe SWARTVAGHER <phil.swart@gmx.fr> (supplier of updated dia package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 18 Feb 2024 19:46:11 +0100
Source: dia
Architecture: source
Version: 0.98+git20240130-1
Distribution: unstable
Urgency: medium
Maintainer: Philippe SWARTVAGHER <phil.swart@gmx.fr>
Changed-By: Philippe SWARTVAGHER <phil.swart@gmx.fr>
Closes: 967312 1020531 1024834 1025239
Changes:
dia (0.98+git20240130-1) unstable; urgency=medium
.
* New upstream snapshot
- Closes: #1024834, #1025239, #1020531
- Drop poppler*.patch: applied upstream
- Adapt fix-libdia-install-dir.patch
- control: add libpoppler-cpp-dev to Build-Depends
- control: adapt to use GTK3 instead of GTK2 Closes: #967312
* rules: remove --no-parallel option
* rules: add FORCE_SOURCE_DATE=1 to have reproducible PDF
* copyright: update copyright year
Checksums-Sha1:
09f8525d3a38fad5d36168d3b380632a9548f0e4 2213 dia_0.98+git20240130-1.dsc
ee408f08f7b91e3982c1744b50f8f7ca53ca2a37 11660691 dia_0.98+git20240130.orig.tar.gz
a24eb6ce76e5fab35c13e89a41977e06673e2707 24996 dia_0.98+git20240130-1.debian.tar.xz
d234fab878a6dd1a51201f730dc60c0fa81f91f8 18339 dia_0.98+git20240130-1_source.buildinfo
Checksums-Sha256:
d5e563e6a534d335cfad48d28efbb7915210679e9d26ef6c0efc0709428e3fbb 2213 dia_0.98+git20240130-1.dsc
1be17e06fd1f4fac99193748fe79d4a2fed679cd85c61e424acae18021e6ad09 11660691 dia_0.98+git20240130.orig.tar.gz
ef34c459115fc714fc92138aa3fbe9aa3a0dd19dec285c761f3e631bbad5c467 24996 dia_0.98+git20240130-1.debian.tar.xz
0b3181dba1e4f31b7ea6820d2729e8cf54a3c44b4fa90138252ae5685f34c6d3 18339 dia_0.98+git20240130-1_source.buildinfo
Files:
7ba8137892dc1ab8e5f3c77c85d31650 2213 graphics optional dia_0.98+git20240130-1.dsc
3c4295b2ad42cc3d9b21f186a1f647e4 11660691 graphics optional dia_0.98+git20240130.orig.tar.gz
b001c067077dad8f63127f8d2fa8ef7a 24996 graphics optional dia_0.98+git20240130-1.debian.tar.xz
2e2391691323e027a7a3852367464aa5 18339 graphics optional dia_0.98+git20240130-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmXTobwACgkQMfMURUSh
dBrJKQ/+KILCziigb+Llf4qPTyI/x6dWURl5plgbWbHTNFSvlqmgZZ4//3i8lyEV
kXv9Ieakxrd1CyP8sxAn6+kDYoCWp09jt3PQeBk2jl+/XJQhNb8w+Wl+f1vsg4SU
U1qMO3/7yFh/HQ6aHXA2iXpdIAQ+qdcLZAWsvoK4bsv0whym11r1Xwk9gE08HiBt
4ysQaDj8PvqMObIYId5g3RR3Mn6lZgl7YQ4F2iHBIKSp4dyLP40+P0xy3mVZh7hr
LhXs1muL6rtYVSp1jI0ukB56w9MRSQHoWseAOHBKke6Itk1BW4y8v1zA9MWqrLcD
zGyVB1YwB/hrZMuWaRSG9WuzwM5GhBX4H5NH+pc0Cf2p7sgyMbjb9t98MeJNeiNb
uY+nMZayI9JBCB9wec4QKC5FKxaqrDbasBoSDzdhw2xuNdLQMjNKPsYvgKuGIgWR
uBDa9dLnnui7v7iXq5OF8Deklt7BJJH4TioG91eoLURUbIoQ1zjPsiC3BVH4P43a
L1zhMa8s0InG2kHMZda+PafirwK+Wh4+dWFPtfZGJQM6izF9zHWpcJFMwBxAw+I8
L94SGVeXESAudBk+kLx1RcZuEiytg7n3Q3mThmeji+vYOdLCUT3j4q3bUhhK8RE6
rQ+fnGRKA0vpoJrQm40LlqK4hNJ4Arvf4TaX64O0FI85Tg6G15c=
=MkJ3
-----END PGP SIGNATURE-----
Dear Maintainer, i just ran into exactly the same problem. (dia 0.97.3+git20220525-5) Being on current debian 12 (stable) this problem is not solved for bookworm and there is no solution / workaround. Closing the bug and archiving it makes it difficult to find it at all. While I really appreciate all the work you put in maintaining this packages, I don't think its good to just close and archive this. Newer packages from testing can't be used in bookworm due to dependency problems (0.98+git20240130-1). My only working / practicable solution was downloading the dia packages from bullseye (0.97.3+git20160930-9) which seem to work. please reconsider how you deal with this because right now dia is unusable in bookworm stable (and information about the bug is very hard to find). thank you for your work, Tom
Hello, Le 25/06/2025 à 19:13, Tom Weber a écrit : The problem is solved in Debian testing/unstable, and indeed it was not backported in a stable point release. Next release of Debian, trixie, is planned to be released on August 9th, so now you don't have so long to wait to have a fixed version. https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=dia. Philippe.