After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 588819 - 'import ldtp' freezes interpreter
'import ldtp' freezes interpreter
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: pyldtp
1.6.0
Other All
: Normal blocker
: ---
Assigned To: Nagappan Alagappan
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2009-07-16 22:09 UTC by Paul Larson
Modified: 2009-07-24 03:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixes the hang (8.16 KB, patch)
2009-07-23 22:50 UTC, Nagappan Alagappan
committed Details | Review

Description Paul Larson 2009-07-16 22:09:55 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
Comment 1 Nagappan Alagappan 2009-07-23 22:50:48 UTC
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
Comment 2 Nagappan Alagappan 2009-07-24 03:54:10 UTC
Thanks for the bug report. Fixed in git head.