Bug 2071252

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: Kapoios Kanenas <firewalkergr>
Component: solaarAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: dominik, j, mark.e.fuller, redhat-bugs, 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.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-07 04:38:05 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 show none

Description Kapoios Kanenas 2022-04-02 11:56:14 UTC
Description of problem:
Started Gnome session on Wayland with NVIDIA drivers

Version-Release number of selected component:
solaar-1.1.2-1.fc36

Additional info:
reporter:       libreport-2.17.1
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-solaar-43249.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.fc36.x86_64
kernel:         5.17.1-300.fc36.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

Potential duplicate: bug 2070753

Comment 1 Kapoios Kanenas 2022-04-02 11:56:17 UTC
Created attachment 1870139 [details]
File: backtrace

Comment 2 Kapoios Kanenas 2022-04-02 11:56:18 UTC
Created attachment 1870140 [details]
File: cpuinfo

Comment 3 Kapoios Kanenas 2022-04-02 11:56:19 UTC
Created attachment 1870141 [details]
File: environ

Comment 4 Kapoios Kanenas 2022-04-02 11:56:21 UTC
Created attachment 1870142 [details]
File: mountinfo

Comment 5 Kapoios Kanenas 2022-04-02 11:56:22 UTC
Created attachment 1870143 [details]
File: namespaces

Comment 6 Kapoios Kanenas 2022-04-02 11:56:23 UTC
Created attachment 1870144 [details]
File: open_fds

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

Comment 8 Dominik 'Rathann' Mierzejewski 2022-04-04 21:53:07 UTC
Oh, and can we make this bug report public so that upstream developers can see it, too?

Comment 9 Kapoios Kanenas 2022-04-17 20:54:34 UTC
Created attachment 1873124 [details]
solaar -d show

Comment 10 Kapoios Kanenas 2022-04-17 20:58:14 UTC
Yes, it is running GNOME on Wayland (with Nvidia)
Also under Fedora 36 with Nvidia drivers. 

Attached the log. Note I had to remove solaar because it seems to intefer with suspend although it is probably the nvidia drivers. 


Feel free to make it public, I can't seem to be able to do it myself.

Comment 11 Dominik 'Rathann' Mierzejewski 2022-04-20 21:14:18 UTC
This will be fixed in the next version (1.1.3). Thanks again for the report.

Comment 12 Dominik 'Rathann' Mierzejewski 2022-05-05 09:46:31 UTC
*** Bug 2075999 has been marked as a duplicate of this bug. ***

Comment 13 Fedora Update System 2022-05-05 12:05:59 UTC
FEDORA-2022-aa813cde04 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-aa813cde04

Comment 14 somethingsomethingfedora 2022-05-06 13:43:22 UTC
Similar problem has been detected:

Occurs every time on login after system boot

reporter:       libreport-2.17.1
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-solaar-3639.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.fc36.x86_64
kernel:         5.17.3-302.fc36.x86_64
package:        solaar-1.1.2-1.fc36
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-07 04:38:05 UTC
FEDORA-2022-aa813cde04 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.