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 456296 - Traceback in braille.py when doing a "Select All" in gedit.
Traceback in braille.py when doing a "Select All" in gedit.
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: braille
2.19.x
Other Linux
: Normal normal
: 2.20.0
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-07-12 16:39 UTC by Rich Burridge
Modified: 2008-07-22 19:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to hopefully solve the problem (635 bytes, patch)
2007-07-12 17:52 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Rich Burridge 2007-07-12 16:39:01 UTC
Steps to reproduce:

1. Start Orca
2. Start gedit and type in:

The quick brown fox
jumps over the lazy
dog.

3. Press F10
4. Press the Right arrow.
5. Press Down until you get to the "Select All" menu entry.
6. Press Return.

You see see the following stack trace.

Traceback (most recent call last):
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 605 in _processObjectEvent
    s.processObjectEvent(event)
  • File "/usr/lib/python2.5/site-packages/orca/script.py", line 276 in processObjectEvent
    self.listeners[key](event)
  • File "/usr/lib/python2.5/site-packages/orca/scripts/gedit.py", line 539 in onStateChanged
    orca.setLocusOfFocus(event, event.source)
  • File "/usr/lib/python2.5/site-packages/orca/orca.py", line 201 in setLocusOfFocus
    orca_state.locusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 923 in locusOfFocusChanged
    newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/scripts/gedit.py", line 438 in locusOfFocusChanged
    oldLocusOfFocus, newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 2143 in locusOfFocusChanged
    self.updateBraille(newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 2448 in updateBraille
    braille.setFocus(result[1])
  • File "/usr/lib/python2.5/site-packages/orca/braille.py", line 746 in setFocus
    [string, offset, attributeMask] = line.getLineInfo()
  • File "/usr/lib/python2.5/site-packages/orca/braille.py", line 616 in getLineInfo
    mask = region.getAttributeMask()
  • File "/usr/lib/python2.5/site-packages/orca/braille.py", line 511 in getAttributeMask
    if attrMask[j] != '\x00' \
IndexError: list index out of range

Comment 1 Joanmarie Diggs (IRC: joanie) 2007-07-12 16:41:21 UTC
That's not good. :-(  I'll look at it.
Comment 2 Joanmarie Diggs (IRC: joanie) 2007-07-12 17:52:38 UTC
Created attachment 91688 [details] [review]
patch to hopefully solve the problem

Rich this solves it for me.  Does it for you?

Mike please test.
Comment 3 Rich Burridge 2007-07-12 18:07:00 UTC
Yes, that nicely fixes the problem for me. Thanks.
Comment 4 Mike Pedersen 2007-07-12 19:23:04 UTC
Works great for me now.
Comment 5 Joanmarie Diggs (IRC: joanie) 2007-07-12 19:42:31 UTC
Thanks guys!  Patch committed.  Moving to [pending].
Comment 6 Mike Pedersen 2007-07-20 22:27:18 UTC
Looks good
Comment 7 Joanmarie Diggs (IRC: joanie) 2007-07-20 23:10:49 UTC
Thanks.  Closing as FIXED.