gtk apps segfault on gnome 'Human' theme, only from XDMCP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcairo |
Fix Released
|
Critical
|
|||
libcairo (Ubuntu) |
Fix Released
|
Medium
|
Ubuntu Desktop Bugs |
Bug Description
On a batch of machines I just dist-upgraded from Breezy to Dapper, Firefox
(and gimp) will segfault when they are run from gnome via XDMCP
(thin-client).
It doesn't segfault from KDE via XDMCP, and it doesn't segfault from
gnome from non-XDMCP X (monitor plugged directly into server). Further, it doesn't segfault when the gnome theme is changed from 'Human' to 'LegacyHuman'.
I installed 'firefox-dbg' and run firefox -g, with the following output:
---
drallen@host:~$ firefox
Segmentation fault
drallen@host:~$ firefox -g
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-
library"
(gdb) r
Starting program: /usr/lib/
[Thread debugging using libthread_db enabled]
[New Thread 46912551651792 (LWP 7136)]
[New Thread 1082132832 (LWP 7147)]
[New Thread 1090525536 (LWP 7148)]
[New Thread 1098918240 (LWP 7149)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912551651792 (LWP 7136)]
0x00002aaaac8b4aa3 in _cairo_
from /usr/lib/
(gdb) bt
#0 0x00002aaaac8b4aa3 in _cairo_
from /usr/lib/
#1 0x00002aaaac8bb66d in _cairo_
from /usr/lib/
#2 0x00002aaaac892f10 in cairo_image_
from /usr/lib/
#3 0x00002aaaac898296 in cairo_surface_
from /usr/lib/
#4 0x00002aaaac890732 in cairo_font_
from /usr/lib/
#5 0x00002aaaac8909e3 in cairo_font_
from /usr/lib/
#6 0x00002aaaac890ca7 in cairo_font_
from /usr/lib/
#7 0x00002aaaac88b00d in cairo_fill_preserve () from /usr/lib/
#8 0x00002aaaac88b029 in cairo_fill () from /usr/lib/
#9 0x00002aaaafae4cd0 in ubuntulooks_
from /usr/lib/
#10 0x00002aaaafadf0c7 in ubuntulooks_
from /usr/lib/
#11 0x00002aaaab71ad69 in gtk_progress_
from /usr/lib/
#12 0x00002aaaab71908f in gtk_progress_
[...]
(I'll attach the entire trace).
I'll also attach a strace for: a segfaulting firefox; and a non-segfaulting firefox (where the only difference is that I've changed the gnome theme from Human to LegacyHuman).
Please let me know if there's anything else I should provide; this is one odd problem.
In freedesktop.org Bugzilla #4945, R-vickers (r-vickers) wrote : | #1 |
In freedesktop.org Bugzilla #4945, R-vickers (r-vickers) wrote : | #2 |
More news on this: a colleague reports that if you reconfigure the terminal to
use 16-bit colour instead of 8-bit then the problem goes away.
However this is an unhelpful solution for us: we switched the terminals to 8-bit
because firefox frequently crashed when visiting graphics-intensive sites.
Bob
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #3 |
I've updated the summary to note the limitation of this bug to the cased of X
servers running in 8-bit pseudocolor mode.
In freedesktop.org Bugzilla #4945, Nate-byrnes (nate-byrnes) wrote : | #4 |
Regarding the recommendation to switch to 16-bit color... I cannot. The
tektronix is 8-bit only, as are many of the older X-Term products I have used
(NCD, IBM-Netstation). I really would love to go 16-bit if I could.
In freedesktop.org Bugzilla #4945, Dominic Lachowicz (domlachowicz) wrote : | #5 |
*** Bug 5196 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Hembrow (hembrow) wrote : | #6 |
I believe I'm seeing the same problem. I have a Tektronix XP117C X terminal,
which is 8 bit only, so changing the configuration to 16 bit or more is not
possible. I'm using GTK 2.8.6-0ubuntu2.1.
All sorts of old style X apps work fine if started on the display (i.e. xterm,
xeyes, xclock etc.), but gdm and such like don't work.
If this problem gets fixed, I'd be very pleased to hear about it.
David.
In freedesktop.org Bugzilla #4945, R-vickers (r-vickers) wrote : | #7 |
I can imagine this bug could well be problematic for the developers because they
may not have access to old equipment. Is there anything those of us with 8-bit X
terminals can do to speed things up? It would cost this department about $25000
to replace all our 8-bit terminals, so I'm willing to invest some effort in
providing good debugging information, or testing out new versions of software.
In freedesktop.org Bugzilla #4945, R-vickers (r-vickers) wrote : | #8 |
Created an attachment (id=4872)
Simple program to demonstrate bug
I downloaded a very simple Cairo demo from the Gnome Journal and this also
triggers the bug. The attachment includes:
(1) program source
(2) Makefile
(3) Debugging traceback (in cairo.log)
To compile the program type
make clock3
In freedesktop.org Bugzilla #4945, R-vickers (r-vickers) wrote : | #9 |
More information: this bug is a close relation of
https:/
and possibly the same. A colleague of mine built libcairo with the workround
suggested there and found that firefox and other applications now ran without
crashing on 8-bit terminals. However, there were some issues with text
displaying strangely, so there is still work to be done.
Bob
In freedesktop.org Bugzilla #4945, Otaylor-redhat (otaylor-redhat) wrote : | #10 |
Retitling to hopefully make it clear that this isn't some problem
that needs diagnosis. If someone is interested in doing the work
(probably a week or so's worth of work), that could be discussed on
the cairo mailing list. Of course, making it stop crashing is easier
than making but of pretty limited value...
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #11 |
*** Bug 6379 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Bohan-freedesktop (bohan-freedesktop) wrote : | #12 |
(In reply to comment #7)
> I can imagine this bug could well be problematic for the developers because they
> may not have access to old equipment.
couldn't we argue that cairo and gtk/gdk/pango developers could have at least
tested 8-bit pseudo color and bgr/rgb true-color visuals on Xvnc or Xnest?
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #13 |
(In reply to comment #12)
> couldn't we argue that cairo and gtk/gdk/pango developers could have at least
> tested 8-bit pseudo color and bgr/rgb true-color visuals on Xvnc or Xnest?
Certainly, getting access to an X server with an 8-bit pseudo-color visual is
not the problem. So, you're correct that an offer of hardware won't help get the
problem fixed.
The reason this situation exists is not due to some careless lack of testing.
For cairo at least, there was a conscious acknowledgment from the developers
that have been working on cairo so far that the 8-bit pseudo-color case is
uninteresting.
Obviously, (from the traffic here), there are users that are interested in this
case. So what falls to the users is finding a capable developer that is
motivated (or that could be made motivated) to fix this.
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #14 |
*** Bug 5205 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, R-vickers (r-vickers) wrote : | #15 |
(In reply to comment #13)
>
> The reason this situation exists is not due to some careless lack of testing.
> For cairo at least, there was a conscious acknowledgment from the developers
> that have been working on cairo so far that the 8-bit pseudo-color case is
> uninteresting.
>
Sadly there is a bit of a clash of expectations here. The Cairo developers are
busy working on what they find interesting, while in another part of the free
software ecosystem distributors like SuSE are including this partially
functional software in their products and selling it to the general public.
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #16 |
(In reply to comment #15)
>
> Sadly there is a bit of a clash of expectations here. The Cairo developers are
> busy working on what they find interesting, while in another part of the free
> software ecosystem distributors like SuSE are including this partially
> functional software in their products and selling it to the general public.
If a software distributor wants to sell you a product that doesn't meet your
needs, then don't buy it. There really are connections between what paying
customers care about and what developers will find interesting to work on.
In freedesktop.org Bugzilla #4945, Eric-faurot (eric-faurot) wrote : | #17 |
(In reply to comment #16)
(well, not really)
Hi,
I add this note to the tracker (after a suggestion by Bob) to let people not
following the cairo devel list know that I have written a patch for that isue:
http://
I have personally tested it on OpenBSD/macppc in various combinations of
ati/wscons drivers and ssh-X/-Y. I also have postive feedback from Bob
(thank you). If you find this useful let me know, also read
http://
Eric.
In freedesktop.org Bugzilla #4945, Tom-nelson (tom-nelson) wrote : | #18 |
For what it is worth I've had to workaround cairo color issues as a developer
of a comercial product built on top of wxwidgets, by using gtk+2.6.10 the last
gtk version before the adoption of cairo. My research indicates that QT on top
of cairo gtk also had similar issues. To our surprise our first comercial
customers wanted to use our product on X-Win32 and Solaris and encounted some
of these issues.
I very much look forward to the incorporation of this bug fix into a future
cairo release and suggest that perhaps bugs 5212, 5681, and 5846 may be related.
I have a news group corespondence on gmane.comp.
for "Apparent RGB") that may be of interest. Thanks -- Tom
In freedesktop.org Bugzilla #4945, Woods-logins-for-bug-reporting-are-stupid-and-counter-productive (woods-logins-for-bug-reporting-are-stupid-and-counter-productive) wrote : | #19 |
FYI this bug has now wasted a week's worth of my time in trying to upgrade
packages that previously worked A-OK in my environments on NetBSD (i386, alpha,
and sparc). Confusion with weird pthread problems on SMP machines, along with
the fact that this bugzilla database doesn't seem to be indexed very well by
google didn't help of course. :-)
It's now a complete show-stopper for me for any and all applications needing
gtk2+.
gtk-demo is a great canonical example program that crashes on all platforms I've
tested.
Note that prior to these upgrades all the applications I'm attempting to upgrade
worked OK even on monochrome displays (albiet with some invisible features
whenever too many colours are used in proximity with each other by the
application).
Note of course that the bug is still present in 1.0.4 as well.
I'll be testing out the patch suggested in a recent comment.
In freedesktop.org Bugzilla #4945, Eric-faurot (eric-faurot) wrote : | #20 |
Created an attachment (id=5796)
fix for the 8bit issue + 16 bit.
Hi all,
There was a bug in my previous fix. Color channels were mixed up
on some archs. This should be much better now. It should also be faster.
I have also added a workaround for 16bits displays with the RENDER extension
disabled.
Also updated there:
http://
Eric.
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #21 |
*** Bug 4505 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Brian-cameron-oracle (brian-cameron-oracle) wrote : | #22 |
This patch seems to work against cairo 1.0, not 1.2. Is there an updated patch
for the new release of cairo, or can this patch be integrated into cairo?
In freedesktop.org Bugzilla #4945, Eric-faurot (eric-faurot) wrote : | #23 |
(In reply to comment #22)
> This patch seems to work against cairo 1.0, not 1.2. Is there an updated patch
> for the new release of cairo, or can this patch be integrated into cairo?
Hi,
I have just ported my patch to cairo-1.2.0.
http://
Eric.
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #24 |
*** Bug 8073 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Dan McMahill (dmcmahill) wrote : | #25 |
any chance of a patch against 1.2.4? I just checked 1.2.4 and it still has this
problem. Unfortunately the 1.2.0 patch didn't apply cleanly and I don't
understand it enough to work it into the 1.2.4 code. Surely this must affect
quite a number of users. For now I will just not move past gtk-2.6.
Just to append to this, I'm using a Sun ultra/10 with the default graphics card.
In this case that means I'm running 8-bit psuedocolor. Thats the best you get
with 1280 x 1024. To go to something like 24-bit color you have to drop down to
1024 x 768 which is just not enough. Granted this is not a cutting edge machine
but I'll bet there are a lot of them deployed. I'd be happy to test out any
patches.
In freedesktop.org Bugzilla #4945, Dan McMahill (dmcmahill) wrote : | #26 |
Created an attachment (id=6762)
update of Eric Faurot's patch for 1.2.4
I managed to get Eric's patch for 1.2.0 to apply to 1.2.4 with some manual
help. I can't claim to understand his changes (or any of cairo's internals),
but with this patch I can display gtk apps on my sun ultra/10 again.
Are there any plans of integrating this into the main sources?
Thanks
-Dan
In freedesktop.org Bugzilla #4945, Schwarzb (schwarzb) wrote : | #27 |
Created an attachment (id=6819)
Fix of patch #6762 for true color
The patch #6762 works indeed for 8-bit Pseudo-Color with SUN-X-Servers, but
breaks 24-Bit-True Color Visual compatibility there. The new attchment contains
a patch derived from #6762 wich works also with True Color. Additionally, code
parts aparrantly obsoleted (?) by pango-1.2 (WORKAROUND_
WORKAROUND_R5G6B5) have been removed. By now it's tested only briefly with
SUN-X-Server on 8-bit Pseudo-Color and 24-Bit-True Color Visuals.
Daniel Allen (dada-da) wrote : | #28 |
On a batch of machines I just dist-upgraded from Breezy to Dapper, Firefox
(and gimp) will segfault when they are run from gnome via XDMCP
(thin-client).
It doesn't segfault from KDE via XDMCP, and it doesn't segfault from
gnome from non-XDMCP X (monitor plugged directly into server). Further, it doesn't segfault when the gnome theme is changed from 'Human' to 'LegacyHuman'.
I installed 'firefox-dbg' and run firefox -g, with the following output:
---
drallen@host:~$ firefox
Segmentation fault
drallen@host:~$ firefox -g
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-
library"
(gdb) r
Starting program: /usr/lib/
[Thread debugging using libthread_db enabled]
[New Thread 46912551651792 (LWP 7136)]
[New Thread 1082132832 (LWP 7147)]
[New Thread 1090525536 (LWP 7148)]
[New Thread 1098918240 (LWP 7149)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912551651792 (LWP 7136)]
0x00002aaaac8b4aa3 in _cairo_
from /usr/lib/
(gdb) bt
#0 0x00002aaaac8b4aa3 in _cairo_
from /usr/lib/
#1 0x00002aaaac8bb66d in _cairo_
from /usr/lib/
#2 0x00002aaaac892f10 in cairo_image_
from /usr/lib/
#3 0x00002aaaac898296 in cairo_surface_
from /usr/lib/
#4 0x00002aaaac890732 in cairo_font_
from /usr/lib/
#5 0x00002aaaac8909e3 in cairo_font_
from /usr/lib/
#6 0x00002aaaac890ca7 in cairo_font_
from /usr/lib/
#7 0x00002aaaac88b00d in cairo_fill_preserve () from /usr/lib/
#8 0x00002aaaac88b029 in cairo_fill () from /usr/lib/
#9 0x00002aaaafae4cd0 in ubuntulooks_
from /usr/lib/
#10 0x00002aaaafadf0c7 in ubuntulooks_
from /usr/lib/
#11 0x00002aaaab71ad69 in gtk_progress_
from /usr/lib/
#12 0x00002aaaab71908f in gtk_progress_
[...]
(I'll attach the entire trace).
I'll also attach a strace for: a segfaulting firefox; and a non-segfaulting firefox (where the only difference is that I've changed the gnome theme from Human to LegacyHuman).
Please let me know if there's anything else I should provide; this is one odd problem.
Daniel Allen (dada-da) wrote : | #29 |
Daniel Allen (dada-da) wrote : | #30 |
Daniel Allen (dada-da) wrote : | #31 |
- strace on working firefox Edit (745.4 KiB, text/html)
only difference: changed user theme from 'Human' to 'LegacyHuman'
Sebastien Bacher (seb128) wrote : | #32 |
Looks like a cairo bug according to the backtrace which is similar to https:/
Walter Tautz (wtautz) wrote : | #33 |
Just a note. This is on amd64 architecture. It's not clear whether this would
be a problem on another arch.
Daniel Allen (dada-da) wrote : | #34 |
The thin client says it's 16-bits, and xpdyinfo seems to concur:
name of display: redacted:1.0
version number: 11.0
vendor string: The XFree86 Project, Inc
vendor release number: 40300000
XFree86 version: 4.3.0
maximum request size: 4194300 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: window 0x160001f, revert to Parent
number of extensions: 18
BIG-REQUESTS
DPMS
Extended-
FontCache
MIT-SHM
MIT-
RANDR
RENDER
SECURITY
SHAPE
TOG-CUP
X-Resource
XC-MISC
XFree86-Bigfont
XFree86-DGA
XFree86-Misc
XInputExtension
XVideo
default screen number: 0
number of screens: 1
screen #0:
dimensions: 1280x1024 pixels (433x347 millimeters)
resolution: 75x75 dots per inch
depths (7): 16, 1, 4, 8, 15, 24, 32
root window id: 0x36
depth of root window: 16 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x20
default number of colormap cells: 64
preallocated pixels: black 0, white 65535
options: backing-store YES, save-unders YES
largest cursor: 64x64
current input event mask: 0xfa2033
KeyPressMask KeyReleaseMask EnterWindowMask
LeaveWindowMask ButtonMotionMask StructureNotifyMask
Substructur
PropertyCha
number of visuals: 2
default visual id: 0x21
visual:
visual id: 0x21
class: TrueColor
depth: 16 planes
available colormap entries: 64 per subfield
red, green, blue masks: 0xf800, 0x7e0, 0x1f
significant bits in color specification: 8 bits
visual:
visual id: 0x22
class: DirectColor
depth: 16 planes
available colormap entries: 64 per subfield
red, green, blue masks: 0xf800, 0x7e0, 0x1f
significant bits in color specification: 8 bits
Daniel Allen (dada-da) wrote : | #35 |
Also confirmed on i386 arch (6.06).
Changed in libcairo: | |
status: | Unknown → Confirmed |
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #36 |
*** Bug 8416 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Dan McMahill (dmcmahill) wrote : | #37 |
This is just a note that attachement #6819 seems to work for me. I'm using an
8-bit psuedocolor display (Sun ultra/10, solaris-2.9, Xsun).
What are the chances of this patch making its way back to the main sources?
Thanks
-Dan
In freedesktop.org Bugzilla #4945, Chris Palmer (cwrefp) wrote : | #38 |
I would prefer a patch that has all the workarounds (WORKAROUND_
WORKAROUND_R5G6B5 included) and doesn't break 24-Bit-True Color Visual compatibility. I think the workarounds are useful (or could potentially be useful) for more than just pango.
In freedesktop.org Bugzilla #4945, Pesco (pesco-auto-created) wrote : | #39 |
I'm experiencing the same "crash-
note is that the display in question is 16bit, the problem also appears at
24bit. My segfault, when running 'gtk-demo' happens in
_cairo_
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218046288 (LWP 16941)]
0xb78f8039 in _cairo_
The client machine is Linux/Intel whereas the X server is running on Linux/
PowerPC.
In freedesktop.org Bugzilla #4945, Pesco (pesco-auto-created) wrote : | #40 |
(In reply to comment #31)
Right, these are Cairo 1.2.4 and GTK 2.10.6...
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #41 |
*** Bug 8382 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #42 |
*** Bug 8530 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #43 |
*** Bug 8764 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Drahflow (drahflow) wrote : | #44 |
Seems like I have a similar problem, only now cairo spills some error messages about not supporting 8-bit visuals.
In freedesktop.org Bugzilla #4945, Florian-heigl (florian-heigl) wrote : | #45 |
Hi,
I also hit this behaviour in a RHEL5 + Sun Secure Global Desktop scenario.
Error: Cairo does not yet support the requested image format:
Depth: 8
Alpha mask: 0x00000000
Red mask: 0x00000000
Blue mask: 0x00000000
Green mask: 0x00000000
Please file an enhacement request (quoting the above) at:
http://
gnome_segv: cairo-image-
on `NOT_REACHED' failed.
[root@localhost ~]# rpm -aq | grep -i pango
pango-1.13.4-2
pycairo-1.2.0-1.1
cairo-1.2.0-2
I read through all the related info here now, and I think someone from the dev's
should test the patches submitted here AND drop a line to Redhat. They might
want to patch up their version.
FYI, i think I can switch my colordepth setting somewhere, but when I hit the
error I ended up getting about 200 windows created till I could kill it - *not*
pleasant :))
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #46 |
*** Bug 9115 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #47 |
*** Bug 9283 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Eth0-o2 (eth0-o2) wrote : | #48 |
On OpenBSD 4.0-current (Wed Dec 6 03:34:00 MST 2006), X.org 6.9.0 depth 16bit
with cairo-1.2.6 gtk+2-2.10.6 pango-1.14.7 and patch id=6819 form this bug
id=4945 nautilus 2.16.3 crashes like:
Breakpoint 1, cairo_xlib_
bitmap=4194436, screen=0x7d2a8b80, width=139, height=78)
at cairo-xlib-
2154 return _cairo_
(gdb) n
Program received signal SIGSEGV, Segmentation fault.
0x0919e97d in _cairo_
drawable=
width=139, height=78, depth=1) at cairo-xlib-
2065 if (xrender_format == NULL &&
(gdb) bt
#0 0x0919e97d in _cairo_
drawable=
width=139, height=78, depth=1) at cairo-xlib-
#1 0x0919eb15 in cairo_xlib_
bitmap=4194436, screen=0x7d2a8b80, width=139, height=78)
at cairo-xlib-
#2 0x0adcd87a in gdk_x11_
at gdkdrawable-
#3 0x0ad9cd7e in _gdk_drawable_
at gdkdraw.c:1263
#4 0x0ada9110 in gdk_pixmap_
at gdkpixmap.c:515
#5 0x0ad9cd7e in _gdk_drawable_
at gdkdraw.c:1263
#6 0x0ad98a69 in gdk_cairo_create (drawable=
#7 0x0ada350b in get_cairo_context (gdk_renderer=
part=
#8 0x0ada36c4 in gdk_pango_
font=
#9 0x021065ef in pango_renderer_
font=
at pango-renderer.
#10 0x021063e8 in pango_renderer_
line=
#11 0x02105c00 in pango_renderer_
layout=
#12 0x0ada51d3 in gdk_draw_
gc=0x81907dd0, x=1, y=49, layout=0x89312678, foreground=0x0,
background=0x0) at gdkpango.c:1029
#13 0x0ada54b3 in gdk_draw_layout (drawable=
y=49, layout=0x89312678) at gdkpango.c:1091
#14 0x1c0cd999 in nautilus_
#15 0x1c0cc827 in nautilus_
#16 0x1c0cb793 in nautilus_
#17 0x1c0b1162 in nautilus_
#18 0x061b6dfe in g_cclosure_
from /usr/local/
#19 0x061a5f6e in g_closure_invoke ()
from /usr/local/
#20 0x061b6081 in g_signal_
from /usr/local/
#21 0x061b521e in g_signal_
from /usr/local/
#22 0x0...
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #49 |
*** Bug 9587 has been marked as a duplicate of this bug. ***
Sebastien Bacher (seb128) wrote : | #50 |
Marking confirmed, the bug is known upstream
Changed in libcairo: | |
importance: | Undecided → Medium |
status: | Unconfirmed → Confirmed |
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #51 |
Patch used in Sun's JDS: http://
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #52 |
*** Bug 10460 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #53 |
*** Bug 10469 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #54 |
*** Bug 10516 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #55 |
*** Bug 10532 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Dan McMahill (dmcmahill) wrote : | #56 |
By my count there have been 16 other bug reports marked as duplicates of this one. Several patches have been offered and unless I missed it, there has been no negative feedback about these patches which has not been addressed.
Is there any chance at all of these patches ever making their way back into the main source tree? Or is it always going to be the case that users will have to maintain patches if they care about users that may have older displays? Note that some users may be running on high end computers but still may have older displays and are thus crippled with this.
I'm sure many of us would like to hear some official feedback especially if it is a step towards getting this fixed in the official sources. It seems there is no shortage of users to test patches although as someone pointed out quite a while back, VNC can give you access to displays with different color depths.
I hate to complain too much because I'm someone who also contributes quite a bit to various open source projects I realize there isn't always time to look at all the bug reports and patch submissions, but at the same time, cairo is really critical to many many apps and it seems that the patches proposed here are seeing quite a bit of real life use and day to day testing.
In freedesktop.org Bugzilla #4945, Chris Palmer (cwrefp) wrote : | #57 |
Perhaps it is because all the patches I've seen would need some
tidying up before they'd be suitable - `patch' is very much the
right word for the code given within them. They work, but
you wouldn't want cairo to be comprised entirely of these patches.
I would expect that if one of the patches was polished up a bit, it might
have a better chance of being merged...
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #58 |
(In reply to comment #47)
> By my count there have been 16 other bug reports marked as duplicates of this
> one.
Yes, and the duplicates alone are annoying enough that I'd definitely like to see this bug (and other similar ones) go away for good. We've even added this to the RAODMAP for somewhere along the 1.4.x or 1.6. See:
http://
> Several patches have been offered and unless I missed it, there has been
> no negative feedback about these patches which has not been addressed.
That's primarily because I've never even seen a patch that the author has suggested was clean or complete.
And I believe the most recent discussion has happened on the cairo mailing list, not here in bugzilla, (and the whole split-conversation thing is something that I dislike about bugzilla very much).
Here's a pointer to what I think is the most recent post on the mailing list on the topic:
http://
I'd be happy to have help with this, (including success reports),
-Carl
In freedesktop.org Bugzilla #4945, Dan McMahill (dmcmahill) wrote : | #59 |
thanks. I'll direct further questions to the mailing list. FWIW, here is a link to the patch currently used by NetBSD pkgsrc: http://
It seems to work alright for me with a Sun ultra/10 display (8 bit psuedo color) and we have not been hearing complaints from other users with more modern displays. Since cairo affects much of gnome as well as firefox/
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #60 |
*** Bug 10588 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Brian-cameron-oracle (brian-cameron-oracle) wrote : | #61 |
Created an attachment (id=9844)
updated patch for cairo 1.4.6
I noticed that the latest version of this patch is for cairo 1.4.2 and apply against cairo 1.4.6. The code is pretty much the same, though the structures have now moved into cairo-xlib-
I notice when I log into my session passing "-depth 8" to the Xorg Xserver, so I am running in 8bit mode that there are some problems:
- sometimes the background image doesn't look right. Depending on the
background image used, it looks like it isn't being scaled cleanly or it
sometimes has horizontal black lines running through the image.
- I also notice that gnome-screenshot seems to take really messed up pictures
of the desktop.
So I'm not sure 8bit mode works perfectly even with this patch applied, though those bugs may not be related to cairo. I'm not sure. I see the exact same problems running with the earlier version of the patch with cairo 1.4.0, so I do not think these problems are introduced by my update of the patch.
I haven't filed bugs against these two issues yet since this 8bit logic isn't yet integrated into cairo. I just mention I am seeing these problems so the cairo developers can look into this and see if they might understand what the problems may be. If these aren't cairo problems, we probably should file bugs against control-center Desktop Background capplet and gnome-screenshot once this patch goes upstream.
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #62 |
*** Bug 10947 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #63 |
*** Bug 11202 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #64 |
*** Bug 11175 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Kalle Vahlman (zuh) wrote : | #65 |
*** Bug 11405 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, idefix (chris-wang) wrote : | #66 |
It seems that cairo not only doesn't support 8bit pseudocolor but also Truecolor, remember there is still a case that the 8bit color represent as truecolor with 2bit blue, 3bit Green and 3bit Red, this kind of color system still been used in some case.
In freedesktop.org Bugzilla #4945, idefix (chris-wang) wrote : | #67 |
Created an attachment (id=11071)
Revise the patch to support 8bit truecolor also
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #68 |
*** Bug 11745 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #69 |
*** Bug 11926 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #70 |
*** Bug 12010 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #71 |
*** Bug 13386 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Thayes77 (thayes77) wrote : | #72 |
So I'm trying to figure out how to apply this patch. I will say I know almost nothing about Linux, but I am a physics/
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #73 |
*** Bug 13642 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Marek-rouchal (marek-rouchal) wrote : | #74 |
I stumbled across a similar problem: Firefox wouldn't start on a 256-color Citrix Metaframe (aka ICA) display (commercial software to display X on a Windows PC). So I took cairo-1.4.12, applied the most recent of the attached patches, compiled my own libcairo, and started firefox 2.0.0.6 with LD_LIBRARY_PATH set to the new libcairo, which resulted in this error message:
Error: Cairo 1.4.12 does not yet support the requested image format:
Depth: 8
Alpha mask: 0x00000000
Red mask: 0x00000000
Green mask: 0x00000000
Blue mask: 0x00000000
Please file an enhancement request (quoting the above) at:
http://
firefox-bin: cairo-image-
I tried changing line 173 of src/cairo-
case 8:
if ((am == 0xff || am == 0x0) &&
But that did not help - firefox then crashes with a segfault. Could be that the version jump of libcairo.so.2.9.2 to libcairo.so.2.11.6 was too high, and I'd have to recompile all GTK/firefox, which I cannot afford. I will try patching the older release of cairo (1.2.4), and let you know...
In freedesktop.org Bugzilla #4945, Marek-rouchal (marek-rouchal) wrote : | #75 |
(In reply to comment #65)
> I will try patching
> the older release of cairo (1.2.4), and let you know...
I used Dan's patch (https:/
-Marek
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #76 |
Thanks Marek. Can you attach a screenshot?! I'm curious how it looks.
In freedesktop.org Bugzilla #4945, Marek-rouchal (marek-rouchal) wrote : | #77 |
Created an attachment (id=13517)
screenshot of firefox on 256 color (depth 8) display
In freedesktop.org Bugzilla #4945, Fboiteux (fboiteux) wrote : | #78 |
Hello,
I can't use libcairo and all GTK applications of a Debian Etch (cairo 1.2.4) on my X11 NCD terminal (8bit colors) since a long time. I've tried to use patch #6762, and with it, applications launch but giving a lot of messages like :
No workaround for this pixel format: Visual: class=TrueColor, bpRGB=8, CM=8, r=7, g=38, b=c0
...
And no text appear !
I've also tried patch #6819, but applications fail :
.../libcairo-
Error: Cairo does not yet support the requested image format:
Depth: 8
Alpha mask: 0x00000000
Red mask: 0x00000007
Green mask: 0x00000038
Blue mask: 0x000000c0
Please file an enhacement request (quoting the above) at:
http://
I'm not as lucky as Marek, and always stuck on old Debian Sarge from 2005 :-(
In freedesktop.org Bugzilla #4945, Ashish (ashishyadav26) wrote : | #79 |
Hi,
I applied patch 11071 on cairo 1.4.10 on AIX 52. Build Firefox with the 1.4.10 devel RPM, however Firefox still crashed when started in 8 bit color mode.
Following was the error
Error: Cairo 1.4.10 does not yet support the requested image format:
Depth: 8
Alpha mask: 0x00000000
Red mask: 0x00000000
Green mask: 0x00000000
Blue mask: 0x00000000
Please file an enhancement request (quoting the above) at:
http://
The assert subroutine failed: NOT_REACHED, file cairo-image-
obj-opt/
Changed in libcairo: | |
status: | Confirmed → Triaged |
In freedesktop.org Bugzilla #4945, Ashish (ashishyadav26) wrote : | #80 |
Created an attachment (id=14169)
Patch which worked on AIX 52
I tried to play around with the patch 11071, and this is what worked finally ( was able to run Firefox) in both Pseudo color and True color.
Looking for assistance in finding a suitable fix.
In freedesktop.org Bugzilla #4945, Freedesktop (freedesktop) wrote : | #81 |
(In reply to comment #71)
> Created an attachment (id=14169) [details]
> Patch which worked on AIX 52
>
> I tried to play around with the patch 11071, and this is what worked finally (
> was able to run Firefox) in both Pseudo color and True color.
>
> Looking for assistance in finding a suitable fix.
Screenshots? Does this fix have the same artifacts as the last screenshot posted?
In freedesktop.org Bugzilla #4945, Stefan Schmidt (zaphodb) wrote : | #82 |
i have a monochrome XTerminal NCD 16e, same blues:
collin:~> firefox
Error: Cairo 1.4.14 does not yet support the requested image format:
Depth: 1
Alpha mask: 0x00000000
Red mask: 0x00000000
Green mask: 0x00000000
Blue mask: 0x00000000
Please file an enhancement request (quoting the above) at:
http://
firefox-bin: /home/dajobe/
Abort
;)
Zap
In freedesktop.org Bugzilla #4945, Adrian Johnson (ajohnson-redneon) wrote : | #83 |
*** Bug 12283 has been marked as a duplicate of this bug. ***
In freedesktop.org Bugzilla #4945, Carl Worth (cworth) wrote : | #84 |
This bug is now fixed in the cairo 1.5.14 snapshot and the fix will appear in the imminent 1.6.0 cairo release.
Please test and let me know how things go.
-Carl
Changed in libcairo: | |
status: | Confirmed → Fix Released |
Pedro Villavicencio (pedro) wrote : | #85 |
fixed upstream, thanks for reporting.
Changed in libcairo: | |
assignee: | nobody → desktop-bugs |
status: | Triaged → Fix Committed |
Sebastien Bacher (seb128) wrote : | #86 |
the new version has been uploaded to hardy
Changed in libcairo: | |
status: | Fix Committed → Fix Released |
In freedesktop.org Bugzilla #4945, Fboiteux (fboiteux) wrote : | #87 |
Hello,
I've tested new 1.6.4 Cairo on a Debian Etch system (by recompiling the 1.6.4-1 Debian Sid package), and tested it on my X11 terminal : it works, but I still have a problem : all texts are painted with ugly colors (something like pink on purple (see attachment), and it's unusable. As i know there is different kinds of 8bits display, and that I tested this new Cairo version through Debian packaging, I wonder if the problem comes from Cairo, Debian packaging, GTK2 or something else. Is there something I can do to help to fix it ?
In freedesktop.org Bugzilla #4945, Fboiteux (fboiteux) wrote : | #88 |
Created an attachment (id=16702)
Capture of part of my screen, with 'gkrellm' from new Cairo on the top and from an old no-Cairo version on the bottom
In freedesktop.org Bugzilla #4945, Marek-rouchal (marek-rouchal) wrote : | #89 |
Created an attachment (id=22849)
screen capture of Firefox 2.0.0.17 with cairo-1.8.6 on 256 color X11 on Solaris 10 x86
I confirm that cairo-1.8.6 fixes this problem; rendering on 256-color X11 works OK now. Thanks to the developers, good job!
Changed in libcairo: | |
importance: | Unknown → Critical |
Changed in libcairo: | |
importance: | Critical → Unknown |
Changed in libcairo: | |
importance: | Unknown → Critical |
I am seeing someting very similar on NCD and IBM X terminals. On SuSE 10.0
firefox 1.0.7 crashes with a segmentation fault as soon as you start it. I have
gtk2-2.8.3-4
cairo-1.0.0-7.2
Here is my traceback:
#0 0x00000000 in ?? () pixman_ composite_ tri_fan () libcairo. so.2 pixman_ composite_ tri_fan () libcairo. so.2 pixman_ region_ intersect () from /usr/lib/ libcairo. so.2 surface_ get_height () from /usr/lib/ libcairo. so.2 create_ similar () from /usr/lib/ libcairo. so.2 options_ get_hint_ metrics () libcairo. so.2 options_ get_hint_ metrics () libcairo. so.2 options_ get_hint_ metrics () libcairo. so.2 options_ get_hint_ metrics () libcairo. so.2 options_ get_hint_ metrics () libcairo. so.2 preserve () from /usr/lib/ libcairo. so.2 libcairo. so.2 apply_default_ background () lib/libgtk- x11-2.0. so.0 lib/libgtk- x11-2.0. so.0 y::nsCharPtrHas hKey () y::nsCharPtrHas hKey () nsITimerInterna l>::GetIID () nsITimerInterna l>::GetIID () lEnumerator: :nsIBidirection alEnumerator () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsISupportsPRIn t32>::GetIID () nsIObjectInputS tream>: :nsCOMPtr () nsIObjectInputS tream>: :nsCOMPtr () nsIObjectInputS tream>: :nsCOMPtr () nsIBidirectiona lEnumerator> ::nsCOMPtr () nsICollection> ::GetI. ..
#1 0xb3658842 in _cairo_
from /usr/lib/
#2 0xb365b906 in _cairo_
from /usr/lib/
#3 0xb364bc69 in _cairo_
#4 0xb362d4a9 in cairo_image_
#5 0xb3632d89 in cairo_surface_
#6 0xb362a573 in cairo_font_
from /usr/lib/
#7 0xb3629cb6 in cairo_font_
from /usr/lib/
#8 0xb362a97b in cairo_font_
from /usr/lib/
#9 0xb362ab87 in cairo_font_
from /usr/lib/
#10 0xb362ac6a in cairo_font_
from /usr/lib/
#11 0xb3624609 in cairo_stroke_
#12 0xb3624632 in cairo_stroke () from /usr/lib/
#13 0xb38e656e in gtk_style_
from /opt/gnome/
#14 0xb38ed0c0 in gtk_paint_check () from /opt/gnome/
#15 0x081c1aca in nsCharPtrHashKe
#16 0x081c0768 in nsCharPtrHashKe
#17 0x0823d4ff in nsCOMTypeInfo<
#18 0x0823df08 in nsCOMTypeInfo<
#19 0x08204c63 in nsIBidirectiona
#20 0x0825b55d in nsCOMTypeInfo<
#21 0x0825e0c3 in nsCOMTypeInfo<
#22 0x0825c352 in nsCOMTypeInfo<
#23 0x0825b5ea in nsCOMTypeInfo<
#24 0x0825e0c3 in nsCOMTypeInfo<
#25 0x0825c352 in nsCOMTypeInfo<
#26 0x0825b5ea in nsCOMTypeInfo<
#27 0x0825e0c3 in nsCOMTypeInfo<
#28 0x0825c352 in nsCOMTypeInfo<
#29 0x0825b5ea in nsCOMTypeInfo<
#30 0x0825e0c3 in nsCOMTypeInfo<
#31 0x0825c352 in nsCOMTypeInfo<
#32 0x0825b5ea in nsCOMTypeInfo<
#33 0x0825e0c3 in nsCOMTypeInfo<
#34 0x0825c352 in nsCOMTypeInfo<
#35 0x0825b5ea in nsCOMTypeInfo<
#36 0x0825e0c3 in nsCOMTypeInfo<
#37 0x0825c352 in nsCOMTypeInfo<
#38 0x0825b5ea in nsCOMTypeInfo<
#39 0x083e37bc in nsCOMPtr<
#40 0x083e2e42 in nsCOMPtr<
#41 0x083e2624 in nsCOMPtr<
#42 0x08215570 in nsCOMPtr<
#43 0x08368f61 in nsCOMTypeInfo<