python hangs with 100% CPU when running automated desktop testing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ldtp (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
python-defaults (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Since 2011-01-07 python hangs with 100% CPU when running automated desktop tests.
Only SIGKILL have effect.
The window of the application under test can be closed manually but a ps shows a defunct process.
This can be reproduced with totem, banshee and gwibber on 3 different systems.
For desktop testing we use ldtp and mago, this is reproducible with versions 2.0.6 and 2.1.0 of ldtp.
You'll find in attachment the update history of one of the affected system.
TESTCASE:
1. Get mago and the testsuite
$ bzr get lp:mago
$ bzr get lp:~mago-contributors/mago/mago-testsuite
2. Run the totem playback test
$ ./mago/bin/mago ./mago-
RESULT:
The test hangs after having played the sound.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: python 2.7.1-0ubuntu5
ProcVersionSign
Uname: Linux 2.6.37-12-generic i686
Architecture: i386
Date: Wed Jan 19 15:21:00 2011
EcryptfsInUse: Yes
PackageArchitec
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.utf8
LC_MESSAGES=
SHELL=/bin/bash
SourcePackage: python-defaults
description: | updated |
I ran the totem test suite while monitoring CPU usage. Usage averaged below 50% (on a moderately powered laptop) and peaked momentarily at ~80% when playing the tone. After test completed CPU usage went back to idle.