autopilot vis fails with: autopilot.introspection.dbus.StateNotFoundError

Bug #1281688 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
XPathSelect
High
Unassigned
autopilot (Ubuntu)
Undecided
Unassigned
xpathselect (Ubuntu)
Undecided
Unassigned

Bug Description

When introspecting large application like qtcreator, autopilot vis fails with:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/autopilot/vis/main_window.py", line 133, in tree_item_changed
    self.detail_widget.tree_node_changed(proxy)
  File "/usr/lib/python2.7/dist-packages/autopilot/vis/objectproperties.py", line 64, in tree_node_changed
    self.widget(i).new_node_selected(new_node)
  File "/usr/lib/python2.7/dist-packages/autopilot/vis/objectproperties.py", line 123, in new_node_selected
    object_details = node.get_properties()
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 246, in get_properties
    self.refresh_state()
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 472, in refresh_state
    _, new_state = self.get_new_state()
  File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 562, in get_new_state
    raise StateNotFoundError(self.__class__.__name__, id=self.id)
autopilot.introspection.dbus.StateNotFoundError: State not found for class 'Core::Internal::MainWindow' and filters {'id': 3}.

TEST CASE
1. Install qtcreator
2. Run: autopilot launch qtcreator
3. Run: autopilot vis
4. In vis select qtcreator
5. Browser the widget tree

ACTUAL RESULT
Lot of widget can not be instrospected and fail with StateNotFound

EXPECTED RESULT
User can introspect the whole tree

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: python-autopilot 1.4+14.04.20140213-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-8.28-generic 3.13.2
Uname: Linux 3.13.0-8-generic x86_64
ApportVersion: 2.13.2-0ubuntu4
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Feb 18 09:19:29 2014
InstallationDate: Installed on 2013-09-03 (167 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
PackageArchitecture: all
SourcePackage: autopilot
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Christopher Lee (veebers) wrote :

This is an issue with xpathselect related to the colons in the name (i.e. Internal::MainWindow).

I have a branch fix for this, in progress . . .

Changed in xpathselect:
assignee: nobody → Christopher Lee (veebers)
status: New → In Progress
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xpathselect - 1.4+14.04.20140303-0ubuntu1

---------------
xpathselect (1.4+14.04.20140303-0ubuntu1) trusty; urgency=low

  [ Christopher Lee ]
  * Node names can now contain colons (so names like
    Internal::MainWindow work). Tests added. (LP: #1281688)
 -- Ubuntu daily release <email address hidden> Mon, 03 Mar 2014 04:45:23 +0000

Changed in xpathselect (Ubuntu):
status: New → Fix Released
Revision history for this message
Anastasia (anastasia-macmood) wrote :

I am pretty sure that veebers is not working on this bug.

Changed in xpathselect:
assignee: Christopher Lee (veebers) → nobody
status: In Progress → New
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers