GNOME Bugzilla – Bug 588819
'import ldtp' freezes interpreter
Last modified: 2009-07-24 03:54:10 UTC
Please describe the problem: I've tried this with python 2.5 and 2.6 as well. When I import ldtp from python, the interpreter just hangs, and will not accept further input. Steps to reproduce: 1. 'import ldtp' from python Actual results: interpreter hangs Expected results: doesn't hang Does this happen every time? yes Other information: I did an strace on the python process and saw this: Process 2752 attached - interrupt to quit futex(0x891106c, FUTEX_WAIT_PRIVATE, 1, NULL^C <unfinished ...> I also bisected and found that it started failing with this patch: I've verified that this bug exists in upstream as well, and bisected to find the offending changeset: b905802d4ef2cabba38863aafaf4231139f57c71 is first bad commit commit b905802d4ef2cabba38863aafaf4231139f57c71 Author: nags <nags@nags-desktop.(none)> Date: Sun May 10 00:48:03 2009 -0700 2009-05-10 Nagappan Alagappan <nagappan@gmail.com> * ldtputils.py (GtkImportThread): Added new class which helped LDTP to work as earlier in performance. But this one broke the wnck get window list. Need to investigate. :040000 040000 4be4a8071acbac68d05c92fc592f0ae315d362f3 7afba2e5e432a26f56955b36a0bd57219a83ea5c M python
Created attachment 139122 [details] [review] Fixes the hang For some reason, for the first time when we try to take the screenshot of specific window, the window doesn't get focused. On second time onwards, the window gets focus. Not sure why. Good, it doesn't hang the python prompt now
Thanks for the bug report. Fixed in git head.