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 491885 - [verified][pyatspi] Orca "goes funky" when opening this oocalc spreadsheet.
[verified][pyatspi] Orca "goes funky" when opening this oocalc spreadsheet.
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.21.x
Other Linux
: High major
: ---
Assigned To: Eitan Isaacson
Orca Maintainers
Depends on: 489490
Blocks: 448848
 
 
Reported: 2007-10-30 22:03 UTC by Rich Burridge
Modified: 2007-11-06 17:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The spreadsheet which is causing Orca problems. (18.50 KB, application/vnd.ms-excel)
2007-10-30 22:03 UTC, Rich Burridge
  Details
Orca debug output whilst loading this spreadsheet into oocalc (130.14 KB, text/plain)
2007-10-30 22:13 UTC, Rich Burridge
  Details
Fix for the traceback in comment #10. (1.02 KB, patch)
2007-11-05 18:46 UTC, Rich Burridge
committed Details | Review

Description Rich Burridge 2007-10-30 22:03:22 UTC
Spread sheet from Mike (to be attached).
Orca debug output whilst running this test (to be attached).
Comment 1 Rich Burridge 2007-10-30 22:03:58 UTC
Created attachment 98209 [details]
The spreadsheet which is causing Orca problems.
Comment 2 Rich Burridge 2007-10-30 22:13:49 UTC
Created attachment 98210 [details]
Orca debug output whilst loading this spreadsheet into oocalc

Well, needless to say, Orca is working just fine with it now after
I did a reboot. Earlier, I did see a problem with a Traceback when
trying to do a getRole() on a object set to None.

If others have the time, could they also try loading this spreadsheet
into oocalc please.

Mike, you might wish to load Orca from the gnome-2-20 branch in order
to fill in this spreadsheet.
Comment 3 Rich Burridge 2007-10-30 22:24:47 UTC
If I just do the following:

1/ Start Orca
2/ Start oocalc
3/ Type Alt-f to bring up the File menu.

sometime the File menu will just "show" with only a New menu item.
If I down arrow a few times, the other menu items magically appear.
This is without loading that spreadsheet.

I did not see any Tracebacks or other kinds of errors in the Orca debug.
I did see the following in the window where I started oocalc:

$ oocalc 
$ 
** (soffice:7111): WARNING **: Exception in getAccessibleChildCount()

** (soffice:7111): WARNING **: Exception in getAccessibleName()

** (soffice:7111): WARNING **: Exception in getAccessibleIndexInParent()

** (soffice:7111): WARNING **: Exception in getAccessibleIndexInParent()

** (soffice:7111): WARNING **: Exception in getAccessibleName()

** (soffice:7111): WARNING **: Exception in getAccessibleIndexInParent()

** (soffice:7111): WARNING **: Focused object has invalid index in parent

Something is rather broken at the moment, either with latest oocalc
(this is on Ubuntu Gutsy), or with latest Orca from SVN trunk.


Comment 4 Joanmarie Diggs (IRC: joanie) 2007-10-31 05:19:45 UTC
> sometime the File menu will just "show" with only a New menu item.

Confirmed.

> I did not see any Tracebacks or other kinds of errors in the Orca debug.

Confirmed.

> I did see the following in the window where I started oocalc:

This I'm not seeing, but Orca seems to hang. :-(

> Something is rather broken at the moment, either with latest oocalc
> (this is on Ubuntu Gutsy), or with latest Orca from SVN trunk.

Indeed. Confirmed on Ubuntu Gutsy/Hardy (switched repositories; not that many updates yet) as well as on Solaris Nevada 75a. 

Comment 5 Joanmarie Diggs (IRC: joanie) 2007-11-01 17:05:47 UTC
The hang seems to be the result of _getParent() which was added to StarOffice.py as part of bug 489490, in particular the call to pyatspi.findDescendant().
Comment 6 Rich Burridge 2007-11-01 20:38:28 UTC
This really is a major problem. Adjusting priority/severity accordingly.
Eitan, I'm assigning it to you if that's okay (as it was your patch).

Thanks.
Comment 7 Eitan Isaacson 2007-11-03 21:31:09 UTC
I'm not sure exactly what the bug is.

I opened the attached spreadsheet and was able to navigate. Could someone give clear steps for reproduction plus expected and given results?

What does 'File menu will just "show"' mean?
Comment 8 Joanmarie Diggs (IRC: joanie) 2007-11-03 21:36:57 UTC
If I launch oocalc version 2.3 with Orca running, I'm able to move around and type in cells, etc.  However Orca becomes completely non-responsive, both in Calc and in any other app I then give focus too.

Is Orca working for you under these conditions, or are you just able to navigate?
Comment 9 Rich Burridge 2007-11-03 22:27:50 UTC
Eitan, just try starting oocalc, then use the File->Open menu item
to read in the spreadsheet.

> What does 'File menu will just "show"' mean?

If you do Alt-f, to display the File menu, you should see about
a dozen menu items. What I was seeing was just the first one being
displayed. If you then hit the Down arrow repeatedly, the rest would
magically appear one at a time.
Comment 10 Rich Burridge 2007-11-05 18:24:13 UTC
I tested the latest patch to bug #489490:
http://bugzilla.gnome.org/attachment.cgi?id=98576&action=view

on Mike's spreadsheet. The Alt-f file menu problem seems to have
been fixed, but if I navigate the spreadsheet (speaking "by row"),
I get the following traceback:

Traceback (most recent call last):
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 588 in _processObjectEvent
    s.processObjectEvent(event)
  • File "/usr/lib/python2.5/site-packages/orca/script.py", line 297 in processObjectEvent
    self.listeners[key](event)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 2897 in onActiveDescendantChanged
    orca.setLocusOfFocus(event, child)
  • File "/usr/lib/python2.5/site-packages/orca/orca.py", line 204 in setLocusOfFocus
    orca_state.locusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 893 in locusOfFocusChanged
    newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/scripts/StarOffice.py", line 2026 in locusOfFocusChanged
    oldLocusOfFocus, newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 2091 in locusOfFocusChanged
    self.updateBraille(newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 2419 in updateBraille
    result = self.brailleGenerator.getBrailleRegions(obj)
  • File "/usr/lib/python2.5/site-packages/orca/braillegenerator.py", line 1521 in getBrailleRegions
    result = generator(obj)
  • File "/usr/lib/python2.5/site-packages/orca/scripts/StarOffice.py", line 330 in _getBrailleRegionsForTableCellRow
    self._script.getSpreadSheetRowRange(obj)
  • File "/usr/lib/python2.5/site-packages/orca/scripts/StarOffice.py", line 1121 in getSpreadSheetRowRange
    y = parent.extents.y
AttributeError: 'Accessible' object has no attribute 'extents'

This seems to be a separate problem though.
Comment 11 Rich Burridge 2007-11-05 18:46:11 UTC
Created attachment 98581 [details] [review]
Fix for the traceback in comment #10.

Speaking by row seems to work nicely again.
Comment 12 Rich Burridge 2007-11-05 18:48:02 UTC
Mike, I think this is ready for you to test. You are going to need to
apply the third attachment from this bug:
http://bugzilla.gnome.org/attachment.cgi?id=98581

and the latest attachment from Eitan for bug #489490
http://bugzilla.gnome.org/attachment.cgi?id=98576&action=view

I think you should be able to read your spreadsheet now.
Comment 13 Mike Pedersen 2007-11-05 20:32:07 UTC
seems to work great.  thanks much
Comment 14 Rich Burridge 2007-11-05 21:20:53 UTC
Patch committed. Moving the state to "[pending]".
Comment 15 Mike Pedersen 2007-11-06 17:23:23 UTC
works great 
Comment 16 Eitan Isaacson 2007-11-06 17:29:29 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.