Hi Martin, On Thu, Apr 02, 2015 at 07:22:19AM -0700, Martin wrote: > Im running the 5111.... "Cap the log size at 10 MB" commit which is the > child of d4c45... > > The behavior is a bit strange and varries a lot depending on how the xephyr > is terminated. > I mostly have success with a double CTRL+C in the terminal that open > xephyr, a single CTRL+C will not do it. > > That is to run xephyr i open a terminal and type > ./Downloads/qtile/scripts/xephyr > And I succesfully kill the machine with a double CTRL+C in the terminal. > > If I use Qtile to kill the Xephyr window using a MOD+W, python goes > bananas. The terminal output is something like: > > 2015-04-02 10:14:48,877 qtile <lambda>:695 Got an exception in poll loop > Traceback (most recent call last): > File > "/usr/local/lib/python2.7/dist-packages/trollius-1.0.4-py2.7.egg/trollius/events.py", > > line 151, in _run > self._callback(*self._args) > File "/home/martin/Downloads/qtile/bin/libqtile/manager.py", line 661, in > _xpoll > error_code = self.conn.conn.has_error() > File > "/usr/local/lib/python2.7/dist-packages/xcffib-0.2.1-py2.7-linux-x86_64.egg/xcffib/__init__.py", > > line 516, in wrapper > self.invalid() > File > "/usr/local/lib/python2.7/dist-packages/xcffib-0.2.1-py2.7-linux-x86_64.egg/xcffib/__init__.py", > > line 506, in invalid > raise ConnectionException(err) > ConnectionException: xcb connection errors because of socket, pipe and > other stream errors. > 2015-04-02 10:14:48,878 qtile <lambda>:695 Got an exception in poll loop > Traceback (most recent call last): > File > "/usr/local/lib/python2.7/dist-packages/trollius-1.0.4-py2.7.egg/trollius/events.py", > > line 151, in _run > self._callback(*self._args) > File "/home/martin/Downloads/qtile/bin/libqtile/manager.py", line 661, in > _xpoll > error_code = self.conn.conn.has_error() > File > "/usr/local/lib/python2.7/dist-packages/xcffib-0.2.1-py2.7-linux-x86_64.egg/xcffib/__init__.py", > > line 516, in wrapper > self.invalid() > File > "/usr/local/lib/python2.7/dist-packages/xcffib-0.2.1-py2.7-linux-x86_64.egg/xcffib/__init__.py", > > line 506, in invalid > raise ConnectionException(err) > ConnectionException: xcb connection errors because of socket, pipe and > other stream errors. > 2015-04-02 10:14:48,878 qtile <lambda>:695 Got an exception in poll loop > Traceback (most recent call last): > File > "/usr/local/lib/python2.7/dist-packages/trollius-1.0.4-py2.7.egg/trollius/events.py", > > line 151, in _run > self._callback(*self._args) > File "/home/martin/Downloads/qtile/bin/libqtile/manager.py", line 661, in > _xpoll > error_code = self.conn.conn.has_error() > File > "/usr/local/lib/python2.7/dist-packages/xcffib-0.2.1-py2.7-linux-x86_64.egg/xcffib/__init__.py", > > line 516, in wrapper > self.invalid() > File > "/usr/local/lib/python2.7/dist-packages/xcffib-0.2.1-py2.7-linux-x86_64.egg/xcffib/__init__.py", > > line 506, in invalid > raise ConnectionException(err) > ConnectionException: xcb connection errors because of socket, pipe and > other stream errors. > 2015-04-02 10:14:48,879 qtile <lambda>:695 Got an exception in poll loop > Traceback (most recent call last): > File > "/usr/local/lib/python2.7/dist-packages/trollius-1.0.4-py2.7.egg/trollius/events.py", > > line 151, in _run > self._callback(*self._args) > File "/home/martin/Downloads/qtile/bin/libqtile/manager.py", line 661, in > _xpoll > error_code = self.conn.conn.has_error() > File > "/usr/local/lib/python2.7/dist-packages/xcffib-0.2.1-py2.7-linux-x86_64.egg/xcffib/__init__.py", > > line 516, in wrapper > self.invalid() > File > "/usr/local/lib/python2.7/dist-packages/xcffib-0.2.1-py2.7-linux-x86_64.egg/xcffib/__init__.py", > > line 506, in invalid > raise ConnectionException(err) > > and keeps looping for all eternity. > > I don't know if it is woth the time to look into this issue.
It definitely is, although I think it is a bug in xcffib and not qtile. Can you verify that, https://github.com/tych0/xcffib/commit/454074045d8bc98f0ae971901eedf12591ef7ffe fixes it for you? Tycho > I fixed the problem of passing commands by actually getting the xephyr to > capture all input using > CTRL+SHIFT. It says so in the title of the virtual window :) > > On Sunday, March 29, 2015 at 9:12:19 PM UTC-4, Tycho Andersen wrote: > > > > On Sun, Mar 29, 2015 at 02:59:06PM -0700, Martin wrote: > > > I run ./scripts/xephyr in the git source directory while running Qtile > > to > > > test changes to my config file to ensure my own instance doens't crash. > > > > > > Does any of you know how to terminate the xephyr script? I cannot pass > > > qtile commands to the xephyr test window, as my own instance of qtile > > > intercepts all the keystrokes and have to rely on the mouse to interact > > > with it. > > > > > > I terminate the script by killing the window using MOD+W (defined in my > > > config.py file, calling lazy.window.kill). This causes the terminal > > window > > > I called the command on to go bezerk, so I kill that one as well with > > > MOD+W. Then my CPU goes bananas and I enter HTOP to terminate a process > > > running a command > > > python ..../qtile/scripts..../bin/qtile -l INFO > > > > Are you running with commit d4c450a2fdeb06ef61e0b3ae4e4154fb9435304c? > > It sounds like this issue might be fixed with that commit. Otherwise, > > do you have any idea what qtile is doing during that time? > > > > > Not excactly an elegant way to test things :) > > > > One thing you can do is use a different config (with different > > modifier keys) inside xephyr. That way your hotkeys don't overlap. > > Otherwise, you can start it in a different X session: > > > > http://qtile.readthedocs.org/en/latest/manual/hacking.html#second-x-session > > > > Tycho > > > > > Do you have a suggestion on how to run such mini-test? > > > And how can you pass commands/keystrokes to the xephyr window? > > > > > > -- > > > You received this message because you are subscribed to the Google > > Groups "qtile-dev" group. > > > To unsubscribe from this group and stop receiving emails from it, send > > an email to [email protected] <javascript:>. > > > For more options, visit https://groups.google.com/d/optout. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "qtile-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "qtile-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
