GNOME Bugzilla – Bug 431990
size 0 fonts cause an error in cairo
Last modified: 2009-01-30 03:41:46 UTC
Version: 2.18.0 What were you doing when the application crashed? nothing special - just viewing gnome-about Distribution: Debian lenny/sid Gnome Release: 2.18.0 2007-04-14 (Debian) BugBuddy Version: 2.18.1 System: Linux 2.6.20.1 #1 PREEMPT Sun Mar 4 21:40:20 CET 2007 i686 X Vendor: The X.Org Foundation X Vendor Release: 70101000 Selinux: No Accessibility: Disabled GTK+ Theme: Mist Icon Theme: Mist Memory status: size: 23101440 vsize: 23101440 resident: 14020608 share: 9138176 rss: 14020608 rss_rlim: 4294967295 CPU usage: start_time: 1177165928 rtime: 239 utime: 219 stime: 20 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100 Backtrace was generated from '/usr/bin/gnome-about' (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1214093632 (LWP 12571)] (no debugging symbols found) 0xb7e79f3e in __waitpid_nocancel () from /lib/libpthread.so.0
+ Trace 129524
Thread 1 (Thread -1214093632 (LWP 12571))
----------- .xsession-errors (231467 sec old) --------------------- konqueror: WARNING: Unknown class in session saved data! --------------------------------- It looks like dcopserver is already running. If you are sure that it is not already running, remove /home/andre/.DCOPserver_despina__0 and start dcopserver again. --------------------------------- kbuildsycoca running... konqueror: WARNING: Unknown class in session saved data! The application 'gnome-session' lost its connection to the display :0.0; most likely the X server was shut down or you killed/destroyed the application. konqueror: Fatal IO error: client killed kded: Fatal IO error: client killed ICE default IO error handler doing an exit(), pid = 19667, errno = 0 --------------------------------------------------
Moving to pango so that behdad can look at it. He will know if it's a pango bug, a cairo bug or something else (in which case we need a better stack trace).
Think I've found this one. The bug doesn't contain enough information. To reproduce this one, open gnome-about and wait until the part with the credits appears. The names will come in, and then fade out until they're zero-sized. This is where pango or cairo crashes. (gnome-about:5785): Pango-WARNING **: shape engine failure, expect ugly output. the offending font is 'Bitstream Vera Sans Bold Not-Rotated 0'
Thanks. I can reproduce it now. Seems like a regression in cairo. Working on it.
*** Bug 435180 has been marked as a duplicate of this bug. ***
*** Bug 435241 has been marked as a duplicate of this bug. ***
*** Bug 435295 has been marked as a duplicate of this bug. ***
*** Bug 435911 has been marked as a duplicate of this bug. ***
*** Bug 436485 has been marked as a duplicate of this bug. ***
*** Bug 436294 has been marked as a duplicate of this bug. ***
*** Bug 436286 has been marked as a duplicate of this bug. ***
*** Bug 436169 has been marked as a duplicate of this bug. ***
*** Bug 437094 has been marked as a duplicate of this bug. ***
*** Bug 437114 has been marked as a duplicate of this bug. ***
*** Bug 436526 has been marked as a duplicate of this bug. ***
*** Bug 436527 has been marked as a duplicate of this bug. ***
*** Bug 436531 has been marked as a duplicate of this bug. ***
*** Bug 432093 has been marked as a duplicate of this bug. ***
*** Bug 433787 has been marked as a duplicate of this bug. ***
*** Bug 436948 has been marked as a duplicate of this bug. ***
*** Bug 437905 has been marked as a duplicate of this bug. ***
*** Bug 437959 has been marked as a duplicate of this bug. ***
*** Bug 438112 has been marked as a duplicate of this bug. ***
*** Bug 438143 has been marked as a duplicate of this bug. ***
*** Bug 438381 has been marked as a duplicate of this bug. ***
*** Bug 438693 has been marked as a duplicate of this bug. ***
*** Bug 438692 has been marked as a duplicate of this bug. ***
*** Bug 438685 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > Think I've found this one. The bug doesn't contain enough information. To > reproduce this one, open gnome-about and wait until the part with the credits > appears. The names will come in, and then fade out until they're zero-sized. > This is where pango or cairo crashes. > > (gnome-about:5785): Pango-WARNING **: shape engine failure, expect ugly output. > the offending font is 'Bitstream Vera Sans Bold Not-Rotated 0' > I removed ttf-bitstream-vera and gnome application has spoped to crash.
*** Bug 438916 has been marked as a duplicate of this bug. ***
*** Bug 439076 has been marked as a duplicate of this bug. ***
*** Bug 439212 has been marked as a duplicate of this bug. ***
*** Bug 439392 has been marked as a duplicate of this bug. ***
*** Bug 439511 has been marked as a duplicate of this bug. ***
*** Bug 439590 has been marked as a duplicate of this bug. ***
*** Bug 439801 has been marked as a duplicate of this bug. ***
*** Bug 440385 has been marked as a duplicate of this bug. ***
*** Bug 440857 has been marked as a duplicate of this bug. ***
*** Bug 440824 has been marked as a duplicate of this bug. ***
*** Bug 439266 has been marked as a duplicate of this bug. ***
*** Bug 441670 has been marked as a duplicate of this bug. ***
*** Bug 441836 has been marked as a duplicate of this bug. ***
*** Bug 442028 has been marked as a duplicate of this bug. ***
*** Bug 442048 has been marked as a duplicate of this bug. ***
*** Bug 442250 has been marked as a duplicate of this bug. ***
*** Bug 442447 has been marked as a duplicate of this bug. ***
*** Bug 442510 has been marked as a duplicate of this bug. ***
*** Bug 442700 has been marked as a duplicate of this bug. ***
*** Bug 442722 has been marked as a duplicate of this bug. ***
*** Bug 442818 has been marked as a duplicate of this bug. ***
This bug is fixed in cairo git, I can't reproduce the crash with a snapshot, though I still get the shape engine warnings (which is logical: cairo doesn't draw the font if it's 0 pixels, so there's no output)
*** Bug 442904 has been marked as a duplicate of this bug. ***
*** Bug 442902 has been marked as a duplicate of this bug. ***
Yeah, the assertion seems to be fixed. I'll try to fix the warning too.
*** Bug 442922 has been marked as a duplicate of this bug. ***
*** Bug 442938 has been marked as a duplicate of this bug. ***
*** Bug 443133 has been marked as a duplicate of this bug. ***
*** Bug 443124 has been marked as a duplicate of this bug. ***
*** Bug 443252 has been marked as a duplicate of this bug. ***
*** Bug 443248 has been marked as a duplicate of this bug. ***
*** Bug 443246 has been marked as a duplicate of this bug. ***
*** Bug 443234 has been marked as a duplicate of this bug. ***
*** Bug 443233 has been marked as a duplicate of this bug. ***
*** Bug 443231 has been marked as a duplicate of this bug. ***
*** Bug 443258 has been marked as a duplicate of this bug. ***
For the record, this commit fixed the crash: commit ab6a767cf476c98b466c62dd410d0f61f8dd6bbb Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Thu May 10 17:17:30 2007 +0100 [cairo-scaled-font] Check for allocation failure. cairo_scaled_font_create() returns a nil object on failure whereas a few callers were checking for NULL. Secondly review the public entry points for cairo_scaled_font_*() to ensure that all check that they will not attempt to overwrite the read-only nil object.
*** Bug 443304 has been marked as a duplicate of this bug. ***
*** Bug 443494 has been marked as a duplicate of this bug. ***
*** Bug 443483 has been marked as a duplicate of this bug. ***
*** Bug 443477 has been marked as a duplicate of this bug. ***
*** Bug 443466 has been marked as a duplicate of this bug. ***
*** Bug 443458 has been marked as a duplicate of this bug. ***
*** Bug 443419 has been marked as a duplicate of this bug. ***
*** Bug 443589 has been marked as a duplicate of this bug. ***
*** Bug 443538 has been marked as a duplicate of this bug. ***
*** Bug 443656 has been marked as a duplicate of this bug. ***
*** Bug 443729 has been marked as a duplicate of this bug. ***
*** Bug 443756 has been marked as a duplicate of this bug. ***
*** Bug 443835 has been marked as a duplicate of this bug. ***
*** Bug 443809 has been marked as a duplicate of this bug. ***
*** Bug 443876 has been marked as a duplicate of this bug. ***
*** Bug 443875 has been marked as a duplicate of this bug. ***
*** Bug 443993 has been marked as a duplicate of this bug. ***
*** Bug 443946 has been marked as a duplicate of this bug. ***
*** Bug 444528 has been marked as a duplicate of this bug. ***
*** Bug 444508 has been marked as a duplicate of this bug. ***
*** Bug 444255 has been marked as a duplicate of this bug. ***
*** Bug 444214 has been marked as a duplicate of this bug. ***
*** Bug 444993 has been marked as a duplicate of this bug. ***
*** Bug 444972 has been marked as a duplicate of this bug. ***
*** Bug 444995 has been marked as a duplicate of this bug. ***
*** Bug 445249 has been marked as a duplicate of this bug. ***
*** Bug 445121 has been marked as a duplicate of this bug. ***
*** Bug 445340 has been marked as a duplicate of this bug. ***
*** Bug 445533 has been marked as a duplicate of this bug. ***
*** Bug 445697 has been marked as a duplicate of this bug. ***
*** Bug 445816 has been marked as a duplicate of this bug. ***
*** Bug 446026 has been marked as a duplicate of this bug. ***
*** Bug 445980 has been marked as a duplicate of this bug. ***
*** Bug 446010 has been marked as a duplicate of this bug. ***
*** Bug 446013 has been marked as a duplicate of this bug. ***
*** Bug 445661 has been marked as a duplicate of this bug. ***
*** Bug 445660 has been marked as a duplicate of this bug. ***
*** Bug 445336 has been marked as a duplicate of this bug. ***
*** Bug 446115 has been marked as a duplicate of this bug. ***
folks, what's the state here? behdad? according to comment 53 this is fixed? can you isolate a patch so this could be backported for the distros? this report got 62 dups in the last 10 days, and 53 rejected reports, this is a lot!
Created attachment 89736 [details] [review] [cairo-scaled-font] Check for allocation failure. Cairo fix extracted from cairo.git with: git diff ab6a767cf476c98b466c62dd410d0f61f8dd6bbb ab6a767cf476c98b466c62dd410d0f61f8dd6bbb^
(In reply to comment #105) > can you isolate a patch so this could be backported for the distros? Ups, seems like this isn't fixed in Debian unstable; I've filed a bug against Debian's libcairo to fix this or prepare >= 1.4.7. Is it known which older versions could trigger the bug? In particular, I'd like ot know whether pango 1.14.8 with libcairo 1.2.4 is affected.
I guess it only happens with cairo 1.4.x before 1.4.8, but that's just guessing. cairo 1.4.8 definitely doesn't have this problem.
THe patch in comment 106 is a reverse patch, applying it to 1.4.6 fails without the -R switch.
I just encountered this crash while running gnome-about...
(In reply to comment #110) > I just encountered this crash while running gnome-about... As expected. Except if you are running cairo 1.4.8
*** Bug 446518 has been marked as a duplicate of this bug. ***
Created attachment 89957 [details] [review] [cairo-scaled-font] Check for allocation failure (fixed)
*** Bug 449008 has been marked as a duplicate of this bug. ***
*** Bug 449319 has been marked as a duplicate of this bug. ***
okay, so it still throws warnings, but does not crash anymore.
*** Bug 450260 has been marked as a duplicate of this bug. ***
*** Bug 452672 has been marked as a duplicate of this bug. ***
*** Bug 452742 has been marked as a duplicate of this bug. ***
*** Bug 453419 has been marked as a duplicate of this bug. ***
*** Bug 453908 has been marked as a duplicate of this bug. ***
*** Bug 454129 has been marked as a duplicate of this bug. ***
*** Bug 454433 has been marked as a duplicate of this bug. ***
*** Bug 454439 has been marked as a duplicate of this bug. ***
*** Bug 454387 has been marked as a duplicate of this bug. ***
*** Bug 454511 has been marked as a duplicate of this bug. ***
*** Bug 454419 has been marked as a duplicate of this bug. ***
*** Bug 458475 has been marked as a duplicate of this bug. ***
*** Bug 457949 has been marked as a duplicate of this bug. ***
*** Bug 458996 has been marked as a duplicate of this bug. ***
*** Bug 459514 has been marked as a duplicate of this bug. ***
*** Bug 460598 has been marked as a duplicate of this bug. ***
*** Bug 460719 has been marked as a duplicate of this bug. ***
*** Bug 461591 has been marked as a duplicate of this bug. ***
*** Bug 461405 has been marked as a duplicate of this bug. ***
*** Bug 461849 has been marked as a duplicate of this bug. ***
*** Bug 463536 has been marked as a duplicate of this bug. ***
*** Bug 463607 has been marked as a duplicate of this bug. ***
*** Bug 463661 has been marked as a duplicate of this bug. ***
*** Bug 464592 has been marked as a duplicate of this bug. ***
*** Bug 465378 has been marked as a duplicate of this bug. ***
*** Bug 465624 has been marked as a duplicate of this bug. ***
*** Bug 465647 has been marked as a duplicate of this bug. ***
*** Bug 466843 has been marked as a duplicate of this bug. ***
*** Bug 467660 has been marked as a duplicate of this bug. ***
*** Bug 468603 has been marked as a duplicate of this bug. ***
*** Bug 468781 has been marked as a duplicate of this bug. ***
*** Bug 469460 has been marked as a duplicate of this bug. ***
*** Bug 469758 has been marked as a duplicate of this bug. ***
*** Bug 470010 has been marked as a duplicate of this bug. ***
*** Bug 470192 has been marked as a duplicate of this bug. ***
*** Bug 470528 has been marked as a duplicate of this bug. ***
*** Bug 472013 has been marked as a duplicate of this bug. ***
*** Bug 472040 has been marked as a duplicate of this bug. ***
*** Bug 473606 has been marked as a duplicate of this bug. ***
*** Bug 474597 has been marked as a duplicate of this bug. ***
*** Bug 476444 has been marked as a duplicate of this bug. ***
*** Bug 477374 has been marked as a duplicate of this bug. ***
*** Bug 479209 has been marked as a duplicate of this bug. ***
*** Bug 479013 has been marked as a duplicate of this bug. ***
*** Bug 478710 has been marked as a duplicate of this bug. ***
*** Bug 478418 has been marked as a duplicate of this bug. ***
*** Bug 478236 has been marked as a duplicate of this bug. ***
*** Bug 478174 has been marked as a duplicate of this bug. ***
*** Bug 479485 has been marked as a duplicate of this bug. ***
*** Bug 481244 has been marked as a duplicate of this bug. ***
*** Bug 480792 has been marked as a duplicate of this bug. ***
*** Bug 480830 has been marked as a duplicate of this bug. ***
*** Bug 481081 has been marked as a duplicate of this bug. ***
*** Bug 481572 has been marked as a duplicate of this bug. ***
*** Bug 481702 has been marked as a duplicate of this bug. ***
*** Bug 484185 has been marked as a duplicate of this bug. ***
*** Bug 484223 has been marked as a duplicate of this bug. ***
*** Bug 481124 has been marked as a duplicate of this bug. ***
*** Bug 480828 has been marked as a duplicate of this bug. ***
*** Bug 485168 has been marked as a duplicate of this bug. ***
*** Bug 485041 has been marked as a duplicate of this bug. ***
*** Bug 484931 has been marked as a duplicate of this bug. ***
*** Bug 486193 has been marked as a duplicate of this bug. ***
*** Bug 486015 has been marked as a duplicate of this bug. ***
*** Bug 486321 has been marked as a duplicate of this bug. ***
*** Bug 486482 has been marked as a duplicate of this bug. ***
*** Bug 486484 has been marked as a duplicate of this bug. ***
*** Bug 492876 has been marked as a duplicate of this bug. ***
*** Bug 487201 has been marked as a duplicate of this bug. ***
*** Bug 487289 has been marked as a duplicate of this bug. ***
*** Bug 487777 has been marked as a duplicate of this bug. ***
*** Bug 488971 has been marked as a duplicate of this bug. ***
*** Bug 489664 has been marked as a duplicate of this bug. ***
*** Bug 489988 has been marked as a duplicate of this bug. ***
*** Bug 493577 has been marked as a duplicate of this bug. ***
*** Bug 493426 has been marked as a duplicate of this bug. ***
*** Bug 493373 has been marked as a duplicate of this bug. ***
*** Bug 493009 has been marked as a duplicate of this bug. ***
*** Bug 493431 has been marked as a duplicate of this bug. ***
*** Bug 493234 has been marked as a duplicate of this bug. ***
*** Bug 494180 has been marked as a duplicate of this bug. ***
*** Bug 494336 has been marked as a duplicate of this bug. ***
*** Bug 494465 has been marked as a duplicate of this bug. ***
*** Bug 495565 has been marked as a duplicate of this bug. ***
*** Bug 496220 has been marked as a duplicate of this bug. ***
Upstreamed it to cairo: https://bugs.freedesktop.org/show_bug.cgi?id=13612
*** Bug 506656 has been marked as a duplicate of this bug. ***
*** Bug 506539 has been marked as a duplicate of this bug. ***
*** Bug 505791 has been marked as a duplicate of this bug. ***
*** Bug 505581 has been marked as a duplicate of this bug. ***
*** Bug 505508 has been marked as a duplicate of this bug. ***
*** Bug 505080 has been marked as a duplicate of this bug. ***
*** Bug 503823 has been marked as a duplicate of this bug. ***
*** Bug 503729 has been marked as a duplicate of this bug. ***
*** Bug 503179 has been marked as a duplicate of this bug. ***
*** Bug 503714 has been marked as a duplicate of this bug. ***
*** Bug 500119 has been marked as a duplicate of this bug. ***
*** Bug 501844 has been marked as a duplicate of this bug. ***
*** Bug 498640 has been marked as a duplicate of this bug. ***
*** Bug 498074 has been marked as a duplicate of this bug. ***
*** Bug 497813 has been marked as a duplicate of this bug. ***
*** Bug 508233 has been marked as a duplicate of this bug. ***
*** Bug 509951 has been marked as a duplicate of this bug. ***
*** Bug 511731 has been marked as a duplicate of this bug. ***
*** Bug 512339 has been marked as a duplicate of this bug. ***
The cairo bug is fixed now btw.
*** Bug 513272 has been marked as a duplicate of this bug. ***
*** Bug 514545 has been marked as a duplicate of this bug. ***
*** Bug 517731 has been marked as a duplicate of this bug. ***
*** Bug 518446 has been marked as a duplicate of this bug. ***
*** Bug 518826 has been marked as a duplicate of this bug. ***
*** Bug 520210 has been marked as a duplicate of this bug. ***
*** Bug 520865 has been marked as a duplicate of this bug. ***
*** Bug 520858 has been marked as a duplicate of this bug. ***
*** Bug 521518 has been marked as a duplicate of this bug. ***
*** Bug 521602 has been marked as a duplicate of this bug. ***
911 rejected bugs in june 2008, 911 rejected bugs now. => removing from the auto-reject list.
Yep. I actually fixed the bug :).