Closed piyushk closed 3 years ago
A crash later in the day had a single log line in qtile.log
:
2021-06-17 19:23:41,805 ERROR libqtile base.py:_wrapper():L304 got exception from widget timer
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/libqtile/widget/base.py", line 302, in _wrapper
method(*method_args)
File "/usr/local/lib/python3.8/dist-packages/libqtile/widget/graph.py", line 200, in update
self.update_graph()
File "/usr/local/lib/python3.8/dist-packages/libqtile/widget/graph.py", line 289, in update_graph
self.push(
File "/usr/local/lib/python3.8/dist-packages/libqtile/widget/graph.py", line 192, in push
self.draw()
File "/usr/local/lib/python3.8/dist-packages/libqtile/widget/graph.py", line 150, in draw
self.drawer.clear(self.background or self.bar.background)
File "/usr/local/lib/python3.8/dist-packages/libqtile/backend/base.py", line 551, in clear
self.set_source_rgb(colour)
File "/usr/local/lib/python3.8/dist-packages/libqtile/backend/base.py", line 548, in set_source_rgb
self.ctx.set_source_rgba(*utils.rgb(colour))
AttributeError: 'NoneType' object has no attribute 'set_source_rgba'
2021-06-17 19:23:41,808 WARNING libqtile lifecycle.py:_atexit():L38 Qtile will now terminate
Looks awfully similar to https://github.com/qtile/qtile/issues/2307
In addition to #2307 both of the log outputs you've posted appeared in https://github.com/qtile/qtile/issues/2509. The direct cause of all of these is the same: the classes are finalized but then shortly after do something using finalized attributes. #2509 refers to clean-up when shutting Qtile down, and #2307 mentions that the error and freeze happens when restarting. Do you find any pattern with when these errors happen, such as when restarting?
@m-col I experienced these errors during regular operation. The screen freezes and I get dropped down to the login screen -- it's pretty terrible.
They might be happening during restarts. I'll check and report back by Monday.
Does not happen on restarts. If I use the restart shortcut, qtile restarts as expected and I see only 1 log line in qtile.log:
2021-06-20 16:55:36,986 WARNING libqtile lifecycle.py:_atexit():L34 Restarting Qtile with os.execv(...)
@m-col I've switched to your PR branch to see if it goes away in the hopes that this issue will go away. Lately, I've confirmed that qtile is now arbitrarily restarting with nothing barring the following in the qtile log:
2021-06-28 15:47:26,756 WARNING libqtile lifecycle.py:_atexit():L38 Qtile will now terminate
I'll report back if your PR fixes the issue. I can't seem to roll back to an old version of qtile since I can no longer log in if I switch to them.
I've confirmed that the PR branch from #2360 does not solve this issue. I still experience sporadic crashes.
Does this still happen, and if so perhaps try on master? In the past few months we have fixed a few bugs, and ironed out that PR which is now merged too (with its own bugs fixed).
Failing that, try getting the debug
log output. You can enable that with qtile cmd-obj -o cmd -f debug
.
I've switched my WM from qtile and won't be able to test this issue. It's great to hear that some bug fixes are in. Perhaps this specific issue can be closed?
Great, thanks for the update.
Issue description
Unexplained qtile crashes drops me back to login. Happens 1-4 times a day.
Qtile version
version 0.17.0 (stable), 0.17.1.dev337+gb5fa83cc (master)
Stack traces
~/.xsession-errors
~/.local/share/qtile/qtile.log
Configuration