Bug 1846050

Summary: [abrt] gnome-feeds: guess_decode(): util.py:310:guess_decode:AttributeError: 'NoneType' object has no attribute 'decode'
Product: [Fedora] Fedora Reporter: Evan <evan>
Component: gnome-feedsAssignee: Artem <ego.cordatus>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: ego.cordatus
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/6748846ae79f10a63971882aba8daff3077d1e2c
Whiteboard: abrt_hash:2f030d90c9746c06c385a2c805700663d4aa5361;VARIANT_ID=workstation;
Fixed In Version: gnome-feeds-0.14.1-3.fc32 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-17 01:13: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: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Evan 2020-06-10 16:17:13 UTC
Description of problem:
I was scrolling through my list of feed items using ctrl+j, that's it.

Version-Release number of selected component:
gnome-feeds-0.13.4-4.fc32

Additional info:
reporter:       libreport-2.13.1
cgroup:         0::/user.slice/user-1000.slice/user/gnome-launched-org.gabmus.gfeeds.desktop-298233.scope
cmdline:        /usr/bin/python3 /usr/bin/gfeeds
crash_function: guess_decode
exception_type: AttributeError
executable:     /usr/bin/gfeeds
interpreter:    python3-3.8.3-1.fc32.x86_64
kernel:         5.6.16-300.fc32.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
util.py:310:guess_decode:AttributeError: 'NoneType' object has no attribute 'decode'

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/gfeeds/app_window.py", line 244, in on_sidebar_row_activated
    self.webview.load_feeditem(row.feeditem)
  File "/usr/lib/python3.8/site-packages/gfeeds/webview.py", line 193, in load_feeditem
    self.set_enable_rss_content(True, feeditem)
  File "/usr/lib/python3.8/site-packages/gfeeds/webview.py", line 128, in set_enable_rss_content
    self._load_rss_content(self.feeditem)
  File "/usr/lib/python3.8/site-packages/gfeeds/webview.py", line 159, in _load_rss_content
    self.set_enable_reader_mode(True, True)
  File "/usr/lib/python3.8/site-packages/gfeeds/webview.py", line 264, in set_enable_reader_mode
    self._set_enable_reader_mode_async_callback()
  File "/usr/lib/python3.8/site-packages/gfeeds/webview.py", line 237, in _set_enable_reader_mode_async_callback
    self.webkitview.load_html(build_reader_html(
  File "/usr/lib/python3.8/site-packages/gfeeds/build_reader_html.py", line 110, in build_reader_html
    syntax_highlight_css, root = build_syntax_highlight_from_raw_html(content)
  File "/usr/lib/python3.8/site-packages/gfeeds/build_reader_html.py", line 78, in build_syntax_highlight_from_raw_html
    return build_syntax_highlight(
  File "/usr/lib/python3.8/site-packages/gfeeds/build_reader_html.py", line 59, in build_syntax_highlight
    lexer = pygments.lexers.guess_lexer(code_node.text)
  File "/usr/lib/python3.8/site-packages/pygments/lexers/__init__.py", line 297, in guess_lexer
    _text, _ = guess_decode(_text)
  File "/usr/lib/python3.8/site-packages/pygments/util.py", line 310, in guess_decode
    text = text.decode('utf-8')
AttributeError: 'NoneType' object has no attribute 'decode'

Local variables in innermost frame:
text: None

Comment 1 Evan 2020-06-10 16:17:16 UTC
Created attachment 1696544 [details]
File: backtrace

Comment 2 Evan 2020-06-10 16:17:17 UTC
Created attachment 1696545 [details]
File: cpuinfo

Comment 3 Evan 2020-06-10 16:17:18 UTC
Created attachment 1696546 [details]
File: environ

Comment 4 Evan 2020-06-10 16:17:19 UTC
Created attachment 1696547 [details]
File: mountinfo

Comment 5 Evan 2020-06-10 16:17:20 UTC
Created attachment 1696548 [details]
File: namespaces

Comment 6 Evan 2020-06-10 16:17:21 UTC
Created attachment 1696549 [details]
File: open_fds

Comment 7 Fedora Update System 2020-07-20 09:43:17 UTC
FEDORA-2020-1dca57792f has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-1dca57792f

Comment 8 Fedora Update System 2020-07-21 01:37:16 UTC
FEDORA-2020-1dca57792f has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-1dca57792f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-1dca57792f

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

Comment 9 Fedora Update System 2020-08-10 00:39:40 UTC
FEDORA-2020-10d34cd500 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-10d34cd500`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-10d34cd500

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

Comment 10 Fedora Update System 2020-08-17 01:13:10 UTC
FEDORA-2020-10d34cd500 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.