Bug 2070753

Summary: [abrt] solaar: x11_focus_prog(): diversion.py:403:x11_focus_prog:AttributeError: 'int' object has no attribute 'get_full_property'
Product: [Fedora] Fedora Reporter: Jan Vlug <jan.public>
Component: solaarAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: ansari.ibrahim1, dominik, j, mark.e.fuller, richardfearn, spacewar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/83bd5122c42f2e0960b0fff2a117567a11c54c95
Whiteboard: abrt_hash:57bcf70210d8e480b5fb417d6213affffa2cb9e8;VARIANT_ID=workstation;
Fixed In Version: solaar-1.1.3-1.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-16 02:04:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2078519    
Bug Blocks:    
Attachments:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
solaar -d output none

Description Jan Vlug 2022-03-31 20:21:45 UTC
Version-Release number of selected component:
solaar-1.1.2-1.fc35

Additional info:
reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-solaar-3209.scope
cmdline:        /usr/bin/python3 -s /usr/bin/solaar --window=hide
crash_function: x11_focus_prog
exception_type: AttributeError
executable:     /usr/bin/solaar
interpreter:    python3-3.10.4-1.fc35.x86_64
kernel:         5.16.18-200.fc35.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
diversion.py:403:x11_focus_prog:AttributeError: 'int' object has no attribute 'get_full_property'

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/logitech_receiver/diversion.py", line 317, in evaluate
    result = component.evaluate(feature, notification, device, status, result)
  File "/usr/lib/python3.10/site-packages/logitech_receiver/diversion.py", line 317, in evaluate
    result = component.evaluate(feature, notification, device, status, result)
  File "/usr/lib/python3.10/site-packages/logitech_receiver/diversion.py", line 317, in evaluate
    result = component.evaluate(feature, notification, device, status, result)
  File "/usr/lib/python3.10/site-packages/logitech_receiver/diversion.py", line 443, in evaluate
    focus = x11_focus_prog() if x11 else None
  File "/usr/lib/python3.10/site-packages/logitech_receiver/diversion.py", line 403, in x11_focus_prog
    pid = window.get_full_property(NET_WM_PID, 0)
AttributeError: 'int' object has no attribute 'get_full_property'

Local variables in innermost frame:
pid: None
wm_class: None
window: 1

Comment 1 Jan Vlug 2022-03-31 20:21:48 UTC
Created attachment 1869796 [details]
File: backtrace

Comment 2 Jan Vlug 2022-03-31 20:21:50 UTC
Created attachment 1869797 [details]
File: cpuinfo

Comment 3 Jan Vlug 2022-03-31 20:21:51 UTC
Created attachment 1869798 [details]
File: environ

Comment 4 Jan Vlug 2022-03-31 20:21:52 UTC
Created attachment 1869799 [details]
File: mountinfo

Comment 5 Jan Vlug 2022-03-31 20:21:53 UTC
Created attachment 1869800 [details]
File: namespaces

Comment 6 Jan Vlug 2022-03-31 20:21:54 UTC
Created attachment 1869801 [details]
File: open_fds

Comment 7 jaskerx 2022-04-01 19:35:20 UTC
Similar problem has been detected:

Happens on boot-up.

reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-solaar-2658.scope
cmdline:        /usr/bin/python3 -s /usr/bin/solaar --window=hide
crash_function: x11_focus_prog
exception_type: AttributeError
executable:     /usr/bin/solaar
interpreter:    python3-3.10.3-1.fc35.x86_64
kernel:         5.16.18-200.fc35.x86_64
package:        solaar-1.1.2-1.fc35
reason:         diversion.py:403:x11_focus_prog:AttributeError: 'int' object has no attribute 'get_full_property'
runlevel:       unknown
type:           Python3
uid:            1000

Comment 8 Alex Finkel 2022-04-03 15:25:50 UTC
Similar problem has been detected:

Updated system using gnome-software.  During the update solaar and solaar-udev were updated from version solaar-1.1.1-1.fc35.noarch to version solaar-udev-1.1.2-1.fc35.noarch

Problem occurred immediately upon login to GNOME desktop.

reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-solaar-64182.scope
cmdline:        /usr/bin/python3 -s /usr/bin/solaar --window=hide
crash_function: x11_focus_prog
exception_type: AttributeError
executable:     /usr/bin/solaar
interpreter:    python3-3.10.4-1.fc35.x86_64
kernel:         5.16.18-200.fc35.x86_64
package:        solaar-1.1.2-1.fc35
reason:         diversion.py:403:x11_focus_prog:AttributeError: 'int' object has no attribute 'get_full_property'
runlevel:       N 5
type:           Python3
uid:            1000

Comment 9 Dominik 'Rathann' Mierzejewski 2022-04-04 21:48:41 UTC
Thanks for the reports! Please provide the output of `solaar -d show`. Are you running GNOME on Wayland?

Comment 10 Jan Vlug 2022-04-06 09:25:09 UTC
Created attachment 1871023 [details]
solaar -d output

I attached the solaar -d output.
I am using GNOME Wayland.
Note that this crash does not happen often for me.

Comment 11 jaskerx 2022-04-23 14:55:30 UTC
Similar problem has been detected:

Happens on boot up every time.

reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-solaar-4372.scope
cmdline:        /usr/bin/python3 -s /usr/bin/solaar --window=hide
crash_function: x11_focus_prog
exception_type: AttributeError
executable:     /usr/bin/solaar
interpreter:    python3-3.10.4-1.fc35.x86_64
kernel:         5.16.19-200.fc35.x86_64
package:        solaar-1.1.2-1.fc35
reason:         diversion.py:403:x11_focus_prog:AttributeError: 'int' object has no attribute 'get_full_property'
runlevel:       unknown
type:           Python3
uid:            1000

Comment 12 Ibrahim Ansari 2022-04-27 12:17:26 UTC
It seems Solaar 1.1.3 with the fix for this issue has been released.

Comment 13 Dominik 'Rathann' Mierzejewski 2022-04-27 13:20:14 UTC
Correct, I'll be building 1.1.3 update shortly.

Comment 14 Anmar Oueja 2022-04-29 11:39:04 UTC
Similar problem has been detected:

repro steps:

1. Boot machine from cold
2. Get a Ooops! solaar crashed

FYI. Wireless dongle is plugged directly into the PC

reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-solaar-6118.scope
cmdline:        /usr/bin/python3 -s /usr/bin/solaar --window=hide
crash_function: x11_focus_prog
exception_type: AttributeError
executable:     /usr/bin/solaar
interpreter:    python3-3.10.4-1.fc35.x86_64
kernel:         5.16.20-200.fc35.x86_64
package:        solaar-1.1.2-1.fc35
reason:         diversion.py:403:x11_focus_prog:AttributeError: 'int' object has no attribute 'get_full_property'
runlevel:       N 5
type:           Python3
uid:            1000

Comment 15 Fedora Update System 2022-05-05 12:05:39 UTC
FEDORA-2022-af83e480cc has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-af83e480cc

Comment 16 Fedora Update System 2022-05-08 03:26:13 UTC
FEDORA-2022-af83e480cc has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-af83e480cc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-af83e480cc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2022-05-16 02:04:22 UTC
FEDORA-2022-af83e480cc has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.