Opened 13 years ago
Closed 13 years ago
Last modified 13 years ago
#10837 closed Bug Report - General (fixed)
Script using System class of python bindings python process runs at 100% CPU while performing task
| Reported by: | Owned by: | Raymond Wagner | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.25.2 |
| Component: | Bindings - Python | Version: | 0.25-fixes |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
The calling python process runs at 100% while performing a task via the System class
Script is based on transcode_stub.py
Issue appears to be in the _PollingThread subclass of DequeBuffer in the run function
The timeout in the poll call of the for loop is given as 0.1 (0.25-fixes update) but this poll function parameter is in milliseconds (python 2.7 online documentation). Probably 0.1 seconds was meant, ie 100 milliseconds
Changing the line
for fd,event in poller.poll(0.1):
to
for fd,event in poller.poll(100.0):
fixes problem
Change History (3)
Note:
See TracTickets
for help on using tickets.

In 76433930fed60342a4b2929c6ff94a8413673e5b/mythtv: