Bug 1078000

Summary: [abrt] gnome-abrt: tools.py:64:smart_truncate:TypeError: object of type 'NoneType' has no len()
Product: [Fedora] Fedora Reporter: Mark <mark.a.sloan>
Component: gnome-abrtAssignee: Jakub Filak <jfilak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: alexcfsi, ccb, darth.Serious, dtimms, jan.public, jberan, jfilak, lnie, philipp, rob2098, Wilhelm.Buchmueller
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/9a31405838a018848cb7b5ff84afc3ebd46038b8
Whiteboard: abrt_hash:4467512fc7dea721cb4dd857d88f6d02b1d3b384
Fixed In Version: gnome-abrt-0.3.7-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-15 01:52:10 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 Mark 2014-03-19 04:15:53 UTC
Version-Release number of selected component:
gnome-abrt-0.3.6-1.fc20

Additional info:
reporter:       libreport-2.2.0
cmdline:        /usr/bin/python /usr/bin/gnome-abrt
executable:     /usr/bin/gnome-abrt
kernel:         3.13.6-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
tools.py:64:smart_truncate:TypeError: object of type 'NoneType' has no len()

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/gnome_abrt/views.py", line 360, in _on_source_btn_clicked
    res, old_source = self._switch_source(btn.source)
  File "/usr/lib64/python2.7/site-packages/gnome_abrt/views.py", line 382, in _switch_source
    self._reload_problems(source)
  File "/usr/lib64/python2.7/site-packages/gnome_abrt/views.py", line 504, in _reload_problems
    storage_problems.append(problem_to_storage_values(p))
  File "/usr/lib64/python2.7/site-packages/gnome_abrt/views.py", line 100, in problem_to_storage_values
    return ["{0!s}\n{1!s}".format(smart_truncate(name, length=40), typ),
  File "/usr/lib64/python2.7/site-packages/gnome_abrt/tools.py", line 64, in smart_truncate
    if len(content) <= length:
TypeError: object of type 'NoneType' has no len()

Local variables in innermost frame:
content: None
length: 40
suffix: '...'

Comment 1 Mark 2014-03-19 04:16:04 UTC
Created attachment 876200 [details]
File: backtrace

Comment 2 Mark 2014-03-19 04:16:06 UTC
Created attachment 876201 [details]
File: environ

Comment 3 Jakub Filak 2014-03-19 15:14:25 UTC
Upstream commit f05c07a82dc0d715a232a8c62e1a70f252e4a926 fixes this bug.

Comment 4 seth Nimbosa 2014-04-09 19:52:07 UTC
Another user experienced a similar problem:

reporting a bug through ABRT, application crashed

reporter:       libreport-2.2.0
cmdline:        /usr/bin/python /usr/bin/gnome-abrt -p /var/tmp/abrt/ccpp-2014-04-10-02:46:25-1471
event_log:      2014-04-10-03:49:25> ('report_uReport' completed successfully)
executable:     /usr/bin/gnome-abrt
kernel:         3.13.8-200.fc20.i686
package:        gnome-abrt-0.3.6-1.fc20
reason:         tools.py:64:smart_truncate:TypeError: object of type 'NoneType' has no len()
runlevel:       N 5
type:           Python
uid:            1000

Comment 5 Fedora Update System 2014-06-12 15:57:07 UTC
gnome-abrt-0.3.7-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/gnome-abrt-0.3.7-1.fc20

Comment 6 lnie 2014-06-13 04:47:26 UTC
gnome-abrt-0.3.7-1.fc20 works

Comment 7 Fedora Update System 2014-06-13 05:27:24 UTC
Package gnome-abrt-0.3.7-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gnome-abrt-0.3.7-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7316/gnome-abrt-0.3.7-1.fc20
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2014-06-15 01:52:10 UTC
gnome-abrt-0.3.7-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.