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 528617 - __accessible.getChildAtIndex does not return
__accessible.getChildAtIndex does not return
Status: RESOLVED INCOMPLETE
Product: dogtail
Classification: Deprecated
Component: Framework
CVS HEAD
Other All
: Normal blocker
: ---
Assigned To: Dogtail Maintainers
Dogtail Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-17 17:41 UTC by Maximilian Mehnert
Modified: 2009-01-19 08:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Maximilian Mehnert 2008-04-17 17:41:08 UTC
Please describe the problem:
debugging dogtail, I ended up in tree.py.
This snippet is around line 465 of tree.py.

        elif attr == "children":
            if self.__hideChildren: return
            children = []
            for i in xrange (self.__accessible.getChildCount ()):
                if isinstance(self, Root):
                    try: a = self.__accessible.getChildAtIndex (i)
                    except atspi.SpiException:
                        import traceback
                        logger.log(traceback.format_exc())
                else: a = self.__accessible.getChildAtIndex (i)

At some point, I can see
try: a = self.__accessible.getChildAtIndex (i)
getting called but then it never returns.

Is this somehow known or can anyone suggest howto debug this further?


Steps to reproduce:
1. setup: debian system
at-spi 1.22.1-1
python-at-spi 0.6.1-1.1
python-dogtail 0.6.1-3 or subversion head
2. run sniff or recorder
3. they get stuck in the line mentioned above


Actual results:


Expected results:


Does this happen every time?
yes

Other information:
Comment 1 Maximilian Mehnert 2008-04-17 17:47:04 UTC
using strace, I can see that it's a call to poll() that does not return. 

read(24, "GIOP\1\2\1\0010\0\0\0", 12)   = 12
read(24, "\360C\337\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1"..., 48) = 48
writev(24, [{"GIOP\1\2\1\0T\0\0\0", 12}, {"0A\337\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0 :\f`\5\32h"..., 84}], 2) = 96
poll([{fd=4, events=POLLIN}, {fd=11, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=17, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN|POLLPRI}, {fd=20, events=POLLIN|POLLPRI}, {fd=21, events=POLLIN|POLLPRI}, {fd=22, events=POLLIN|POLLPRI}, {fd=23, events=POLLIN|POLLPRI}, {fd=24, events=POLLIN|POLLPRI, revents=POLLIN}], 12, -1) = 1
read(24, "GIOP\1\2\1\0010\0\0\0", 12)   = 12
read(24, "0A\337\277\0\0\0\0\1\0\0\0\1\0\0\0\f\0\0\0\1\1\1\1\1\0"..., 48) = 48
writev(17, [{"GIOP\1\2\1\0`\0\0\0", 12}, {"PI\337\277\3\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\366\226T\320"..., 96}], 2) = 108
poll(
Comment 2 Zack Cerza 2008-06-13 14:39:49 UTC
You say you've reproduced it with dogtail svn. Can you try again and post a traceback? Note that dogtail-svn doesn't use python-at-spi (from the pyspi source package) but uses new python bindings from the at-spi source package called (on Fedora) at-spi-python.
Comment 3 Christoph Wurm 2009-01-19 08:51:43 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!