varietywalls / variety

Wallpaper downloader and manager for Linux systems
http://peterlevi.com/variety
GNU General Public License v3.0
1.21k stars 146 forks source link

register_clipboard crashed with AttributeError: 'NoneType' object has no attribute 'connect' #596

Open martinkg opened 1 year ago

martinkg commented 1 year ago

Version of Variety

variety-0.8.9-2.fc37

Describe the bug

Description of problem: Started my computer and logged in. Variety is set to start automatically.

Version-Release number of selected component: variety-0.8.9-2.fc37

Additional info: reporter: libreport-2.17.4 cgroup: 0::/user.slice/user-1001.slice/user@1001.service/app.slice/variety.service cmdline: /usr/bin/python3 /usr/bin/variety --profile /home/david/.config/variety/ crash_function: register_clipboard exception_type: AttributeError executable: /usr/bin/variety interpreter: python3-3.11.1-1.fc37.x86_64 kernel: 6.1.6-200.fc37.x86_64 runlevel: N 5 type: Python3 uid: 1001

Truncated backtrace: VarietyWindow.py:343:register_clipboard:AttributeError: 'NoneType' object has no attribute 'connect'

Traceback (most recent call last): File "/usr/bin/variety", line 66, in variety.main() File "/usr/lib/python3.11/site-packages/variety/init.py", line 239, in main window.start(arguments) File "/usr/lib/python3.11/site-packages/variety/VarietyWindow.py", line 145, in start self.register_clipboard() File "/usr/lib/python3.11/site-packages/variety/VarietyWindow.py", line 343, in register_clipboard self.clipboard.connect("owner-change", clipboard_changed) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'connect'

Local variables in innermost frame: self: <VarietyWindow.VarietyWindow object at 0x7f6fe51e5540 (uninitialized at 0x(nil))> clipboard_changed: <function VarietyWindow.register_clipboard..clipboard_changed at 0x7f6fe4f78040>

Context

To Reproduce

1. 2. 3.

Attach Variety's log file

Desktop environment and version

OS name and version

Fedora fc37.x86_64

jlu5 commented 11 months ago

I'm a bit confused here, is variety being started from a systemd user service? (reference to app.slice/variety.service) The traceback looks like it's failing to bind to the clipboard, but I'm not sure what would cause that situation to begin with.