LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-30-2006, 11:47 AM   #1
RedCharlie
LQ Newbie
 
Registered: Jul 2003
Location: Arkansas
Distribution: Fedora, Ubuntu, CentOS
Posts: 26

Rep: Reputation: 15
xfce4 over VNC on FC5, xfwm4 crashes, no panel, no menu


I am trying to run xfce4 over Xvnc on FC5. I have another similar machine, a FC4 box, running xfce4 over vnc w/o the problems below.

On the affected machine, xfce4 seems to run fine over the console (along with GNOME and KDE), but when I try to run xfce4 via vnc, things only seem to half work. The panel, the taskbar, and the window manager fail to run. If I try to manually start xfwm4 within an xterm, it segfaults and takes the xterm and taskbar with it! I don't have a menu. So, it's pretty much useless.

My system:
mobo,CPU,ram: ECS K7SOM+5c Duron950Mhz 384MB crucialPC100SDRAM
OS: FC5, kernel 2.6.15-1.2054_FC5

xfce4 software installed:
xfcalendar.i386 4.2.3-2.fc5 installed
xfce-mcs-manager.i386 4.2.3-2.fc5 installed
xfce-mcs-plugins.i386 4.2.3-3.fc5 installed
xfce-utils.i386 4.2.3-4.fc5 installed
xfce4-datetime-plugin.i386 0.3.1-7.fc5 installed
xfce4-diskperf-plugin.i386 1.5-6.fc5 installed
xfce4-fsguard-plugin.i386 0.2.1-4.fc5 installed
xfce4-icon-theme.noarch 4.2.3-2.fc5 installed
xfce4-iconbox.i386 4.2.3-3.fc5 installed
xfce4-mixer.i386 4.2.3-2.fc5 installed
xfce4-mount-plugin.i386 0.3.3-4.fc5 installed
xfce4-panel.i386 4.2.3-4.fc5 installed
xfce4-quicklauncher-plugin.i386 0.81-4.fc5 installed
xfce4-session.i386 4.2.3-3.fc5 installed
xfce4-session-engines.i386 4.2.3-3.fc5 installed
xfce4-showdesktop-plugin.i386 0.4.0-6.fc5 installed
xfce4-systemload-plugin.i386 0.3.6-6.fc5 installed
xfce4-systray.i386 4.2.3-2.fc5 installed
xfce4-taskbar-plugin.i386 0.2.2-6.fc5 installed
xfce4-windowlist-plugin.i386 0.1.0-6.fc5 installed
xfce4-xkb-plugin.i386 0.3.5-2.fc5 installed
xfdesktop.i386 4.2.3-4.fc5 installed
xffm.i386 4.2.3-4.fc5 installed
xfsprogs.i386 2.7.3-1.2.1 installed
xfwm4.i386 4.2.3.2-5.fc5 installed
xfwm4-themes.noarch 4.2.3-2.fc5 installed

vncserver rpms installed:
vnc.i386 4.1.1-39.fc5 installed
vnc-server.i386 4.1.1-39.fc5 installed

contents of ~/.vnc/xstartup
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

export VNCSESSION="TRUE"
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startxfce4
#twm &

contents of
~/.vnc/localhost.localdomain:5.log
Xvnc Free Edition 4.1.1
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 70000000, The X.Org Foundation


Sat Sep 30 11:19:32 2006
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5905
vncext: Listening for HTTP connections on port 5805
vncext: created VNC server for screen 0
Could not init font path element /usr/share/X11/fonts/OTF, removing from list!
Could not init font path element /usr/share/X11/fonts/CID/, removing from list!
/usr/bin/startxfce4: X server already running on display :5
Agent pid 4642

(xfce-mcs-manager:4661): libxfce4mcs-CRITICAL **: mcs_manager_add_channel_from_file: assertion `filename != NULL && strlen (filename) > 0' failed
Xlib: extension "RANDR" missing on display ":5.0".

** (xfce-mcs-manager:4661): CRITICAL **: find_master: assertion `mixer_handle != -1' failed

** (xfce-mcs-manager:4661): WARNING **: oss: No master volume
The program 'xfce4-panel' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 1246 error_code 8 request_code 72 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

Sat Sep 30 11:20:03 2006
Connections: accepted: 127.0.0.1::36699
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VncAuth(2)

Sat Sep 30 11:20:06 2006
VNCSConnST: Server default pixel format depth 8 (8bpp) colour-map
VNCSConnST: Client pixel format depth 8 (8bpp) colour-map
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 24 (X_ConvertSelection)
Resource id in failed request: 0x40000a
Serial number of failed request: 141
Current serial number in output stream: 141

(xfdesktop:4685): Gdk-WARNING **: GdkWindow 0x1200006 unexpectedly destroyed
 
Old 10-01-2006, 07:14 PM   #2
RedCharlie
LQ Newbie
 
Registered: Jul 2003
Location: Arkansas
Distribution: Fedora, Ubuntu, CentOS
Posts: 26

Original Poster
Rep: Reputation: 15
this is a vnc problem, not an xfce problem

I've had the almost exactly the same error with Gnome and KDE. Contents of my vnc log file (for Gnome):

Sun Oct 1 17:33:25 2006 vncext: VNC extension running!
vncext: Listening for VNC connections on port 5904
vncext: created VNC server for screen 0 SESSION_MANAGER=local/km400mlv:/tmp/.ICE-unix/2651
The program 'gnome_segv2' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 466 error_code 8 request_code 72 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)
Window manager warning: Log level 32: could not find XKB extension.


This is on two different new installs of FC5, one on an ECS k7som+5c 1Ghz duron, 384MB 100Mhz SDRAM (kernel 2.6.15-1.2054_FC5), the other on a DFI KM400MLV 1800Ghz Athlon XP (Barton) with 512 MB 333DDR (kernel 2.6.17-1.2187_FC5)

But I've had this problem from the start. vnc has never worked for me on FC5 (vnc works fine for me on FC4). I first tried vnc with xfce instead of gnome or kde. Whatever the case, nothing works completely (gnome or xfce are useless, kde and fluxbox work but apps fail).

I also get this error when I use the vncserver command to start the Xvnc server:
xauth: (stdin):1: bad display name "km400mlv:4" in "add" command

If I try xfce (using "startxfce4" in my .vnc/xstartup ) I get this in the log file:

(xfce-mcs-manager:2845): libxfce4mcs-CRITICAL **: mcs_manager_add_channel_from_file: assertion `filename != NULL && strlen (filename) > 0' failed
The program 'xfce4-session' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 1831 error_code 8 request_code 72 minor_code 0)


I've tried turning off the firewall and SELinux, but nothing seems to have any effect.

The fluxbox and KDE sorta work, but a lot of X11 apps mysteriously fail (like firefox (exit code 139), or system-config-* scripts)

Funny thing is, say I run KDE over vnc, and in a console do:

[charlie@k7som-5c ~]$ system-config-services
The program 'system-config-services' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 939 error_code 8 request_code 72 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)
[charlie@k7som-5c ~]$ firefox
[charlie@k7som-5c ~]$ echo $? 139

Again, this is almost exactly the same as what I'm seeing with Gnome or xfce in my vnclog file, but using KDE I'm just getting this error for applications, not for the desktop itself (and the firefox exit code of 139 is the same as I get when I try running it under fluxbox).

To be clear, KDE, Gnome, Xfce all run fine on the console. My troubles are just with VNC.

Any suggestions, hints, whatever would be very welcome.
-redcharlie
 
Old 10-01-2006, 09:07 PM   #3
RedCharlie
LQ Newbie
 
Registered: Jul 2003
Location: Arkansas
Distribution: Fedora, Ubuntu, CentOS
Posts: 26

Original Poster
Rep: Reputation: 15
fixed

I now have vnc working.
solution:
as root, do the following two things :
1) edit /etc/sysconfig/vncservers
specify vncserver parameters for each vncserver that you want to start (at boot)

2) run /etc/init.d/vncserver start

voila, you're in business

(And then run system-config-services and make sure vncserver is checked to run at boot so you don't have to do the above every time)

a quick scan of /etc/init.d/vncserver just shows that it runs vncserver for the users specified with the parameters specified, so I don't know what the difference is between that and the user just running vncserver on the command line. But obviously there is something special that is done by the init.d script.

I'm able to run vncserver from the commandline as the user in FC4, ubuntu 6.06, debian, CentOS4, etc. First time I've had this particular issue.

I found this post to give me the clue:
http://www.realvnc.com/pipermail/vn...ber/052743.html
 
Old 10-03-2006, 05:05 PM   #4
RedCharlie
LQ Newbie
 
Registered: Jul 2003
Location: Arkansas
Distribution: Fedora, Ubuntu, CentOS
Posts: 26

Original Poster
Rep: Reputation: 15
Thumbs up fixed (this time, really...)

AHA!

It has nothing to do with permissions at all. Somehow I missed that I had
specified "-depth 8" in my user command, but had forgotten to specify this
option in /etc/sysconfig/vncservers (THe default depth is 16)

To reproduce the problem, run

vncserver :{display#} -depth 8

I forgot that I had specified that in my default vncserver script. Once I take
out the depth option, or just say, do a "-depth 16" everything works fine!
 
  


Reply

Tags
fedora 5, vnc, xfce, xvnc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xfce4 panel seelk Linux - Software 1 04-08-2006 12:10 PM
Getting rid of XFCE4-panel...using xfce4 and Ubuntu jagibbs Linux - Software 1 04-06-2006 05:00 AM
Without xfce4-panel caneca Linux - Newbie 1 10-20-2005 04:29 PM
gnome-panel crashes :: shortcuts from start menu vanish... hpnadig Mandriva 2 01-02-2004 12:20 PM
gnome-panel crashes. Which file is responsible for the position of the panel? Satriani Linux - General 1 06-20-2003 06:51 PM


All times are GMT -5. The time now is 10:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration