Bug 2015360

Summary: [abrt] solaar: _add_device(): tray.py:375:_add_device:AssertionError
Product: [Fedora] Fedora Reporter: Vinicius Costa Gomes <vcgomes>
Component: solaarAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: dominik, j, richardfearn, spacewar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/0ef697a147316f3e166d53ccb823dcba95013373
Whiteboard: abrt_hash:6c4a992ed07ea0c3cb0f02b403b75033ce1c2c22;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-10 12:27:36 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: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
Output of 'solaar show' none

Description Vinicius Costa Gomes 2021-10-19 02:46:41 UTC
Version-Release number of selected component:
solaar-1.0.7-1.fc34

Additional info:
reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-solaar-2497.scope
cmdline:        /usr/bin/python3 -s /usr/bin/solaar --window=hide
crash_function: _add_device
exception_type: AssertionError
executable:     /usr/bin/solaar
interpreter:    python3-3.9.7-1.fc34.x86_64
kernel:         5.14.11-200.fc34.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
tray.py:375:_add_device:AssertionError

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/solaar/ui/__init__.py", line 177, in _status_changed
    tray.update(device)
  File "/usr/lib/python3.9/site-packages/solaar/ui/tray.py", line 535, in update
    index = _add_device(device)
  File "/usr/lib/python3.9/site-packages/solaar/ui/tray.py", line 375, in _add_device
    assert path == receiver_path
AssertionError

Local variables in innermost frame:
device: <Device(1,4065,G613 Wireless Mechanical Gaming Keyboard,A4D7BD66)>
receiver_path: '/dev/hidraw4'
index: 1
idx: 0
path: '/dev/hidraw7'
_ignore: None
number: None

Comment 1 Vinicius Costa Gomes 2021-10-19 02:46:44 UTC
Created attachment 1834458 [details]
File: backtrace

Comment 2 Vinicius Costa Gomes 2021-10-19 02:46:46 UTC
Created attachment 1834459 [details]
File: cpuinfo

Comment 3 Vinicius Costa Gomes 2021-10-19 02:46:47 UTC
Created attachment 1834460 [details]
File: environ

Comment 4 Vinicius Costa Gomes 2021-10-19 02:46:48 UTC
Created attachment 1834461 [details]
File: mountinfo

Comment 5 Vinicius Costa Gomes 2021-10-19 02:46:49 UTC
Created attachment 1834462 [details]
File: namespaces

Comment 6 Vinicius Costa Gomes 2021-10-19 02:46:50 UTC
Created attachment 1834463 [details]
File: open_fds

Comment 7 Dominik 'Rathann' Mierzejewski 2021-10-19 10:09:53 UTC
Thanks for the report! Could you attach the output of `solaar show`?

You marked the bug as private. Can we make this bug public? I could point upstream developers to it, then.

Comment 8 Vinicius Costa Gomes 2021-10-26 03:15:24 UTC
Created attachment 1837080 [details]
Output of 'solaar show'

Comment 9 Vinicius Costa Gomes 2021-10-26 03:16:32 UTC
Sure. You can make this public, I must have forgotten to unmark the private flag. Sorry about that.

Comment 10 Dominik 'Rathann' Mierzejewski 2021-10-26 08:27:35 UTC
Thanks! Can you tell us what you were doing when the crash occurred? Does it occur every time you do that (is it reproducible)?

Comment 11 Dominik 'Rathann' Mierzejewski 2021-11-03 14:46:42 UTC
Can you test this scratch build once it's completed?
https://koji.fedoraproject.org/koji/taskinfo?taskID=78276789
It contains the proposed fix so the crash should not occur anymore.

Comment 12 Fedora Update System 2021-11-30 11:46:15 UTC
FEDORA-2021-e2193fb014 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-e2193fb014

Comment 13 Fedora Update System 2021-11-30 11:46:16 UTC
FEDORA-2021-ae6f489c2c has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-ae6f489c2c

Comment 14 Fedora Update System 2021-12-01 01:36:47 UTC
FEDORA-2021-e2193fb014 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-2021-e2193fb014`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-e2193fb014

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

Comment 15 Fedora Update System 2021-12-01 01:56:18 UTC
FEDORA-2021-ae6f489c2c has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-ae6f489c2c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-ae6f489c2c

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

Comment 16 Fedora Update System 2021-12-02 01:15:19 UTC
FEDORA-2021-e2193fb014 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2021-12-10 01:10:42 UTC
FEDORA-2021-ae6f489c2c has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.