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 638111 - The Gecko script's "clumping" of utterances needs to be more robust and/or removed
The Gecko script's "clumping" of utterances needs to be more robust and/or re...
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: speech
2.91.x
Other All
: Normal normal
: ---
Assigned To: Orca Maintainers
Orca Maintainers
: 638177 641892 688248 (view as bug list)
Depends on:
Blocks: 404403
 
 
Reported: 2010-12-27 14:29 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2014-09-13 07:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This debug.out showing what happened when I navigating l10n.gnome.org by line by line (61.81 KB, application/octet-stream)
2011-01-11 09:48 UTC, Hammer Attila
Details
Fresh debug.out file (394.93 KB, application/octet-stream)
2012-11-13 15:26 UTC, Hammer Attila
Details

Description Joanmarie Diggs (IRC: joanie) 2010-12-27 14:29:47 UTC
Currently the Gecko script "clumps" utterances together so that items that are in the same voice (acss) are spoken as a single item.

Given that other scripts will potentially have a need to build up lines of content, perhaps this functionality should be moved out of the Gecko script. If so, it needs to also be made more robust because it doesn't currently handle some of the results generated by the speech_generators, e.g.:

Traceback (most recent call last):
  • File "/usr/lib/python2.7/dist-packages/orca/input_event.py", line 210 in processInputEvent
    consumed = self.function(script, inputEvent)
  • File "/usr/lib/python2.7/dist-packages/orca/scripts/toolkits/Gecko/script.py", line 5935 in goNextLine
    self.presentLine(nextObj, nextCharOffset)
  • File "/usr/lib/python2.7/dist-packages/orca/scripts/toolkits/Gecko/script.py", line 2126 in presentLine
    self.speakContents(self.currentLineContents)
  • File "/usr/lib/python2.7/dist-packages/orca/scripts/toolkits/Gecko/script.py", line 5370 in speakContents
    clumped = self.clumpUtterances(utterances)
  • File "/usr/lib/python2.7/dist-packages/orca/scripts/toolkits/Gecko/script.py", line 5344 in clumpUtterances
    for [element, acss] in utterances:
ValueError: too many values to unpack

Comment 1 Joanmarie Diggs (IRC: joanie) 2010-12-28 16:14:57 UTC
*** Bug 638177 has been marked as a duplicate of this bug. ***
Comment 2 Hammer Attila 2011-01-11 09:48:19 UTC
Created attachment 178013 [details]
This debug.out showing what happened when I navigating l10n.gnome.org by line by line
Comment 3 Joanmarie Diggs (IRC: joanie) 2011-02-09 03:43:51 UTC
*** Bug 641892 has been marked as a duplicate of this bug. ***
Comment 4 Paul Hunt 2011-06-16 19:35:11 UTC
I see this traceback 100% of the time on m.facebook.com whenever I attempt to read a line below a status update where someone has clicked the "like" button to say they like the update.
Comment 5 Jose Vilmar Estacio de Souza 2012-02-06 11:50:39 UTC
I found a similar problem after searching in google.
It happens after I type a text in search field, press enter, wait for the page is loaded and then press the enter key.

vvvvv PROCESS <ENUM ATSPI_KEY_PRESSED_EVENT OF TYPE EVENTTYPE> 'h' (43) vvvvv
LOCUS OF FOCUS: app='Firefox' name='Google' role='link'
                event=None
Object deemed to be useless: [section | ]
Object deemed to be useless: [section | ]

PREPARATION TIME: 0.0012
generate braille for focused app.name='Firefox' name='Google' role='link' state='enabled focusable horizontal opaque sensitive showing visible selectable text' relations='' (args={'formatType': 'focused', 'useDefaultFormatting': False, 'includeContext': False, 'role': <enum ATSPI_ROLE_LINK of type Role>, 'mode': 'braille', 'recursing': True}) using '[Link(obj, asString(currentLineText)                                     or asString(displayedText)                                     or asString(name))]'
GENERATION  TIME: 0.0030  ---->  currentLineText=['Google']
COMPLETION  TIME: 0.0045
generate braille results:
  Link: 'Google', 0

PREPARATION TIME: 0.0013
generate braille for unfocused app.name='Firefox' name='None' role='image' state='enabled horizontal opaque sensitive showing visible' relations='' (args={'formatType': 'unfocused', 'useDefaultFormatting': False, 'includeContext': False, 'role': <enum ATSPI_ROLE_IMAGE of type Role>, 'mode': 'braille', 'recursing': True}) using '(imageLink                           and [Link(obj, (asString(label + displayedText)                                           or asString(name))                                          + " " + asString(value + roleName))]                           or [Component(obj,                                        asString(label + displayedText + value + roleName))])'
GENERATION  TIME: 0.0004  ---->  imageLink=<Accessible object at 0x210fbe0 (AtspiAccessible at 0x21926c0)>
GENERATION  TIME: 0.0010  ---->  label=[]
GENERATION  TIME: 0.0004  ---->  displayedText=[]
GENERATION  TIME: 0.0014  ---->  name=['webhp']
GENERATION  TIME: 0.0004  ---->  value=['']
GENERATION  TIME: 0.0005  ---->  roleName=['Image']
COMPLETION  TIME: 0.0060
generate braille results:
  Link: 'webhp Image', 0

PREPARATION TIME: 0.0012
generate braille for unfocused app.name='Firefox' name='Search' role='entry' state='editable enabled focusable horizontal opaque sensitive showing single line visible selectable text' relations='' (args={'formatType': 'unfocused', 'useDefaultFormatting': False, 'includeContext': False, 'role': Role(79L), 'mode': 'braille', 'recursing': True}) using '[Text(obj, asString(label + placeholderText), asString(eol))]                + (required and [Region(" " + asString(required))])                + (readOnly and [Region(" " + asString(readOnly))])'
GENERATION  TIME: 0.0019  ---->  label=[]
GENERATION  TIME: 0.0004  ---->  placeholderText=[]
GENERATION  TIME: 0.0003  ---->  eol=[u' $l']
GENERATION  TIME: 0.0045  ---->  required=[]
Gecko - isReadOnlyTextArea=False for app.name='Firefox' name='Search' role='entry' state='editable enabled focusable horizontal opaque sensitive showing single line visible selectable text' relations=''
GENERATION  TIME: 0.0056  ---->  readOnly=[]
COMPLETION  TIME: 0.0182
generate braille results:
  Text: 'LINUX WEEKLY NEWS $l', -1
BRAILLE LINE:  'Google webhp Image LINUX WEEKLY NEWS $l'
     VISIBLE:  'Google webhp Image LINUX WEEKLY ', cursor=1

Traceback (most recent call last):
  • File "/usr/local/lib/python2.7/dist-packages/orca/input_event.py", line 513 in processInputEvent
    consumed = self.function(script, inputEvent)
  • File "/usr/local/lib/python2.7/dist-packages/orca/structural_navigation.py", line 313 in goNext
    self.structuralNavigation.goObject(self, True)
  • File "/usr/local/lib/python2.7/dist-packages/orca/structural_navigation.py", line 895 in goObject
    structuralNavigationObject.present(obj, arg)
  • File "/usr/local/lib/python2.7/dist-packages/orca/structural_navigation.py", line 2708 in _headingPresentation
    self._presentObject(obj, characterOffset)
  • File "/usr/local/lib/python2.7/dist-packages/orca/scripts/toolkits/Gecko/structural_navigation.py", line 165 in _presentObject
    self._script.speakContents(contents)
  • File "/usr/local/lib/python2.7/dist-packages/orca/scripts/toolkits/Gecko/script.py", line 5297 in speakContents
    clumped = self.clumpUtterances(utterances)
  • File "/usr/local/lib/python2.7/dist-packages/orca/scripts/toolkits/Gecko/script.py", line 5263 in clumpUtterances
    for [element, acss] in utterances:
ValueError: too many values to unpack

^^^^^ PROCESS <ENUM ATSPI_KEY_PRESSED_EVENT OF TYPE EVENTTYPE> 'h' (43) ^^^^^

I am running ubuntu 11.10, latest orca built from master and firefox 10.
Comment 6 Joanmarie Diggs (IRC: joanie) 2012-03-14 12:22:16 UTC
Can also be seen on: http://l10n.gnome.org/vertimus/orca/master/po/hu if you are logged in.

I tried to handle the traceback, but Orca then started double-presenting things. This really needs to be properly dealt with rather than hacked around.
Comment 7 Hammer Attila 2012-03-15 06:18:14 UTC
Hy Joanie,

This is bad news, but I absolute agree with you wrote.
What type links with I founded in l10n.gnome.org with producing this trace back error message?
The problem are this links is image links, or the links have in a table?

Attila
Comment 8 Joanmarie Diggs (IRC: joanie) 2012-11-13 15:13:57 UTC
*** Bug 688248 has been marked as a duplicate of this bug. ***
Comment 9 Hammer Attila 2012-11-13 15:26:29 UTC
Created attachment 228905 [details]
Fresh debug.out file

Some heading links producing VALUEERROR exceptions (too many value to unpack) in www.atv.hu webpage.

Attila
Comment 10 Joanmarie Diggs (IRC: joanie) 2014-09-13 07:44:33 UTC
clumpUtterances() no longer exists.