Ticket #235 (reopened defect)

Opened 3 years ago

Last modified 2 years ago

Transcoding option enable: cpu usage 100% (at one cpu core) - version 0.6.4

Reported by: tava Assigned to: dev
Priority: major Milestone: 0.7
Component: MediaServer Server Version:
Keywords: Transcoding option cpu usage 100 percent Cc:

Description

When I enable the transcoding option I have a cpu usage of 100% (Dual core-system, only at one core). Only the fsstore plugin is enabled (with or without configured folders). When I disalbe transcoding option, my cpu usage is 0% (idle).

I use a gentoo box and use following packages:

[ebuild N ] dev-python/setuptools-0.6_rc9 247 kB [ebuild N ] dev-python/louie-1.1 22 kB [ebuild N ] net-zope/zopeinterface-3.4.1 113 kB [ebuild N ] dev-python/pyopenssl-0.6 USE="-doc" 279 kB [ebuild N ] dev-python/twisted-8.1.0 USE="crypt gtk -serial" 1,167 kB [ebuild N ] dev-python/configobj-4.5.3 USE="-doc" 0 kB [ebuild N ] dev-libs/check-0.9.5-r1 509 kB [ebuild N ] dev-libs/liboil-0.3.16 USE="examples -doc -test" 836 kB [ebuild N ] media-libs/gstreamer-0.10.22 USE="nls -test" 2,699 kB [ebuild N ] media-libs/gst-plugins-base-0.10.22 USE="nls -debug" 2,069 kB [ebuild N ] dev-python/gst-python-0.10.13 USE="-examples" 477 kB [ebuild N ] dev-python/twisted-web-8.2.0 325 kB [ebuild N ] dev-python/nevow-0.9.32 USE="-doc" 519 kB [ebuild N ] dev-python/gdata-1.2.4 USE="-examples" 779 kB [ebuild N ] dev-python/clientform-0.2.10 USE="-examples" 102 kB [ebuild N ] dev-python/mechanize-0.1.11 236 kB [ebuild N ] dev-python/pycrypto-2.0.1-r8 USE="-bindist -gmp -test" 151 kB [ebuild N ] dev-python/epsilon-0.5.11 95 kB [ebuild N ] dev-python/twisted-conch-8.2.0 183 kB [ebuild N ] dev-python/tagpy-0.94.5 147 kB [ebuild N ] dev-python/axiom-0.5.30 179 kB

My configuration file:

<config>

<plugin active="yes">

<!--content>music</content>

<content>video</content> <content>photos</content--> <uuid>a8d9e91f-d924-427a-8bca-bf95ed2c11cc</uuid> <name>HDD-Kombinat</name> <backend>FSStore</backend> </plugin>

<plugin active="no">

<uuid>f4d072cf-df7a-41ad-95e0-f4e746dc20e1</uuid>

<name>Apple Trailers</name> <backend>AppleTrailersStore?</backend> </plugin>

<plugin active="no">

<uuid>ba8c93fc-1ae2-4805-a0a2-cdbbb0ceb1b2</uuid>

<quality>hd</quality> <name>YouTube</name> <backend>YouTubeStore?</backend> </plugin>

<plugin active="no">

<uuid>f132491d-8e4c-4091-9290-85965fe86666</uuid>

<name>BBC</name> <refresh>1</refresh> <backend>BBCStore</backend> </plugin>

<plugin aactive="no">

<uuid>51c9b292-8d7f-42d7-b2d4-ad25d3aac8ca</uuid>

<name>InternetRadio?</name> <backend>IRadioStore</backend> </plugin>

<plugin active="no">

<uuid>f4fdf0cb-35c7-4297-bf80-0d82402bcf7f</uuid>

<name>LastFM</name> <backend>LastFMStore</backend> </plugin>

<plugin active="no">

<name>SWR3</name>

<opml>http://www.swr3.de/rdf-feed/podcast/</opml> <encoding>ISO-8859-1</encoding> <uuid>f3287719-42f4-44dc-99ae-7b904adecf66</uuid> <refresh>1</refresh> <backend>SWR3Store</backend> </plugin>

<controlpoint>yes</controlpoint> <use_dbus>no</use_dbus> <web-ui>yes</web-ui> <serverport>30020</serverport> <interface active="yes">eth0</interface> <transcoding>yes</transcoding>

</config>

Attachments

txt.txt (179.5 kB) - added by tava on 01.06.2009 14:05:25.
debug log

Change History

01.06.2009 14:05:25 changed by tava

  • attachment txt.txt added.

debug log

23.08.2009 11:01:00 changed by jono

I'm seeing the same problem on my Gentoo and I'm wondering if this is just a coincidence or is something else.

I dug it down to the twisted.internet.gtk2reactor module but I'm not sure why that gets enabled only with the transcoding.

24.08.2009 21:18:02 changed by jono

Try removing these lines from bin/coherence:

config.get('transcoding', 'no') == 'yes'):

try:

from twisted.internet import glib2reactor glib2reactor.install()

except AssertionError?:

print "error installing glib2reactor"

Note that transcoding still works (for me at least) without that reactor.

28.08.2009 09:59:16 changed by dev

  • status changed from new to closed.
  • resolution set to fixed.

We had that same issue some months ago on Mandriva. It was iirc related to a proper matching combination of python2.6, glib/gobject and/or their bindings python-glib or python-gobject.

With 'newer' versions/libs that issue seems to be gone.

15.09.2009 15:06:16 changed by philn

  • status changed from closed to reopened.
  • resolution deleted.

Reopening. The pygobject bug: https://bugzilla.gnome.org/show_bug.cgi?id=481569 is not entirely fixed.

24.11.2009 14:01:43 changed by jmsizun

  • component changed from Core to MediaServer Server.