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 435307 - OOo Calc output traceback for UnboundLocalError: local variable 'focusRegion' referenced before assignment
OOo Calc output traceback for UnboundLocalError: local variable 'focusRegion'...
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.19.x
Other Linux
: Normal normal
: ---
Assigned To: Rich Burridge
Orca Maintainers
Depends on:
Blocks: 404411
 
 
Reported: 2007-05-02 20:29 UTC by Rich Burridge
Modified: 2007-05-03 20:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix the problem. (1.14 KB, patch)
2007-05-03 20:43 UTC, Rich Burridge
committed Details | Review

Description Rich Burridge 2007-05-02 20:29:21 UTC
I got this whilst debugging bug #433398.

Steps to reproduce:

1/ Start Orca
2/ Start OOo Calc
3/ Select a cell in the spread sheet other than A1
4/ Select Alt-w to display the Window menu.
5/ Select Alt-f to select the Freeze menu item.
6/ Select Alt-w to try to reselect the Window menu.

At this point, there is a lot of disk activity and everything seem to
grind to a halt. After a while Orca and OOo are responsive again but
the following traceback is generated:

Traceback (most recent call last):
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 529 in _processObjectEvent
    s.processObjectEvent(event)
  • File "/usr/lib/python2.5/site-packages/orca/script.py", line 256 in processObjectEvent
    self.listeners[key](event)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 2672 in onActiveDescendantChanged
    orca.setLocusOfFocus(event, child)
  • File "/usr/lib/python2.5/site-packages/orca/orca.py", line 193 in setLocusOfFocus
    orca_state.locusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 849 in locusOfFocusChanged
    newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/scripts/StarOffice.py", line 1682 in locusOfFocusChanged
    oldLocusOfFocus, newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 1932 in locusOfFocusChanged
    self.updateBraille(newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 2216 in updateBraille
    result = self.brailleGenerator.getBrailleRegions(obj)
  • File "/usr/lib/python2.5/site-packages/orca/braillegenerator.py", line 1349 in getBrailleRegions
    result = generator(obj)
  • File "/usr/lib/python2.5/site-packages/orca/scripts/StarOffice.py", line 331 in _getBrailleRegionsForTableCellRow
    regions = [regions, focusRegion]
UnboundLocalError: local variable 'focusRegion' referenced before assignment

Comment 1 Rich Burridge 2007-05-03 20:43:51 UTC
Created attachment 87488 [details] [review]
Patch to fix the problem.

Just needed to initialize focusRegion to None need the beginning of the
_getBrailleRegionsForTableCellRow() method in the StarOffice script.

Patch checked into SVN HEAD. Closing as FIXED.