PDA

View Full Version : Compiz works but window decorator not. [No window borders]


gadLinux
November 3rd, 2007, 02:32 PM
I have a problem with the window decorator. No matter if I use gtk-window-decorator or emerald. The window does not show.

This is the error:


gad@azul1 ~ $ gtk-window-decorator
gtk-window-decorator:27056): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap

(gtk-window-decorator:27056): Gdk-CRITICAL **: gdk_cairo_create: assertion `GDK_IS_DRAWABLE (drawable)' failed
Violación de segmento
gad@azul1 ~ $



My computer is:

Linux azul1 2.6.21-gentoo-r3 #1 SMP PREEMPT Wed Jul 18 03:17:58 CEST 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux




and the Xorg is:


# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder26) Wed Sep 12 14:29:17 PDT 2007

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (root@azul1) Fri Oct 5 23:31:22 CEST 2007
##
## WACOM
##
##
## Screens
##

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
RgbPath "/usr/lib64/X11/rgb"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
Option "BackingStore" "True"
Option "DamageEvents" "True"
Option "RenderAccel" "True"
EndSection

Section "InputDevice"

# generated from data in "/etc/conf.d/gpm"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbModel" "pc104"
Option "XkbLayout" "es"
EndSection

Section "InputDevice"
Identifier "Pluma"
Driver "wacom"
Option "Type" "stylus"
Option "Device" "/dev/input/event2"
Option "Mode" "absolute"
Option "USB" "on"
Option "HistorySize" "2000"
EndSection

Section "InputDevice"
Identifier "Borrador"
Driver "wacom"
Option "Type" "eraser"
Option "Device" "/dev/input/event2"
Option "Mode" "absolute"
Option "USB" "on"
Option "HistorySize" "2000"
EndSection

Section "InputDevice"
Identifier "Cursor"
Driver "wacom"
Option "Type" "cursor"
Option "Device" "/dev/input/event2"
Option "Mode" "relative"
Option "Tilt" "on"
Option "HistorySize" "200"
Option "KeepShape" "1"
EndSection

Section "Monitor"

# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Sony SDM-HS74P"
HorizSync 28.0 - 81.0
VertRefresh 48.0 - 75.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 6600"
Option "AllowGLXWithComposite" "true"
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "metamodes" "CRT: nvidia-auto-select +1280+0, DFP: nvidia-auto-select +0+0; CRT: nvidia-auto-select +0+0, DFP: NULL"
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection





This would help:


00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600] (rev a2)
05:08.0 Multimedia controller: Pinnacle Systems Inc. Royal TS Function 1
05:08.1 Multimedia controller: Pinnacle Systems Inc. RoyalTS Function 2
05:08.2 Multimedia controller: Pinnacle Systems Inc. Royal TS Function 3
05:0a.0 RAID bus controller: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02)
05:0b.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
05:0c.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 13)



Can you help me please?

I'm using Twinview and compiz-fusion works but not the window decorators...

aglonger
November 3rd, 2007, 04:32 PM
Try this:
1. Run ccsm
2. Enable window-decoration-plugin and enter settings of window-decoration-plugin
3. In 'Command' area type: emerald

Restart Compiz.
For me it works.

gadLinux
November 3rd, 2007, 05:14 PM
It still does not work.

The window decorator plugin is on. Everything seems to be in place but still not window borders. Emerald runs without problems but shows not window borders.

Also everytime I change the theme it gives as follows:



gad@azul1 ~ $ emerald --replace

(emerald:17709): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
Reloading...

(emerald:17709): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
Reloading...

(emerald:17709): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed




I changed the theme 2 times, the first message comes from the initial loading.

I don't know what else should I do.

I tracked down the problem and seems to be always the same.

gadLinux
November 3rd, 2007, 05:16 PM
The error of gtk-window-decorator from gdb is:


(gdb) bt
#0 0x00002abb45520677 in cairo_set_source_rgba () from /usr/lib/libcairo.so.2
#1 0x00000000004112d9 in ?? ()
#2 0x0000000000408f60 in ?? ()
#3 0x00002abb42092cb1 in decor_shadow_create ()
from /usr/lib/libdecoration.so.0
#4 0x0000000000408cb4 in ?? ()
#5 0x000000000040f851 in ?? ()
#6 0x00002abb47ba9b74 in __libc_start_main () from /lib/libc.so.6
#7 0x0000000000406b69 in ?? ()
#8 0x00007fff68c35b28 in ?? ()
#9 0x0000000000000000 in ?? ()


I don't know if this helps...

adamk
November 3rd, 2007, 08:15 PM
Sounds like an incompatability between the decorators, cairo, and/or glib. I suggest making sure they are all up-to-date and possibly re-emerging them.

Adam

gadLinux
November 5th, 2007, 09:06 PM
It's up to date. Cairo and Glib are latest versions.

But the message:


gtk-window-decorator:27056): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap



Makes me thing that the window does not have colormap so maybe it's a programing error.

I don't know.

corny
January 9th, 2008, 08:52 AM
I notice you are running a 6600 graphics card. I have this card and wasn't seeing window borders when trying to run either emerald or compiz window decorators under the direct driver support, or AIGLX. I found no problems however when i switch to using the Xgl layer.

also make sure you are running the G01 flavour of the driver as I had no joy with the other one

shogun1234
April 9th, 2008, 02:22 AM
So how to switch to using Xgl layer? or how to solve this error?

I had already enable the window decorator in the compiz setting (gtk-window-decorator --replace) and the icon of compiz appears on the systray, except that when switching to the compiz it echoes errors as follow:

fusion-icon
* Detected Session: gnome
* Searching for installed applications...
* No GLX_EXT_texture_from_pixmap with direct rendering context
... present with indirect rendering, exporting: LIBGL_ALWAYS_INDIRECT=1
* Using the GTK Interface
* Starting Compiz
... executing: compiz.real --replace --sm-disable --ignore-desktop-hints ccp --loose-binding --indirect-rendering
compiz.real (video) - Warn: No 8 bit GLX pixmap format, disabling YV12 image format
compiz.real (snow) - Info: Loaded Texture snowflake.png

(gtk-window-decorator:5602): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap

(gtk-window-decorator:5602): Gdk-CRITICAL **: gdk_cairo_create: assertion `GDK_IS_DRAWABLE (drawable)' failed


The environment I use is debian lenny testing, kernel 2.6.24.2, fusion-icon 0.0.0, metacity 2.22.0. graphic card is ATI x300 (I install driver provided by ATI; so direct rendering is yes.)

shogun1234
April 9th, 2008, 02:22 AM
So how to switch to using Xgl layer? or how to solve this error?

I had already enable the window decorator in the compiz setting (gtk-window-decorator --replace) and the icon of compiz appears on the systray, except that when switching to the compiz it echoes errors as follow:

fusion-icon
* Detected Session: gnome
* Searching for installed applications...
* No GLX_EXT_texture_from_pixmap with direct rendering context
... present with indirect rendering, exporting: LIBGL_ALWAYS_INDIRECT=1
* Using the GTK Interface
* Starting Compiz
... executing: compiz.real --replace --sm-disable --ignore-desktop-hints ccp --loose-binding --indirect-rendering
compiz.real (video) - Warn: No 8 bit GLX pixmap format, disabling YV12 image format
compiz.real (snow) - Info: Loaded Texture snowflake.png

(gtk-window-decorator:5602): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap

(gtk-window-decorator:5602): Gdk-CRITICAL **: gdk_cairo_create: assertion `GDK_IS_DRAWABLE (drawable)' failed


The environment I use is debian lenny testing, kernel 2.6.24.2, fusion-icon 0.0.0, metacity 2.22.0. graphic card is ATI x300 (I install driver provided by ATI; so direct rendering is yes.)

guidored
April 9th, 2008, 11:06 PM
OK ... i have the same kind of problem, but perhaps for diferent reasons ...

no decoration windows on emerald ... and when use $ emerald --replace ... i have

(emerald:15528): Wnck-WARNING **: Unhandled action type (nil)

Any suggestions???? ...

:mad: