Bug 576598 - [abrt] crash in gedit-1:2.28.3-1.fc12: __init__.py:1181:uri:UnicodeDecodeError: 'utf8' codec can't decode bytes in position 23-24: invalid data
Summary: [abrt] crash in gedit-1:2.28.3-1.fc12: __init__.py:1181:uri:UnicodeDecodeErro...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gedit-latex-plugin
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Sergio Pascual
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:26dda4c3
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-24 15:18 UTC by Cristóvão Rufino
Modified: 2010-05-10 23:45 UTC (History)
3 users (show)

Fixed In Version: gedit-latex-plugin-0.2-1.fc13
Clone Of:
Environment:
Last Closed: 2010-05-10 16:59:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.52 KB, text/plain)
2010-03-24 15:18 UTC, Cristóvão Rufino
no flags Details

Description Cristóvão Rufino 2010-03-24 15:18:26 UTC
abrt 1.0.8 detected a crash.

architecture: x86_64
cmdline: gedit
component: gedit
executable: /usr/lib64/gedit-2/plugins
kernel: 2.6.32.9-70.fc12.x86_64
package: gedit-1:2.28.3-1.fc12
reason: __init__.py:1181:uri:UnicodeDecodeError: 'utf8' codec can't decode bytes in position 23-24: invalid data
release: Fedora release 12 (Constantine)

backtrace
-----
__init__.py:1181:uri:UnicodeDecodeError: 'utf8' codec can't decode bytes in position 23-24: invalid data

Traceback (most recent call last):
  File "/usr/lib64/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 650, in _on_load
    self._adjust_editor()
  File "/usr/lib64/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 707, in _adjust_editor
    editor_class.__init__(self._editor, self, file)
  File "/usr/lib64/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 403, in __init__
    self.init(file, self._window_context)
  File "/usr/lib64/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 105, in init
    self.__parse()
  File "/usr/lib64/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 299, in __parse
    master_file = self.__master_file
  File "/usr/lib64/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 336, in __master_file
    property_file = PropertyFile(self._file)
  File "/usr/lib64/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 553, in __init__
    self.__log.debug("File %s not found, creating empty one" % self.__file)
  File "/usr/lib64/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 1304, in __str__
    return self.uri
  File "/usr/lib64/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 1181, in uri
    url = self._uri.geturl().encode("latin1")
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 23-24: invalid data

Local variables in innermost frame:
self: <GeditLaTeXPlugin.src.base.File object at 0x2c07610>

How to reproduce
-----
1. Create a new LaTeX document with gedit
2.
3.

Comment 1 Cristóvão Rufino 2010-03-24 15:18:29 UTC
Created attachment 402331 [details]
File: backtrace

Comment 2 Daiki Ueno 2010-04-20 21:30:20 UTC
I can reproduce it when saving a new tex file as "/home/ueno/Neuložený dokument 1" under Czech locale (cs_CZ.ISO8859-2).  I think this is a bug of gedit-latex-plugin rather than gedit.  The fix would be packaging the upstream 0.2 final (released April 18), which contains a fix for URL handling, or backporting changes to src/base/__init__.py from it:

http://gedit-latex.svn.sourceforge.net/viewvc/gedit-latex/GeditLaTeXPlugin/trunk/src/base/__init__.py?r1=341&r2=349

Comment 3 Fedora Update System 2010-04-21 14:36:23 UTC
gedit-latex-plugin-0.2-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/gedit-latex-plugin-0.2-1.fc12

Comment 4 Fedora Update System 2010-04-21 14:37:26 UTC
gedit-latex-plugin-0.2-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/gedit-latex-plugin-0.2-1.fc11

Comment 5 Fedora Update System 2010-04-21 14:38:16 UTC
gedit-latex-plugin-0.2-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/gedit-latex-plugin-0.2-1.fc13

Comment 6 Fedora Update System 2010-04-22 22:55:37 UTC
gedit-latex-plugin-0.2-1.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gedit-latex-plugin'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/gedit-latex-plugin-0.2-1.fc12

Comment 7 Fedora Update System 2010-04-22 22:58:13 UTC
gedit-latex-plugin-0.2-1.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gedit-latex-plugin'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/gedit-latex-plugin-0.2-1.fc11

Comment 8 Fedora Update System 2010-04-22 22:58:41 UTC
gedit-latex-plugin-0.2-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gedit-latex-plugin'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/gedit-latex-plugin-0.2-1.fc13

Comment 9 Fedora Update System 2010-05-10 16:59:29 UTC
gedit-latex-plugin-0.2-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2010-05-10 17:09:02 UTC
gedit-latex-plugin-0.2-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2010-05-10 23:45:21 UTC
gedit-latex-plugin-0.2-1.fc13 has been pushed to the Fedora 13 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.