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

Reply via email to