Bug 1754295

Summary: [abrt] solaar: check_feature(): settings_templates.py:381:check_feature:AttributeError: '_SETTINGS_LIST' object has no attribute 'low_res_scroll'
Product: [Fedora] Fedora Reporter: David Pasternak <davidpasternak1988>
Component: solaarAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: bugzilla, dominik, gerald.hameau, j, ms, mvazquez, richardfearn, spacewar, ucfagls
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/7c0ba513420bf07ee9dc421df4193f4705f3fc4d
Whiteboard: abrt_hash:55e7036ed216afebfdc0aba77fe4658dde94bf1d;VARIANT_ID=matecompiz;
Fixed In Version: solaar-1.0.2-0.1.rc1.20200322git563ef0d.fc32 solaar-1.0.2-0.1.rc1.20200322git563ef0d.fc31 solaar-1.0.2-0.1.rc1.20200322git563ef0d.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-01 00:18:13 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:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description David Pasternak 2019-09-22 15:38:15 UTC
Version-Release number of selected component:
solaar-1.0.1-1.fc30

Additional info:
reporter:       libreport-2.10.1
cmdline:        /usr/bin/python3 -s /usr/bin/solaar
crash_function: check_feature
exception_type: AttributeError
executable:     /usr/bin/solaar
interpreter:    python3-3.7.4-1.fc30.x86_64
kernel:         5.2.15-200.fc30.x86_64
runlevel:       N 5
type:           Python3
uid:            10069

Truncated backtrace:
settings_templates.py:381:check_feature:AttributeError: '_SETTINGS_LIST' object has no attribute 'low_res_scroll'

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/solaar/ui/window.py", line 380, in _device_selected
    _update_info_panel(device, full=True)
  File "/usr/lib/python3.7/site-packages/solaar/ui/window.py", line 701, in _update_info_panel
    _update_device_panel(device, _info._device, _info._buttons, full)
  File "/usr/lib/python3.7/site-packages/solaar/ui/window.py", line 672, in _update_device_panel
    _config_panel.update(device, is_online)
  File "/usr/lib/python3.7/site-packages/solaar/ui/config_panel.py", line 206, in update
    for s in device.settings:
  File "/usr/lib/python3.7/site-packages/logitech_receiver/receiver.py", line 254, in settings
    _check_feature_settings(self, self._settings)
  File "/usr/lib/python3.7/site-packages/logitech_receiver/settings_templates.py", line 385, in check_feature_settings
    check_feature(_LOW_RES_SCROLL[0], _F.LOWRES_WHEEL)
  File "/usr/lib/python3.7/site-packages/logitech_receiver/settings_templates.py", line 381, in check_feature
    feature = getattr(FeatureSettings, field_name)()
AttributeError: '_SETTINGS_LIST' object has no attribute 'low_res_scroll'

Local variables in innermost frame:
featureId: NamedInt(8496, 'LOWRES WHEEL')
field_name: 'low_res_scroll'
name: 'low-res-scroll'
already_known: []
device: <PairedDevice(2,406F,MX Ergo)>

Comment 1 David Pasternak 2019-09-22 15:38:20 UTC
Created attachment 1617847 [details]
File: backtrace

Comment 2 David Pasternak 2019-09-22 15:38:21 UTC
Created attachment 1617848 [details]
File: cgroup

Comment 3 David Pasternak 2019-09-22 15:38:23 UTC
Created attachment 1617849 [details]
File: cpuinfo

Comment 4 David Pasternak 2019-09-22 15:38:24 UTC
Created attachment 1617850 [details]
File: environ

Comment 5 David Pasternak 2019-09-22 15:38:26 UTC
Created attachment 1617851 [details]
File: mountinfo

Comment 6 David Pasternak 2019-09-22 15:38:28 UTC
Created attachment 1617852 [details]
File: namespaces

Comment 7 David Pasternak 2019-09-22 15:38:29 UTC
Created attachment 1617853 [details]
File: open_fds

Comment 8 Dominik 'Rathann' Mierzejewski 2019-09-22 17:31:12 UTC
It looks like this upstream issue: https://github.com/pwr-Solaar/Solaar/issues/544 . There's a PR, too: https://github.com/pwr-Solaar/Solaar/pull/557 . I'll try to make a build with that patch applied so that you can test it.

Comment 9 Dominik 'Rathann' Mierzejewski 2019-09-22 21:58:55 UTC
Please try this build: https://koji.fedoraproject.org/koji/taskinfo?taskID=37813786 . It's a scratch build, so please download it as soon as possible, even if you cannot test it right away as it will get garbage-collected soon.

Comment 10 Dominik 'Rathann' Mierzejewski 2019-09-23 12:10:10 UTC
Or you can try this copr build: https://copr.fedorainfracloud.org/coprs/rathann/solaar-bug-1754295/

Comment 11 Gérald Hameau 2019-10-03 19:28:31 UTC
*** Bug 1758300 has been marked as a duplicate of this bug. ***

Comment 12 Frank Büttner 2019-12-12 16:48:46 UTC
Similar problem has been detected:

Power on an new logitech device

reporter:       libreport-2.11.3
cmdline:        /usr/bin/python3 -s /usr/bin/solaar
crash_function: check_feature
exception_type: AttributeError
executable:     /usr/bin/solaar
interpreter:    python3-3.7.5-1.fc30.x86_64
kernel:         5.3.15-200.fc30.x86_64
package:        solaar-1.0.1-1.fc30
reason:         settings_templates.py:381:check_feature:AttributeError: '_SETTINGS_LIST' object has no attribute 'low_res_scroll'
runlevel:       N 5
type:           Python3
uid:            1000

Comment 13 Dominik 'Rathann' Mierzejewski 2019-12-18 12:03:59 UTC
Thanks for the report, Frank. Can you test my copr build and see if it fixes the issue? https://copr.fedorainfracloud.org/coprs/rathann/solaar-bug-1754295/ .

Comment 14 Frank Büttner 2019-12-18 14:38:35 UTC
Hi Dominik,
I have installed it.
I see no python exceoptions and now it is also possible to adjust the mouse resolution.


Thanks for the patch.

Comment 15 Dominik 'Rathann' Mierzejewski 2019-12-18 16:31:10 UTC
Great, thanks for testing. I'll include the patch in the next package build.

Comment 16 Gavin Simpson 2020-01-20 15:53:22 UTC
Similar problem has been detected:

The crash report popped up following a reboot of the system and I logged in to Gnome Shell/Desktop.

reporter:       libreport-2.11.3
cmdline:        /usr/bin/python3 -s /usr/bin/solaar
crash_function: check_feature
exception_type: AttributeError
executable:     /usr/bin/solaar
interpreter:    python3-3.7.4-1.fc30.x86_64
kernel:         5.2.17-200.fc30.x86_64
package:        solaar-1.0.1-1.fc30
reason:         settings_templates.py:381:check_feature:AttributeError: '_SETTINGS_LIST' object has no attribute 'low_res_scroll'
runlevel:       N 5
type:           Python3
uid:            1000

Comment 17 Manuel Andres Garcia Vazquez 2020-02-19 19:52:21 UTC
*** Bug 1804888 has been marked as a duplicate of this bug. ***

Comment 18 Fedora Update System 2020-03-24 14:39:12 UTC
FEDORA-2020-5011b62b4b has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-5011b62b4b

Comment 19 Fedora Update System 2020-03-24 14:39:16 UTC
FEDORA-2020-2d902a1576 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-2d902a1576

Comment 20 Fedora Update System 2020-03-24 14:39:33 UTC
FEDORA-2020-d00e89d607 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-d00e89d607

Comment 21 Fedora Update System 2020-03-24 19:55:26 UTC
FEDORA-2020-5011b62b4b has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-5011b62b4b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-5011b62b4b

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

Comment 22 Fedora Update System 2020-03-25 09:49:47 UTC
FEDORA-2020-d00e89d607 has been pushed to the Fedora 30 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-d00e89d607`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-d00e89d607

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

Comment 23 Fedora Update System 2020-03-25 09:50:03 UTC
FEDORA-2020-2d902a1576 has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-2d902a1576`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-2d902a1576

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

Comment 24 Fedora Update System 2020-04-01 00:18:13 UTC
FEDORA-2020-5011b62b4b has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 25 Fedora Update System 2020-04-01 01:55:25 UTC
FEDORA-2020-2d902a1576 has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 26 Fedora Update System 2020-04-01 16:32:58 UTC
FEDORA-2020-5011b62b4b has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 27 Fedora Update System 2020-04-02 09:19:00 UTC
FEDORA-2020-d00e89d607 has been pushed to the Fedora 30 stable repository.
If problem still persists, please make note of it in this bug report.