Bug 1078000 - [abrt] gnome-abrt: tools.py:64:smart_truncate:TypeError: object of type 'NoneType' has no len()
Summary: [abrt] gnome-abrt: tools.py:64:smart_truncate:TypeError: object of type 'None...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-abrt
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Filak
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:4467512fc7dea721cb4dd857d88...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-19 04:15 UTC by Mark
Modified: 2016-12-01 00:46 UTC (History)
11 users (show)

Fixed In Version: gnome-abrt-0.3.7-1.fc20
Clone Of:
Environment:
Last Closed: 2014-06-15 01:52:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (974 bytes, text/plain)
2014-03-19 04:16 UTC, Mark
no flags Details
File: environ (1.44 KB, text/plain)
2014-03-19 04:16 UTC, Mark
no flags Details

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.


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