After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 671198 - Have again Unicode Encode Errors and Unicode Decode Errors when Orca sends an output the speech synth or the braille display
Have again Unicode Encode Errors and Unicode Decode Errors when Orca sends an...
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
3.3.x
Other All
: Normal normal
: ---
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-03-02 09:31 UTC by Hammer Attila
Modified: 2012-03-02 16:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Debug file with shows various Unicode Encode and Decode tracebacks (268.09 KB, application/octet-stream)
2012-03-02 09:31 UTC, Hammer Attila
Details

Description Hammer Attila 2012-03-02 09:31:12 UTC
Created attachment 208842 [details]
Debug file with shows various Unicode Encode and Decode tracebacks

Hy Joanie,

Unfortunately I found again Unicode Encode and Unicode Decode errors. Following traceback error messages is happened when I using Ubuntu Precise installer, in the user creation screen:
1. Error message:
PREPARATION TIME: 0.0007
generate braille for focused app.name='ubiquity' name='ubiquity' role='application' state='' relations='' (args={'formatType': 'focused', 'role': <enum ATSPI_ROLE_APPLICATION of type Role>, 'mode': 'braille', 'includeContext': False, 'recursing': True}) using '[Component(obj,                                     asString(label + displayedText + value + roleName + required))]'
GENERATION  TIME: 0.0007  ---->  label=[]
GENERATION  TIME: 0.0003  ---->  displayedText=[u'ubiquity']
GENERATION  TIME: 0.0005  ---->  value=['']
GENERATION  TIME: 0.0005  ---->  roleName=['alkalmaz\xc3\xa1s']
GENERATION  TIME: 0.0003  ---->  required=[]
COMPLETION  TIME: 0.0035
generate braille results:
  Component: 'ubi&ui8 alkalma2"s', 0
GENERATION  TIME: 0.0303  ---->  ancestors=[<orca.braille.Component instance at 0x9501acc>, <orca.braille.Region instance at 0x94f7e0c>, <orca.braille.Component instance at 0x95017ec>, <orca.braille.Region instance at 0x94f7e2c>, <orca.braille.Component instance at 0x95015cc>, <orca.braille.Region instance at 0x950156c>, <orca.braille.Component instance at 0x91d46cc>, <orca.braille.Region instance at 0x950160c>, <orca.braille.Component instance at 0x950154c>, <orca.braille.Region instance at 0x93c82ec>, <orca.braille.Component instance at 0x94e276c>]
GENERATION  TIME: 0.0005  ---->  rowHeader=[]
GENERATION  TIME: 0.0004  ---->  columnHeader=[]
GENERATION  TIME: 0.0004  ---->  radioButtonGroup=[]
GENERATION  TIME: 0.0015  ---->  label=['Az \xc3\x96n neve:']
GENERATION  TIME: 0.0009  ---->  placeholderText=['Az \xc3\x96n neve']
GENERATION  TIME: 0.0006  ---->  eol=[u' ']

Traceback (most recent call last):
  • File "/usr/lib/python2.7/dist-packages/orca/generator.py", line 239 in generate
    result = eval(formatting, globalsDict)
  • File "<string>", line 1 in <module>
  • File "/usr/lib/python2.7/dist-packages/orca/braille.py", line 612 in __init__
    label = label.decode("UTF-8")
  • File "/usr/lib/python2.7/encodings/utf_8.py", line 16 in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 3: ordinal not in range(128)

2. Error message:
PREPARATION TIME: 0.0007
generate braille for focused app.name='ubiquity' name='ubiquity' role='application' state='' relations='' (args={'formatType': 'focused', 'role': <enum ATSPI_ROLE_APPLICATION of type Role>, 'mode': 'braille', 'includeContext': False, 'recursing': True}) using '[Component(obj,                                     asString(label + displayedText + value + roleName + required))]'
GENERATION  TIME: 0.0006  ---->  label=[]
GENERATION  TIME: 0.0003  ---->  displayedText=[u'ubiquity']
GENERATION  TIME: 0.0005  ---->  value=['']
GENERATION  TIME: 0.0006  ---->  roleName=['alkalmaz\xc3\xa1s']
GENERATION  TIME: 0.0003  ---->  required=[]
COMPLETION  TIME: 0.0035
generate braille results:
  Component: 'ubi&ui8 alkalma2"s', 0
GENERATION  TIME: 0.0393  ---->  ancestors=[<orca.braille.Component instance at 0x955d16c>, <orca.braille.Region instance at 0x955ae0c>, <orca.braille.Component instance at 0x91df38c>, <orca.braille.Region instance at 0x94d73cc>, <orca.braille.Component instance at 0x955d12c>, <orca.braille.Region instance at 0x955adec>, <orca.braille.Component instance at 0x955ae8c>, <orca.braille.Region instance at 0x955adcc>, <orca.braille.Component instance at 0x955d14c>, <orca.braille.Region instance at 0x955aeec>, <orca.braille.Component instance at 0x955a8cc>, <orca.braille.Region instance at 0x955ab2c>, <orca.braille.Component instance at 0x955ad6c>]
GENERATION  TIME: 0.0005  ---->  rowHeader=[]
GENERATION  TIME: 0.0004  ---->  columnHeader=[]
GENERATION  TIME: 0.0004  ---->  radioButtonGroup=[]
GENERATION  TIME: 0.0014  ---->  label=[u'A m\xe1s sz\xe1m\xedt\xf3g\xe9pekkel val\xf3 kommunik\xe1ci\xf3ban haszn\xe1lt n\xe9v. A sz\xe1m\xedt\xf3g\xe9p neve:']
GENERATION  TIME: 0.0012  ---->  placeholderText=[]
GENERATION  TIME: 0.0005  ---->  eol=[u' ']

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/orca/generator.py", line 239, in generate
    result = eval(formatting, globalsDict)
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/orca/braille.py", line 612, in __init__
    label = label.decode("UTF-8")
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 3: ordinal not in range(128)

3. Error message:
generate speech for unfocused app.name='ubiquity' name='None' role='text' state='editable enabled focusable focused sensitive showing single line visible' relations='labelled by' (args={'recursing': True, 'priorObj': <Accessible object at 0x954b054 (AtspiAccessible at 0x948fec8)>, 'role': <enum ATSPI_ROLE_TEXT of type Role>, 'mode': 'speech', 'formatType': 'unfocused'}) using 'newAncestors + newRowHeader + newColumnHeader + newRadioButtonGroup + labelOrName + placeholderText + readOnly + textRole + pause + textIndentation + currentLineText + allTextSelection + (mnemonic and (pause + mnemonic + lineBreak) or []) + newNodeLevel + unselectedCell + (tutorial and (pause + tutorial) or [])'
script_utilities.commonAncestor...
...script_utilities.commonAncestor
GENERATION  TIME: 0.0044  ---->  newAncestors=['A m\xc3\xa1s sz\xc3\xa1m\xc3\xadt\xc3\xb3g\xc3\xa9pekkel val\xc3\xb3 kommunik\xc3\xa1ci\xc3\xb3ban haszn\xc3\xa1lt n\xc3\xa9v.', {u'average-pitch': 3.0, u'rate': 90.0, u'family': {u'locale': u'hu', u'name': u'magyar'}}]
GENERATION  TIME: 0.0005  ---->  newRowHeader=[]
GENERATION  TIME: 0.0003  ---->  newColumnHeader=[]
GENERATION  TIME: 0.0003  ---->  newRadioButtonGroup=[]
GENERATION  TIME: 0.0002  ---->  labelOrName=[u'A m\xe1s sz\xe1m\xedt\xf3g\xe9pekkel val\xf3 kommunik\xe1ci\xf3ban haszn\xe1lt n\xe9v. A sz\xe1m\xedt\xf3g\xe9p neve:', {u'average-pitch': 3.0, u'rate': 90.0, u'family': {u'locale': u'hu', u'name': u'magyar'}}]
GENERATION  TIME: 0.0006  ---->  placeholderText=[]
isReadOnlyTextArea=False for app.name='ubiquity' name='None' role='text' state='editable enabled focusable focused sensitive showing single line visible' relations='labelled by'
GENERATION  TIME: 0.0015  ---->  readOnly=[]
GENERATION  TIME: 0.0007  ---->  textRole=['szerkeszt\xc5\x91mez\xc5\x91', {}]
GENERATION  TIME: 0.0003  ---->  pause=[<orca.speech_generator.Pause instance at 0x90f8cec>]
GENERATION  TIME: 0.0002  ---->  textIndentation=[]
GENERATION  TIME: 0.0028  ---->  currentLineText=['hammer-Satellite-L300', {u'average-pitch': 3.0, u'rate': 90.0, u'family': {u'locale': u'hu', u'name': u'magyar'}}]
GENERATION  TIME: 0.0018  ---->  allTextSelection=['kijel\xc3\xb6lve', {}]
script_utilities.getKeyBinding: ['', '', '']
GENERATION  TIME: 0.0031  ---->  mnemonic=[]
GENERATION  TIME: 0.0013  ---->  newNodeLevel=[]
GENERATION  TIME: 0.0005  ---->  unselectedCell=[]
isReadOnlyTextArea=False for app.name='ubiquity' name='None' role='text' state='editable enabled focusable focused sensitive showing single line visible' relations='labelled by'
GENERATOR: _getTutorialForText
           obj             = 
           role            = text
           alreadyFocused  = False
           utterances:
               (Gépelje be a kért információt, vagy módosítsa a meglévőt.)
GENERATOR: getTutorial
           obj             = 
           role            = text
           alreadyFocused  = False
           utterances:
               (Gépelje be a kért információt, vagy módosítsa a meglévőt.)
GENERATION  TIME: 0.0025  ---->  tutorial=['G\xc3\xa9pelje be a k\xc3\xa9rt inform\xc3\xa1ci\xc3\xb3t, vagy m\xc3\xb3dos\xc3\xadtsa a megl\xc3\xa9v\xc5\x91t.', {}]
COMPLETION  TIME: 0.0232
generate speech results:
  A más számítógépekkel való kommunikációban használt név.
  {u'average-pitch': 3.0, u'rate': 90.0, u'family': {u'locale': u'hu', u'name': u'magyar'}}
TypeError when trying to write text
  {u'average-pitch': 3.0, u'rate': 90.0, u'family': {u'locale': u'hu', u'name': u'magyar'}}
  szerkesztőmező
  {}
  <orca.speech_generator.Pause instance at 0x90f8cec>
  hammer-Satellite-L300
  {u'average-pitch': 3.0, u'rate': 90.0, u'family': {u'locale': u'hu', u'name': u'magyar'}}
  kijelölve
  {}
  <orca.speech_generator.Pause instance at 0x90f8cec>
  Gépelje be a kért információt, vagy módosítsa a meglévőt.
  {}

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/orca/event_manager.py", line 215, in _dequeue
    self._processObjectEvent(event)
  File "/usr/lib/python2.7/dist-packages/orca/event_manager.py", line 527, in _processObjectEvent
    script.processObjectEvent(event)
  File "/usr/lib/python2.7/dist-packages/orca/script.py", line 404, in processObjectEvent
    self.listeners[key](event)
  File "/usr/lib/python2.7/dist-packages/orca/scripts/default.py", line 3430, in onStateChanged
    self.onFocus(event)
  File "/usr/lib/python2.7/dist-packages/orca/scripts/default.py", line 3222, in onFocus
    orca.setLocusOfFocus(event, newFocus)
  File "/usr/lib/python2.7/dist-packages/orca/orca.py", line 529, in setLocusOfFocus
    event, oldLocusOfFocus, orca_state.locusOfFocus)
  File "/usr/lib/python2.7/dist-packages/orca/scripts/default.py", line 1344, in locusOfFocusChanged
    speech.speak(utterances, voice, not shouldNotInterrupt)
  File "/usr/lib/python2.7/dist-packages/orca/speech.py", line 254, in speak
    string = " ".join(toSpeak)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)

4. Error message:
PREPARATION TIME: 0.0028
generate braille for focused app.name='ubiquity' name='ubiquity' role='application' state='' relations='' (args={'formatType': 'focused', 'role': <enum ATSPI_ROLE_APPLICATION of type Role>, 'mode': 'braille', 'includeContext': False, 'recursing': True}) using '[Component(obj,                                     asString(label + displayedText + value + roleName + required))]'
GENERATION  TIME: 0.0007  ---->  label=[]
GENERATION  TIME: 0.0003  ---->  displayedText=[u'ubiquity']
GENERATION  TIME: 0.0008  ---->  value=['']
GENERATION  TIME: 0.0007  ---->  roleName=['alkalmaz\xc3\xa1s']
GENERATION  TIME: 0.0003  ---->  required=[]
COMPLETION  TIME: 0.0063
generate braille results:
  Component: 'ubi&ui8 alkalma2"s', 0
GENERATION  TIME: 0.0398  ---->  ancestors=[<orca.braille.Component instance at 0x95fad8c>, <orca.braille.Region instance at 0x95fadcc>, <orca.braille.Component instance at 0x95faf6c>, <orca.braille.Region instance at 0x95faeec>, <orca.braille.Component instance at 0x95fae6c>, <orca.braille.Region instance at 0x95faeac>, <orca.braille.Component instance at 0x95faccc>, <orca.braille.Region instance at 0x95fad0c>, <orca.braille.Component instance at 0x95fac6c>, <orca.braille.Region instance at 0x955ab2c>, <orca.braille.Component instance at 0x955ad8c>]
GENERATION  TIME: 0.0014  ---->  rowHeader=[]
GENERATION  TIME: 0.0005  ---->  columnHeader=[]
GENERATION  TIME: 0.0004  ---->  radioButtonGroup=[]
GENERATION  TIME: 0.0016  ---->  label=['Jelsz\xc3\xb3 meger\xc5\x91s\xc3\xadt\xc3\xa9se:']
GENERATION  TIME: 0.0010  ---->  placeholderText=['Jelsz\xc3\xb3 ellen\xc5\x91rz\xc3\xa9se']
GENERATION  TIME: 0.0019  ---->  eol=[u' ']

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/orca/generator.py", line 239, in generate
    result = eval(formatting, globalsDict)
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/orca/braille.py", line 612, in __init__
    label = label.decode("UTF-8")
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 5: ordinal not in range(128)

Hopefuly I listed all error messages.
Of course, I attaching the debug.out file.

Attila
Comment 1 Joanmarie Diggs (IRC: joanie) 2012-03-02 11:55:47 UTC
Hopefully fixed in master. Please test.
Comment 2 Hammer Attila 2012-03-02 12:38:51 UTC
Ok, I will be testing the fix.
I need generating a new Ubuntu 12.04 ISO with containing master Orca version and need looking the installation again.

Attila
Comment 3 Hammer Attila 2012-03-02 15:47:32 UTC
Hy Joanie,

Fix is wonderful working, thank you the quick fix.
Hopefuly we will be not founding later similar characters with producing this type issue.
If you would like, feel free change this bug status with resolved, fixed.

Attila
Comment 4 Joanmarie Diggs (IRC: joanie) 2012-03-02 16:30:06 UTC
Yay! Thanks for the confirmation.

Until every last possible string manipulation is covered, there is a chance we shall find more. Ultimately I am going to create some methods for this purpose which will stop it for good. In the meantime, if you find more, please open new bugs.