[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AG-TECH] Video Producer Service fails to start



Mike:

I'm able to reproduce that problem with the VideoProducerService and
the AudioService.  It comes down to a bad check in the service code,
where it wants to start the service even though it doesn't have any
stream information.  The error is certainly misleading, but it is
harmless.  Does everything function fine once you enter a Venue?

We'll silence the misleading error in the code.

Tom


On 2/9/07 6:15 AM, Mike Weaver wrote:
Chris,
It's 'fixed' in the sense that I'm successfully using the VideoService
now instead of the VideoProducerService, but it's a hard error in the
VPS, every time.

The problem occurs when configuring the node, specifically when I try to
enable the video.  I haven't even gotten to a venue yet.

Mike

-----Original Message-----
From: Christoph Willing [mailto:willing@xxxxxxxxxxxxxxxx] Sent: Friday, February 09, 2007 01:39
To: weaver@xxxxxxxxxxxx
Cc: ag-tech@xxxxxxxxxxx; Douglas Kosovic
Subject: Re: [AG-TECH] Video Producer Service fails to start



On 02/02/2007, at 9:56 PM, Mike Weaver wrote:

Apologies if this shows up twice, but it's been almost 18 hours, nobody's
queues run that long! Also, Chris & Doug, I hope you don't mind me copying
you directly.


Mike,

There's no clear answer yet, but we've seen the problem occasionally on multiple systems, ruling out a distribution related solution.

Can the problem be consistently reproduced? One thing I've noticed is that sometimes the problem has just gone away if I come back to it another day.

Another thing to try is to re-enter the venue. This updates the stream information in the VenueClient from the venue i.e. the service in question may then be using "better" stream information.


chris




-----Original Message-----
From: Mike Weaver [mailto:weaver@xxxxxxxxxxxx]
Sent: Thursday, February 01, 2007 13:29
To: 'AG-TECH list'
Subject: RE: [AG-TECH] Video Producer Service fails to start

Hi all,

I finally had time to start looking at this again. This problem is in
reference to AG 3.0.2 on Fedora Core 6. The actual error (detailed below)
is


VideoProducerService.py", line 279, in Start
    if self.streamDescription.encryptionFlag != 0:
AttributeError: 'int' object has no attribute 'encryptionFlag'

Python seems to be misinterpreting the data type of the streamDescription
object. Hacks to comment out this check, or surround it with a 'hasattr'
check only cause failures further in the code.


The really annoying thing about this, is that the AudioService.py module
(different machine) has almost identical code and runs fine. The audio &
video machines use the same motherboard, BIOS, chipsets, etc... Both are
fresh installs of Fedora Core 6, fully patched with the latest AG3 & 2.4
compatibility RPMs from the UQ repository. All python packages are
identical, same packages, same versions.


I'm no python guru, but I have a (outdated) software development background
and I just can't understand how this can be. Same platform, same OS, same
libraries, same versions, same code - different results.


Anyone out there have any ideas? I'm willing to try other Linux distros,
but we run RHEL on our production servers so I'd like to stay with Fedora
for consistency's sake.


I've attached both the AudioService.log & VideoProducerService.log files for
review & comparison.


Thanks,

Mike

-----Original Message-----
From: Rhys Hawkins [mailto:rhys.hawkins@xxxxxxxxxx]
Sent: Tuesday, November 14, 2006 17:32
To: Christoph Willing
Cc: weaver@xxxxxxxxxx; AG-TECH list
Subject: Re: [AG-TECH] Video Producer Service fails to start


Hi Chris, Mike,

This looks like the same thing that bit me when testing UQs h263 stuff.
If the streamDescription is an int, then the VideoProducer service
doesn't stand much of a chance being able to start. It appears to be
a bug that rears its ugly head when you least expect it, ie I've just
tested this again and now I don't see the same problem ...


It would be interesting to know if this is restricted to Fedora or if
it occurs on other ports.

Cheers,
    Rhys

On Wed, 15 Nov 2006 08:11:12 +1000
Christoph Willing <willing@xxxxxxxxxxxxxxxx> wrote:

On 15/11/2006, at 6:16 AM, Mike Weaver wrote:
[]
The relevant part of the VideoProducerService.log seems to be:

11/14/06 14:45:05 -1225061488 Toolkit VideoProducerService.py:
309 ERROR
Exception in VideoProducerService.Start
Traceback (most recent call last):
File
"/home/micsag/.AccessGrid3/local_services/VideoProducerService/
VideoProducer
Service.py", line 279, in Start
if self.streamDescription.encryptionFlag != 0:
AttributeError: 'int' object has no attribute 'encryptionFlag'
Mike,

A short term fix is to edit the file .AccessGrid3/local_services/
VideoProducerService/VideoProducerService.py by changing the line:
	if self.streamDescription.encryptionFlag != 0:
to
	if hasattr(self.streamDescription, 'encryptionFlag') and
self.streamDescription.encryptionFlag != 0:



chris


Christoph Willing +61 7 3365 8350 QCIF Access Grid Manager University of Queensland



<AudioService.log>
<VideoProducerService.log>

Christoph Willing +61 7 3365 8350 QCIF Access Grid Manager University of Queensland