LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-08-2004, 01:04 AM   #1
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
problems running gtk apps remotely


I am having trouble running gtk apps over ssh. Other programs run fine, but gtk ones always crash with an error. Gtk is versions 1.2.10 and 2.4.9, but I had the same problems with 2.4.1. I'm running gentoo with kernel 2.6.8.1-ck-r7 (on all machines). X is x.org version 6.8 on the server (6.7 on the machines I'm sshing too, but I don't think that matters). My computer is an opteron. The computers I'm sshing to are athlon-xps
gaim:
Code:
The program 'gaim' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 175 error_code 3 request_code 2 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.)
xmms loads but crashes when I try to drag the window:
Code:
Gdk-ERROR **: BadWindow (invalid Window parameter)
  serial 1607 error_code 3 request_code 38 minor_code 0
Gdk-ERROR **: BadAccess (attempt to access private resource denied)
  serial 1608 error_code 10 request_code 102 minor_code 0
gkrellm2:
Code:
The program 'gkrellm2' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAtom (invalid Atom parameter)'.
  (Details: serial 1158 error_code 5 request_code 20 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.)
gmplayer:
Code:
Xlib:  extension "XFree86-VidModeExtension" missing on display "localhost:11.0".
X11 error: BadDrawable (invalid Pixmap or Window parameter)
Aborted
xload runs, oowriter runs, etc. All the programs work when I walk over to the other computer and run them locally. It just seems to be a problem with gtk programs over ssh. Any suggestions? Something wrong with my configuration?
 
Old 10-10-2004, 10:56 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
Bump.....

I'm getting the same type of issue when I try and run gvim over ssh w/ xforwarding.

Code:
X Error of failed request:  BadAtom (invalid Atom parameter)
  Major opcode of failed request:  20 (X_GetProperty)
  Atom id in failed request:  0x160
  Serial number of failed request:  1103
  Current serial number in output stream:  1103
Anyone have any ideas? Both have the xorg-x11 libraries, however the client computer I am using is currently running xorg 6.8.0 while the server has xorg 6.7.0. I've not found any incompatiblities that I think would lead to this kind of error though... if I scp the executable over and run it locally it runs just fine.
 
Old 10-11-2004, 04:05 PM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
Alright... use the -Y switch instead of the -X switch or put ForwardX11Trusted=yes in your ssh_conf file to fix this issue.
 
Old 10-11-2004, 05:13 PM   #4
spuzzzzzzz
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Original Poster
Rep: Reputation: 30
yep, that seems to work. Thanks
 
Old 02-05-2005, 02:05 PM   #5
puk
LQ Newbie
 
Registered: Apr 2003
Posts: 19

Rep: Reputation: 0
i have a similar problem

i use slackware10 on one pc -> call it silver(ip: 192.168.1.5).

Some days ago i connected from a very slow pc, call it suse(ip: 192.168.1.3), via ssh to silver
and ran some apps remotely to get better performance.


than i updated a lot of files on silver.
some packages where updated by "packetmanager" (e.g. gtk2-2.4.1* to gtk+2.6.1* and some libs and other things)
and some packages get renewed by "make".

after renewing, the gtk-apps won't run remotely now, on suse(SuSE8.1)
-> but on an old PentiumI(with Slackware10), everything works fine.

googling doesn't help. So i "tried and errored".
i installed a new ssh on suse.
Code:
cd */zlib*
configure --prefix=/opt/zlib
make && make install

cd */openssl*
./config --prefix=/opt/openssl
make && make install

cd */openssh*
./configure --prefix=/opt/openssh --with-zlib=/opt/zlib --with-ssl-dir=/opt/openssl
make && make install
same error like before:
Code:
puk@suse:~> /opt/openssh/bin/ssh -Y puk@192.168.1.5
puk@silver:~$ export DISPLAY=192.168.1.3:0.0
puk@silver:~$ gnome-terminal
The program 'gnome-terminal' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
  (Details: serial 718 error_code 17 request_code 153 minor_code 10)
  (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.)
puk@silver:~$
i also put
Code:
ForwardX11Trusted yes
into /opt/openssh/etc/ssh_config


hope this post doesn't confuse you too much.

can anyone help me out?

PLEASE :-)
 
Old 02-05-2005, 03:06 PM   #6
puk
LQ Newbie
 
Registered: Apr 2003
Posts: 19

Rep: Reputation: 0
ok i found a thread/bugreport
http://mail.gnome.org/archives/gtk-d.../msg00109.html

possible that this could be the failure!?! not sure.
 
Old 02-06-2005, 10:17 AM   #7
puk
LQ Newbie
 
Registered: Apr 2003
Posts: 19

Rep: Reputation: 0
Talking

the problem was the old XFree86-4.?.? which comes with that trashy SuSE Linux!
installing an Xorg-cvs(anno 2004-12-14) gives me support for remote gtk-2.6 on this damn SuSE8.1

i used this old cvs-version, because it's the onliest Xserver i ever got to run :-)
(-: bad english?!)
 
Old 02-29-2008, 09:46 PM   #8
EdW
Member
 
Registered: Aug 2004
Location: Laguna Niguel,CA
Distribution: Debian 2.6.7
Posts: 30

Rep: Reputation: 15
Talking BadWindow gone

FWIW gaim, synaptic and eclipse all gave me BadWindow. Only seamonkey
worked when using ssh -X. But your ssh -Y works!

thanks
Ed
 
  


Reply


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
GTK 1 apps Fonts problems on KDE tpe Suse/Novell 0 05-11-2005 01:41 PM
With GTK can you run it remotely? abefroman Linux - Software 2 05-08-2005 05:13 AM
How to set Gtk fonts apps running on KDE ? nooky59 Mandriva 3 04-09-2004 10:12 AM
changing the font-size of menus of GTK 2 apps running under KDE 3.1 melquiades Linux - Software 1 07-05-2003 02:17 PM
remotely running X apps JustinHoMi Linux - Networking 1 04-30-2001 03:39 PM


All times are GMT -5. The time now is 03:25 PM.

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