Bug 586237

Summary: accerciser and strongwind test couldn't be running remotely after upgrade at-spi-1.28 to 1.29
Product: [Mono] UI Automation Reporter: calen chen <cachen>
Component: Client - AT-SPIAssignee: E-mail List <mono-a11y-bugs>
Status: NEW --- QA Contact: E-mail List <mono-a11y-qa>
Severity: Normal    
Priority: P3 - Medium CC: mgorse
Version: Release 2.0   
Target Milestone: Release 2.1   
Hardware: All   
OS: openSUSE 11.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description calen chen 2010-03-08 12:30:29 UTC
REPRO:
2 machines A and B
1. on A: I reinstalled opensuse11.2 with at-spi-1.28, and at-spi-registryd started
2. on B: running 'ssh -o ConnectTimeout=15 a11y@147.2.297.219 DISPLAY=:0 accerciser' (a11y@147.2.297.219 is username and ip of A), that accerciser is running on A, everything looks well.
3. on A: upgrade at-spi-1.28 to at-spi-1.29 of 2.0 release, install python-atspi-corba
4. on A: copy '/usr/lib/gtk-2.0/modules/at-spi-corba/modules/libatk-bridge.so' to '/usr/lib/gtk-2.0/modules/libatk-bridge.so', copy '/usr/lib/python2.6/site-packages/pyatspi_corba/' to '/usr/lib/python2.6/site-packages/pyatspi', because I didn't install at-spi2
5. on A: enable at-spi-corba in gconf-editor, logout system
6. on B: back to run step2, got RuntimeError

PROBLEMS:

** (accerciser:5541): WARNING **: AT-SPI: Accessibility bus not found - Using session bus.


** (accerciser:5541): WARNING **: Trying to register gtype 'WnckWindowState' as flags when in fact it is of type 'GEnum'

** (accerciser:5541): WARNING **: Trying to register gtype 'WnckWindowActions' as flags when in fact it is of type 'GEnum'

** (accerciser:5541): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as flags when in fact it is of type 'GEnum'
Traceback (most recent call last):
  File "/usr/bin/accerciser", line 52, in <module>
    accerciser.main()
  File "/usr/lib/python2.6/site-packages/accerciser/__init__.py", line 35, in main
    main = Main()
  File "/usr/lib/python2.6/site-packages/accerciser/accerciser.py", line 63, in __init__
    self.node = Node()
  File "/usr/lib/python2.6/site-packages/accerciser/node.py", line 68, in __init__
    self.desktop = pyatspi.Registry.getDesktop(0)
  File "/usr/lib/python2.6/site-packages/pyatspi/registry.py", line 331, in __getattribute__
    raise RuntimeError('Could not find or activate registry')
RuntimeError: Could not find or activate registry

EXPECTED RESULTS:

expect accerciser and strongwind can be running remotely

COMMENTS:

I am sure it work very well with at-spi-1.28.0-2.4, no idea why it doesn't work with at-spi-1.29, please help take a look, thanks!
Comment 1 Michael Gorse 2010-03-08 16:29:29 UTC
I'm not sure what could be going on off-hand.  The "AT-SPI Accessibility bus not found - Using session bus" message is a warning that is currently displayed by the at-spi2 version of libatk-bridge.so, so somehow accerciser is running it, although it is using the CORBA version of pyatspi.

Do you get this warning if you, say, run gedit on machine A?  If so, I'd suggest trying running it under strace to figure out where gtk is looking for libatk-bridge.so.
Comment 2 calen chen 2010-03-08 18:13:43 UTC
please ignore "** (accerciser:5541): WARNING **: AT-SPI: Accessibility bus not found - Using session bus.", I copied the message from machine which have installed both at-spi1 and at-spi2, sorry for that. 
but whether at-spi2 is installed or not, RuntimeError would occurred.