Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
martinkg opened this issue Feb 1, 2023 · 1 comment
Labels
crash: variety core crash errors in variety itself

Comments

@martinkg
Copy link

martinkg commented Feb 1, 2023

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

Attach Variety's log file

Desktop environment and version

OS name and version

Fedora fc37.x86_64

@jlu5 jlu5 added the crash: variety core crash errors in variety itself label Jan 2, 2024
@jlu5 jlu5 changed the title [abrt] variety: register_clipboard(): VarietyWindow.py:343:register_clipboard:AttributeError: 'NoneType' object has no attribute 'connect' register_clipboard crashed with AttributeError: 'NoneType' object has no attribute 'connect' Jan 2, 2024
@jlu5
Copy link
Member

jlu5 commented Jan 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash: variety core crash errors in variety itself
Projects
None yet
Development

No branches or pull requests

2 participants