dogtail-devel [Bug 354515] New: dogtail crashes with a UnicodeDecodeError: "'utf8' codec can't decode byte ..." error when running example
- From: "dogtail (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
- To: dogtail-devel-list gnome org
- Subject: dogtail-devel [Bug 354515] New: dogtail crashes with a UnicodeDecodeError: "'utf8' codec can't decode byte ..." error when running example
- Date: Tue, 5 Sep 2006 21:54:14 +0100 (BST)
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=354515
dogtail | Framework | Ver: 0.5.x
Summary: dogtail crashes with a UnicodeDecodeError: "'utf8' codec
can't decode byte ..." error when running example
Product: dogtail
Version: 0.5.x
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: critical
Priority: Normal
Component: Framework
AssignedTo: dogtail-maint gnome bugs
ReportedBy: pmuldoon redhat com
QAContact: dogtail-maint gnome bugs
GNOME version: Unspecified
GNOME milestone: Unspecified
Steps to reproduce:
1. Fedora Rawhide
2. python gedit-test-utf8-procedural-api.py
3.
Stack trace:
[pmuldoon dhcp-199 examples]$ python gedit-test-utf8-procedural-api.py
Creating logfile at
/tmp/dogtail/logs/gedit-test-utf8-procedural-api_20060905-155027 ...
Detecting distribution: Red Hat/Fedora/derived distribution
GTK Accessibility Module initialized
Bonobo accessibility support initialized
Traceback (most recent call last):
File "gedit-test-utf8-procedural-api.py", line 30, in ?
run('gedit')
File "/usr/lib/python2.4/site-packages/dogtail/procedural.py", line 310, in
run
focus.application(application)
File "/usr/lib/python2.4/site-packages/dogtail/procedural.py", line 57, in
__call__
app = self.desktop.findChild(predicate, recursive = False, retry = False)
File "/usr/lib/python2.4/site-packages/dogtail/tree.py", line 845, in
findChild
result = findFirstChildSatisfying(self, pred, recursive)
File "/usr/lib/python2.4/site-packages/dogtail/tree.py", line 817, in
findFirstChildSatisfying
if child.satisfies(pred):
File "/usr/lib/python2.4/site-packages/dogtail/tree.py", line 685, in
satisfies
return pred.satisfiedByNode(self)
File "/usr/lib/python2.4/site-packages/dogtail/predicate.py", line 95, in
satisfiedByNode
return node.roleName=='application' and stringMatches(self.appName,
node.name)
File "/usr/lib/python2.4/site-packages/dogtail/predicate.py", line 13, in
stringMatches
return scriptName.matchedBy(reportedName)
File "/usr/lib/python2.4/site-packages/dogtail/i18n.py", line 160, in
matchedBy
return stringsMatch(self.untranslatedString, string)
File "/usr/lib/python2.4/site-packages/dogtail/i18n.py", line 140, in
stringsMatch
outString = outString.decode('utf-8')
File "/usr/lib/python2.4/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa8 in position 0:
unexpected code byte
Other information:
We first noticed this when the frysk dogtail test suite crashed on rawhide:
The offending code (tree.root.application ....)
# Start up Frysk
run ( FryskBinary, appName=FRYSK_APP_NAME )
fryskObject = tree.root.application ( FRYSK_APP_NAME )
Crashed at that point. Checked sanity of FRYSK_APP_NAME turns out fine. However
using the AT-SPI sniff tool in the Programming -> AT_SPI Browser menu reveals
some applications with some odd names. One was named ?#? and others. I can
affix a screenshot if you need it. Sanity checked with the examples. It seems
when dogtail walks the tree, badly encoded strings cause it to crash.
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the QA contact for the bug.
You are watching the assignee for the bug.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]