Bug 2156680 - Dnfdragora crashes when looking at a certain history element
Summary: Dnfdragora crashes when looking at a certain history element
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dnfdragora
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-28 06:33 UTC by Persona non grata
Modified: 2022-12-28 17:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description Persona non grata 2022-12-28 06:33:02 UTC
Description of problem:
When clicking on a certain history item to display the details, the client crashes with the following error:

dnfdaemon client failure [g-io-error-quark: GDBus.Error:org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib64/python3.10/site-packages/dbus/service.py", line 715, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3.10/site-packages/dnfdaemon/server/__init__.py", line 68, in newFunc
    rc = func(*args, **kwargs)
  File "/usr/share/dnfdaemon/dnfdaemon-system", line 291, in GetHistoryPackages
    value = self.get_history_transaction_pkgs(tid)
  File "/usr/lib/python3.10/site-packages/dnfdaemon/server/__init__.py", line 731, in get_history_transaction_pkgs
    pkg_id = self._get_id(pkg)
  File "/usr/lib/python3.10/site-packages/dnfdaemon/server/__init__.py", line 1064, in _get_id
    values = [pkg.name, str(pkg.epoch), pkg.version, pkg.release, pkg.arch]
  File "/usr/lib/python3.10/site-packages/dnf/db/history.py", line 72, in name
    return self._item.getRPMItem().getName()
AttributeError: 'NoneType' object has no attribute 'getName'
 (36)]
<_M_> [ui] YUILoader.cc:236 deleteUI(): Shutting down UI
using dnf history command line to find the same entry, followed by dnf history info [id] displays the details without issue.

Version-Release number of selected component (if applicable):
$ dnfdragora --version
dnfdragora 
version: 2.1.2

$ dnf --version
4.14.0
  Installed: dnf-0:4.14.0-1.fc36.noarch at Wed 09 Nov 2022 18:29:34 GMT
  Built    : Fedora Project at Fri 09 Sep 2022 13:49:11 GMT

  Installed: rpm-0:4.17.1-3.fc36.x86_64 at Wed 09 Nov 2022 18:28:25 GMT
  Built    : Fedora Project at Tue 02 Aug 2022 12:31:56 GMT

How reproducible:
Unknown.  

Steps to Reproduce:
1. Launch dnfdragora-update from gui, or dnfdragora from terminal
2. Open History [Information | History]
3. Select (certain) item to display Transaction History (not all items crash, in fact, there is only one history item in my list that is an offender)

Actual results:
Client crashes and closes or hangs

Expected results:
Results displayed in 'Transaction History' panel/list.

Additional info:
https://ask.fedoraproject.org/t/dnfdragora-crashes-when-looking-at-a-certain-history-element/30210/3
This bug is similar to the following github report from 2019:
https://github.com/manatools/dnfdragora/issues/131


Note You need to log in before you can comment on or make changes to this bug.