Bug 1234732

Summary: [abrt] gnome-abrt: views.py:843:_set_problem:AttributeError: 'NoneType' object has no attribute 'load_icon'
Product: [Fedora] Fedora Reporter: Ashley Towns <mail>
Component: gnome-abrtAssignee: Matej Habrnal <mhabrnal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: a6dcb7d0, brpocock, bugz, ByteEnable, c.kirbach, daniel, ezwen-redhatbugzilla, guillaumepoiriermorency, jfilak, kilian-risse, mhabrnal, mikhail.v.gavrilov, mnowak, nalimilan, omega13a, smitna, tigran.mkrtchyan, vwfoxguru
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/09555ed817fd446bfc31fe8710ff039fdb3ded6b
Whiteboard: abrt_hash:f7b2e129b96f46cca7126f28a78088503d26a8e1
Fixed In Version: gnome-abrt-1.2.0-3.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-19 01:56:52 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: environ none

Description Ashley Towns 2015-06-23 07:08:27 UTC
Version-Release number of selected component:
gnome-abrt-1.2.0-1.fc22

Additional info:
reporter:       libreport-2.6.0
cmdline:        /usr/bin/python3 /usr/bin/gnome-abrt -p /var/spool/abrt/oops-2015-06-23-12:40:04-847-0
executable:     /usr/bin/gnome-abrt
kernel:         4.0.5-300.fc22.x86_64
runlevel:       N 5
type:           Python3
uid:            1337

Truncated backtrace:
views.py:843:_set_problem:AttributeError: 'NoneType' object has no attribute 'load_icon'

Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/gnome_abrt/views.py", line 194, in _on_row_selected
    self._selection_changed(self)
  File "/usr/lib64/python3.4/site-packages/gnome_abrt/views.py", line 905, in on_tvs_problems_changed
    self._set_problem(rows[0])
  File "/usr/lib64/python3.4/site-packages/gnome_abrt/views.py", line 170, in wrapper_for_instance_function
    return func(oops_wnd, *args)
  File "/usr/lib64/python3.4/site-packages/gnome_abrt/views.py", line 843, in _set_problem
    .load_icon())
AttributeError: 'NoneType' object has no attribute 'load_icon'

Local variables in innermost frame:
sensitive_btn: True
self: <OopsWindow object at 0x7f6c80092c60 (gnome_abrt+views+OopsWindow at 0x125c2a0)>
problem: <gnome_abrt.problems.Problem object at 0x7f6c800380f0>
app: <gnome_abrt.application.Application object at 0x7f6c800429b0>
destroy_links: <function OopsWindow._set_problem.<locals>.destroy_links at 0x7f6c8004f268>

Comment 1 Ashley Towns 2015-06-23 07:08:31 UTC
Created attachment 1042112 [details]
File: backtrace

Comment 2 Ashley Towns 2015-06-23 07:08:32 UTC
Created attachment 1042113 [details]
File: environ

Comment 3 Ashley Towns 2015-06-23 09:14:42 UTC
My python is a little rusty, but attempting to load app.icon and then doing the null check and falling back like https://gist.github.com/anonymous/23cc87aa311df95037c5 seems to work

Comment 4 Matej Habrnal 2015-06-24 07:46:43 UTC
Thank you for the bug report!

I've created a pull request which fixes the bug:
https://github.com/abrt/gnome-abrt/pull/136

Comment 5 Matej Habrnal 2015-07-07 06:27:32 UTC
This upstream commit fixes the issue:
https://github.com/abrt/gnome-abrt/commit/796ac63aa1eb75c8558faa6d21721b331297b4a6

Comment 6 Fedora Update System 2015-07-13 13:42:09 UTC
gnome-abrt-1.2.0-3.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/gnome-abrt-1.2.0-3.fc22

Comment 7 Fedora Update System 2015-07-14 15:33:07 UTC
Package gnome-abrt-1.2.0-3.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gnome-abrt-1.2.0-3.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-11509/gnome-abrt-1.2.0-3.fc22
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2015-07-19 01:56:52 UTC
gnome-abrt-1.2.0-3.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Jakub Filak 2015-07-29 15:55:39 UTC
*** Bug 1206486 has been marked as a duplicate of this bug. ***