get_children_by_type() crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopilot-gtk |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I am evaluating autopilot for GTK programs (so this might be an autopilot-gtk bug). I have this simple test:
$ cat autopilot_
from autopilot.testcase import AutopilotTestCase
from autopilot.
class Evince(
def setUp(self):
def test_children(
print '---- children ----'
print self.applicatio
print '---- child 0 ----'
print dir(self.
# crashes:
print '---- EvWindow children ----'
print self.applicatio
-------
The last line causes the Evince window to crash/hang; I get two metric tons of
** (evince:27302): WARNING **: unsupported type: GtkContainer
for every Gtk data type, and at the end
Traceback (most recent call last):
File "/home/
print self.applicatio
File "/usr/lib/
instances = self.get_children()
File "/usr/lib/
state_dicts = self.get_
File "/usr/lib/
).GetState(
File "/usr/lib/
return self._proxy_
File "/usr/lib/
**keywords)
File "/usr/lib/
message, timeout)
DBusException: org.freedesktop
(complete output is in attachment).
However, this seems to work:
print self.applicatio
Fixed in current trunk (and in the autolanding in saucy).