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 640134 - Orca should handle pyatspi2 RuntimeError's more gracefully
Orca should handle pyatspi2 RuntimeError's more gracefully
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.91.x
Other All
: Normal normal
: ---
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-21 04:28 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2011-03-25 23:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joanmarie Diggs (IRC: joanie) 2011-01-21 04:28:11 UTC
(From a related email conversation with Mike Gorse)

It seems that whereas pyatspi raises LookupErrors when an AT attempts to access an object which no longer exists, pyatspi2 raises RuntimeErrors. As a result, with pyatspi2, Orca can become unresponsive.

Sadly, accessible objects go away on us fairly often. We handle the LookupError's explicitly. Perhaps we need to do the same for these RuntimeError's.
Comment 1 Joanmarie Diggs (IRC: joanie) 2011-03-22 20:21:38 UTC
hi Folks,

Found the following traceback which should be catched :-).

Traceback (most recent call last):
  • File "/usr/local/lib64/python2.6/site-packages/orca/generator.py", line 249 in generate
    globalsDict[arg] = self._methodsDict[arg](obj, **args)
  • File "/usr/local/lib64/python2.6/site-packages/orca/speech_generator.py", line 1249 in _generateNewNodeLevel
    oldLevel = self._script.utilities.nodeLevel(args.get('priorObj', None))
  • File "/usr/local/lib64/python2.6/site-packages/orca/script_utilities.py", line 1109 in nodeLevel
    relations = node.getRelationSet()
  • File "/usr/lib64/python2.6/site-packages/gtk-2.0/gi/types.py", line 40 in function
    return info.invoke(*args)
RuntimeError: The application no longer exists
I use at-spi2, orca-git with gnome 2.32.

BR.
Halim
Comment 2 Joanmarie Diggs (IRC: joanie) 2011-03-25 23:03:45 UTC
This hopefully is all of them.

http://git.gnome.org/browse/orca/commit/?id=96b325d394387b481d5af004291a6fdd6fb615dc