Autopilot Bamf window geometry property causes crash

Bug #1234478 reported by Marco Trevisan (Treviño) on 2013-10-03
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Autopilot
High
Marco Trevisan (Treviño)
autopilot (Ubuntu)
Undecided
Unassigned
Saucy
Undecided
Unassigned

Bug Description

traceback-1: {{{
Traceback (most recent call last):
  File "/home/marco/Dev/unity/trunk/tests/autopilot/unity/tests/test_panel.py", line 986, in test_menu_closes_on_new_focused_application
    menu_entry = self.open_app_and_get_menu_entry()
  File "/home/marco/Dev/unity/trunk/tests/autopilot/unity/tests/test_panel.py", line 938, in open_app_and_get_menu_entry
    self.open_new_application_window("Calculator")
  File "/home/marco/Dev/unity/trunk/tests/autopilot/unity/tests/test_panel.py", line 69, in open_new_application_window
    self.move_window_to_panel_monitor(app_win)
  File "/home/marco/Dev/unity/trunk/tests/autopilot/unity/tests/test_panel.py", line 101, in move_window_to_panel_monitor
    drag_window_to_screen(window, self.panel_monitor)
  File "/home/marco/Dev/unity/trunk/tests/autopilot/unity/emulators/X11.py", line 56, in drag_window_to_screen
    (win_x, win_y, win_w, win_h) = window.geometry
  File "/usr/lib/python2.7/dist-packages/autopilot/process/_bamf.py", line 489, in geometry
    get_display(), self._xid).get_origin()
TypeError: argument display: Expected Gdk.Display, but got Xlib.display.instance
}}}

Related branches

PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:autopilot/1.3 at revision 346, scheduled for release in autopilot, milestone Unknown

Changed in autopilot:
status: In Progress → Fix Committed
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:autopilot at revision 347, scheduled for release in autopilot, milestone 1.4

Launchpad Janitor (janitor) wrote :
Download full text (3.7 KiB)

This bug was fixed in the package autopilot - 1.4+14.04.20131106.1-0ubuntu1

---------------
autopilot (1.4+14.04.20131106.1-0ubuntu1) trusty; urgency=low

  [ Jean-Baptiste Lallement ]
  * Forward port changes from 1.3.

  [ Marco Trevisan (Treviño) ]
  * Bamf: pass Gdk.Display to GdkX11.X11Window.foreign_new_for_display.
    (LP: #1234478)

  [ Automatic PS uploader ]
  * Remove a spurious log message. (LP: #1227852)

  [ Andy Doan ]
  * Forward port changes from 1.3.

  [ Jamie Strandboge ]
  * Forward port apparmor rules and functional test fixes.

  [ Christopher Lee ]
  * Forward port changes from 1.3.
  * Backout additions for logging when a process dies.
  * Update the autopilot funcational tests so they work under python 3.
    (LP: #1232973)
  * Changes how the proxy objects are created so the inheritance is
    correct . (LP: #1230046)
  * Keyboard backends: Add alias so Backspace and BackSpace work. . (LP:
    #1237675)
  * Fixes issue where a classes _Backend can be None causes uncaught
    exceptions. (LP: #1233972)
  * Add details to select_many docs re: order of objects returned not
    guaranteed. (LP: #1248336)

  [ Thomi Richards ]
  * Forward port changes from 1.3.
  * Remove a spurious log message. (LP: #1227852)
  * Forward port apparmor rules and functional test fixes.
  * Fix a missing test dependency, and add more logging when a process
    exits before we find the introspection interface.
  * Fix 1.4 documentation to include type ids in the examples. (LP:
    #1230038)
  * Forward port wait_select_single method (and associated changes &
    tests) to 1.4. (LP: #1231694)
  * Update autopilot documentation to fix porting guide, and add several
    objects to the documentation index. (LP: #1231690, #1230038)
  * Add support for 3D points. (LP: #1227131)
  * Make the default help text more useful. (LP: #1224771)
  * Add a warning when an autopilot query returns many items, and should
    probably be optimised. (LP: #1227830)
  * Update packaging details so upgrading from 1.3 -> 1.4 is seamless.
    (LP: #1227797)
  * Log an 'info' message when we set an environment variable, and when
    we delete one. (LP: #1236097)
  * Changes how the proxy objects are created so the inheritance is
    correct . (LP: #1230046)
  * Fixes issue where a classes _Backend can be None causes uncaught
    exceptions. (LP: #1233972)
  * Make client-side attribute reprs the same as their python types.
    (LP: #1237039)
  * Use the 'six' python module to help us get python 2/3 compatibility,
    rather than rolling our own. (LP: #1238257)
  * Fix documentation next/prev links. (LP: #1231690, #1239493,
    #1230038)
  * Add documentation for the autopilot type support for 3D points.

  [ Martin Pitt ]
  * Forward port changes from 1.3.

  [ Corey Goldberg ]
  * add tox config and packaging fixes.
  * added flake8 static test from tox and fixed lint errors.
  * unit tests only from tox.
  * make sphinx docs pretty.
  * updates and minor fixes to documentation. also added a short README.

  [ Leo Arias ]
  * Added the logging annotation to be used on emulators.

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 357

autopilot (1.4+14...

Read more...

Changed in autopilot (Ubuntu):
status: New → Fix Released
Thomi Richards (thomir) on 2013-11-07
Changed in autopilot:
milestone: none → 1.4
status: Fix Committed → Fix Released
Rolf Leggewie (r0lf) wrote :

saucy has seen the end of its life and is no longer receiving any updates. Marking the saucy task for this ticket as "Won't Fix".

Changed in autopilot (Ubuntu Saucy):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers