Can not restart Xmonad

Hi, I can not restart Xmonad without quiting X. When I launch xmonad from console, I get the following error: toto@compaq:~$ .xmonad/xmonad-x86_64-linux --help X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 7 Current serial number in output stream: 8 toto@compaq:~$ <stdin>: hGetLine: end of file I'm using a compiled xmonad version from darcs: toto@compaq:~$ ghc-pkg list --user |grep xmonad xmonad-0.10.1 xmonad-contrib-0.10.1 toto@compaq:~$ ps aux |grep xmonad toto 17397 0.2 0.3 55652 5124 ? Ss 10:03 0:05 /home/toto/.xmonad/xmonad-x86_64-linux Any ideas ? Thx in advance, Dal

2012/9/19
: Hi, I can not restart Xmonad without quiting X. When I launch xmonad from console, I get the following error:
toto@compaq:~$ .xmonad/xmonad-x86_64-linux --help X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 7 Current serial number in output stream: 8 toto@compaq:~$ <stdin>: hGetLine: end of file
I'm using a compiled xmonad version from darcs: toto@compaq:~$ ghc-pkg list --user |grep xmonad xmonad-0.10.1 xmonad-contrib-0.10.1
toto@compaq:~$ ps aux |grep xmonad toto 17397 0.2 0.3 55652 5124 ? Ss 10:03 0:05 /home/toto/.xmonad/xmonad-x86_64-linux
Any ideas ?
Thx in advance, Dal
Hello Dal, have you tried the solutions described here? http://www.haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#X_Error...

Yes, I use replace function in the xmonad main.
Carlos López Camey
2012/9/19
: Hi, I can not restart Xmonad without quiting X. When I launch xmonad from console, I get the following error:
toto@compaq:~$ .xmonad/xmonad-x86_64-linux --help X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 7 Current serial number in output stream: 8 toto@compaq:~$ <stdin>: hGetLine: end of file
I'm using a compiled xmonad version from darcs: toto@compaq:~$ ghc-pkg list --user |grep xmonad xmonad-0.10.1 xmonad-contrib-0.10.1
toto@compaq:~$ ps aux |grep xmonad toto 17397 0.2 0.3 55652 5124 ? Ss 10:03 0:05 /home/toto/.xmonad/xmonad-x86_64-linux
Any ideas ?
Thx in advance, Dal
Hello Dal, have you tried the solutions described here? http://www.haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#X_Error...

I don't see anything indicating a problem so far. "xmonad --help" should work fine, as should "xmonad --restart". The binary in .xmonad is a much less capable piece of code than the one in /usr/bin/xmonad. You should not need any special modules or fixes in .xmonad/xmonad.hs, so if you've done something like that in an attempt to "fix" what isn't broken below, you should undo your fixes before trying "xmonad --restart". ~d Quoting kedals0@gmail.com:
Hi,
I can not restart Xmonad without quiting X. When I launch xmonad from console, I get the following error:
toto@compaq:~$ .xmonad/xmonad-x86_64-linux --help X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 7 Current serial number in output stream: 8 toto@compaq:~$ <stdin>: hGetLine: end of file
I'm using a compiled xmonad version from darcs: toto@compaq:~$ ghc-pkg list --user |grep xmonad xmonad-0.10.1 xmonad-contrib-0.10.1
toto@compaq:~$ ps aux |grep xmonad toto 17397 0.2 0.3 55652 5124 ? Ss 10:03 0:05 /home/toto/.xmonad/xmonad-x86_64-linux
Any ideas ?
Thx in advance, Dal
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

/usr/bin/xmonad --help works. Then, I've try with default configuration in my xmonad.hs file: main = xmonad defaultConfig But result is the same: toto@compaq:~/.xmonad$ ./xmonad --version X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 7 Current serial number in output stream: 8 I think I will try to see where is the problem in XMonad source code. Dal. wagnerdm@seas.upenn.edu writes:
I don't see anything indicating a problem so far. "xmonad --help" should work fine, as should "xmonad --restart". The binary in .xmonad is a much less capable piece of code than the one in /usr/bin/xmonad. You should not need any special modules or fixes in .xmonad/xmonad.hs, so if you've done something like that in an attempt to "fix" what isn't broken below, you should undo your fixes before trying "xmonad --restart".
~d
Quoting kedals0@gmail.com:
Hi,
I can not restart Xmonad without quiting X. When I launch xmonad from console, I get the following error:
toto@compaq:~$ .xmonad/xmonad-x86_64-linux --help X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 7 Current serial number in output stream: 8 toto@compaq:~$ <stdin>: hGetLine: end of file
I'm using a compiled xmonad version from darcs: toto@compaq:~$ ghc-pkg list --user |grep xmonad xmonad-0.10.1 xmonad-contrib-0.10.1
toto@compaq:~$ ps aux |grep xmonad toto 17397 0.2 0.3 55652 5124 ? Ss 10:03 0:05 /home/toto/.xmonad/xmonad-x86_64-linux
Any ideas ?
Thx in advance, Dal
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

On Thu, Sep 20, 2012 at 5:04 AM,
toto@compaq:~/.xmonad$ ./xmonad --version X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 7 Current serial number in output stream: 8
--version will not work for a user-configured xmonad binary, only for the master one. That is, option checking is not done by the xmonad function but by the Main.hs of the xmonad package, which calls the xmonad function unless options such as --version are passed.
toto@compaq:~$ .xmonad/xmonad-x86_64-linux --help
X Error of failed request: BadAccess (attempt to access private resource denied)
Likewise, neither does --help work for a custom xmonad binary, only for the main one. You should not, in general, run the custom one directly but instead let the main xmonad do so; there are no promises that the linkage between the two will remain the same (fixing the $PATH issue may require changing it, for example). -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

Again: "~/.xmonad/xmonad --version" isn't intended to work (neither is "~/.xmonad/xmonad-x86_64-linux --version"). Just use "xmonad --restart" and let it invoke "~/.xmonad/xmonad" correctly for you. ~d Quoting kedals0@gmail.com:
/usr/bin/xmonad --help works. Then, I've try with default configuration in my xmonad.hs file: main = xmonad defaultConfig But result is the same: toto@compaq:~/.xmonad$ ./xmonad --version X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 7 Current serial number in output stream: 8
I think I will try to see where is the problem in XMonad source code.
Dal.
wagnerdm@seas.upenn.edu writes:
I don't see anything indicating a problem so far. "xmonad --help" should work fine, as should "xmonad --restart". The binary in .xmonad is a much less capable piece of code than the one in /usr/bin/xmonad. You should not need any special modules or fixes in .xmonad/xmonad.hs, so if you've done something like that in an attempt to "fix" what isn't broken below, you should undo your fixes before trying "xmonad --restart".
~d
Quoting kedals0@gmail.com:
Hi,
I can not restart Xmonad without quiting X. When I launch xmonad from console, I get the following error:
toto@compaq:~$ .xmonad/xmonad-x86_64-linux --help X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 7 Current serial number in output stream: 8 toto@compaq:~$ <stdin>: hGetLine: end of file
I'm using a compiled xmonad version from darcs: toto@compaq:~$ ghc-pkg list --user |grep xmonad xmonad-0.10.1 xmonad-contrib-0.10.1
toto@compaq:~$ ps aux |grep xmonad toto 17397 0.2 0.3 55652 5124 ? Ss 10:03 0:05 /home/toto/.xmonad/xmonad-x86_64-linux
Any ideas ?
Thx in advance, Dal
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

That was my problem. Thanks. Maybe it could be a good idea to warn user about this. Because this behavior is a little bit strange: If you see what is the running program with ps command, it's not the program that you have to launch. Bye, Dal. wagnerdm@seas.upenn.edu writes:
Again: "~/.xmonad/xmonad --version" isn't intended to work (neither is "~/.xmonad/xmonad-x86_64-linux --version"). Just use "xmonad --restart" and let it invoke "~/.xmonad/xmonad" correctly for you.
~d
Quoting kedals0@gmail.com:
/usr/bin/xmonad --help works. Then, I've try with default configuration in my xmonad.hs file: main = xmonad defaultConfig But result is the same: toto@compaq:~/.xmonad$ ./xmonad --version X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 7 Current serial number in output stream: 8
I think I will try to see where is the problem in XMonad source code.
Dal.
wagnerdm@seas.upenn.edu writes:
I don't see anything indicating a problem so far. "xmonad --help" should work fine, as should "xmonad --restart". The binary in .xmonad is a much less capable piece of code than the one in /usr/bin/xmonad. You should not need any special modules or fixes in .xmonad/xmonad.hs, so if you've done something like that in an attempt to "fix" what isn't broken below, you should undo your fixes before trying "xmonad --restart".
~d
Quoting kedals0@gmail.com:
Hi,
I can not restart Xmonad without quiting X. When I launch xmonad from console, I get the following error:
toto@compaq:~$ .xmonad/xmonad-x86_64-linux --help X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Serial number of failed request: 7 Current serial number in output stream: 8 toto@compaq:~$ <stdin>: hGetLine: end of file
I'm using a compiled xmonad version from darcs: toto@compaq:~$ ghc-pkg list --user |grep xmonad xmonad-0.10.1 xmonad-contrib-0.10.1
toto@compaq:~$ ps aux |grep xmonad toto 17397 0.2 0.3 55652 5124 ? Ss 10:03 0:05 /home/toto/.xmonad/xmonad-x86_64-linux
Any ideas ?
Thx in advance, Dal
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

On Mon, Sep 24, 2012 at 2:36 AM,
Because this behavior is a little bit strange: If you see what is the running program with ps command, it's not the program that you have to launch.
Does firefox warn you? Other programs that use wrappers for relocation or configuration? It's actually fairly common. -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

On Mon, Sep 24, 2012 at 2:36 AM,
Because this behavior is a little bit strange: If you see what is the running program with ps command, it's not the program that you have to launch.
Does firefox warn you? Other programs that use wrappers for relocation or configuratio? -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms
participants (4)
-
Brandon Allbery
-
Carlos López Camey
-
kedals0@gmail.com
-
wagnerdm@seas.upenn.edu