Error caused by screen change hook persists after deletion
See original GitHub issueThe issue:
I am getting the following error with this config:
2022-03-21 19:06:13,176 ERROR libqtile hook.py:fire():L392 Error in hook screen_change
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/libqtile/hook.py", line 390, in fire
i(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/libqtile/core/manager.py", line 359, in cmd_reconfigure_screens
self._process_screens()
File "/usr/lib/python3.10/site-packages/libqtile/core/manager.py", line 340, in _process_screens
scr._configure(self, i, x, y, w, h, grp, reconfigure_gaps=reconfigure_gaps)
File "/usr/lib/python3.10/site-packages/libqtile/config.py", line 302, in _configure
self.set_group(group)
File "/usr/lib/python3.10/site-packages/libqtile/config.py", line 364, in set_group
g1 = self.group
AttributeError: 'Screen' object has no attribute 'group'
I did have a screen_change
hook defined previously:
@hook.subscribe.screen_change
def set_screens(event):
subprocess.run(["autorandr", "--change"])
# lazy.spawn("mydock")
qtile.restart()
The error persists after deleting the screen_change
hook and reloading the config
Required:
- I have searched past issues to see if this bug has already been reported.
Issue Analytics
- State:
- Created 2 years ago
- Comments:21 (15 by maintainers)
Top Results From Across the Web
Errors thrown in useEffect cleanup functions result in `Internal ...
Description When an app includes a functional component which calls React.useEffect with a cleanup callback, and that callback throws an ...
Read more >Can't perform a React state update on an unmounted ...
To fix this problem I have used the hook withRouter nesting the component, in my case export default withRouter(Login) , and inside the ......
Read more >Understanding React's useEffect cleanup function
The useEffect Hook is built in a way that we can return a function inside ... To fix this error, we use the...
Read more >Common Mistakes React Developers Make – And How to Fix ...
In this article, we'll see some of the common mistakes that React developers make, and how you can avoid them. So let's get...
Read more >How to fix "The following module is missing from the file ...
Note that the problem or inconsistency on your site, which is now causing this warning, might have been existing for a long time...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
yes, that also works fine without issues. however, i will try to rewrite my xrandr-tool to do only a single xrandr-call. seems favourable. thanks for your help!
if you still want to track down that race-condition, let me know. otherwise this is fine for me now. 😃
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.