question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error caused by screen change hook persists after deletion

See original GitHub issue

The 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:closed
  • Created 2 years ago
  • Comments:21 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
dpiegdoncommented, Apr 21, 2022

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. 😃

0reactions
github-actions[bot]commented, Oct 18, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found