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 444860 - Traceback from Orca when quitting Firefox from the www.google.com webpage.
Traceback from Orca when quitting Firefox from the www.google.com webpage.
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.19.x
Other Linux
: Normal normal
: 2.20.0
Assigned To: Orca Maintainers
Orca Maintainers
Depends on:
Blocks: 404403
 
 
Reported: 2007-06-06 19:43 UTC by Rich Burridge
Modified: 2008-07-22 19:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rich Burridge 2007-06-06 19:43:03 UTC
Found whilst working on Orca bug #435199:

Steps to reproduce:

1/ Start up Orca
2/ Statup Firefox 3.0(alpha) with www.google.com as the home page.
3/ Quit Firefox with Alt-f, "q"

Orca generates the following two tracebacks:


  • File "<string>", line 1 in <module>
  • File "/usr/lib/python2.5/site-packages/orca/orca.py", line 1466 in main
    start(registry) # waits until we stop the registry
  • File "/usr/lib/python2.5/site-packages/orca/orca.py", line 1151 in start
    registry.start()
  • File "/usr/lib/python2.5/site-packages/orca/atspi.py", line 158 in start
    bonobo.main()
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 799 in _dequeueEvent
    self._processObjectEvent(event)
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 581 in _processObjectEvent
    s.processObjectEvent(event)
  • File "/usr/lib/python2.5/site-packages/orca/script.py", line 252 in processObjectEvent
    self.listeners[key](event)
  • File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 2898 in onFocus
    default.Script.onFocus(self, event)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 2290 in onFocus
    orca.setLocusOfFocus(event, newFocus)
  • File "/usr/lib/python2.5/site-packages/orca/orca.py", line 196 in setLocusOfFocus
    orca_state.locusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/focus_tracking_presenter.py", line 899 in locusOfFocusChanged
    newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 3166 in locusOfFocusChanged
    self.updateBraille(newLocusOfFocus)
  • File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 3272 in updateBraille
    max(0, lineContentsOffset))
  • File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 5611 in getLineContentsAtOffset
    self.findPreviousCaretInOrder(obj, characterOffset)
  • File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 5164 in findPreviousCaretInOrder
    includeNonText)
  • File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 5170 in findPreviousCaretInOrder
    obj.parent.child(index),
  • File "/usr/lib/python2.5/site-packages/orca/atspi.py", line 1390 in child
    debug.printStack(debug.LEVEL_WARNING)
  • File "/usr/lib/python2.5/site-packages/orca/debug.py", line 146 in printStack
    traceback.print_stack(None, 100, debugFile)
Child at index 0 is not an Accessible

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 5172, in findPreviousCaretInOrder
    includeNonText)
  File "/usr/lib/python2.5/site-packages/orca/Gecko.py", line 5139, in findPreviousCaretInOrder
    elif obj.childCount and obj.child(obj.childCount - 1):
AttributeError: 'NoneType' object has no attribute 'childCount'
Comment 1 Joanmarie Diggs (IRC: joanie) 2007-06-06 19:46:18 UTC
I just checked in a fix for the NoneType error.  That leaves what to do about getting a focus: event for an object and then having that object go away on us.
Comment 2 Willie Walker 2007-06-19 15:16:50 UTC
(In reply to comment #1)
> I just checked in a fix for the NoneType error.  That leaves what to do about
> getting a focus: event for an object and then having that object go away on us.

I'm trying to reproduce this and cannot do so.  But, I notice that the stack trace is purposely output by Orca at LEVEL_WARNING, meaning we handle it gracefully.
Comment 3 Rich Burridge 2007-06-26 15:41:51 UTC
Will and I discussed this one this morning. I think it's okay to
just close it out now thanks Joanie.
Comment 4 Joanmarie Diggs (IRC: joanie) 2007-06-26 19:43:46 UTC
Okie dokie.  Done.