[mythtv-commits] Ticket #6050: Mythweb dies on recording playback

MythTV mythtv at cvs.mythtv.org
Thu Jan 15 23:55:48 UTC 2009


#6050: Mythweb dies on recording playback
------------------------------------+---------------------------------------
 Reporter:  eric.bosch at comcast.net  |        Owner:  xris
     Type:  defect                  |       Status:  new 
 Priority:  minor                   |    Milestone:  0.22
Component:  mythweb                 |      Version:  head
 Severity:  medium                  |   Resolution:      
  Mlocked:  0                       |  
------------------------------------+---------------------------------------

Comment(by sphery <mtdean at thirdcontact.com>):

 The code in stream.pl that was written to check whether the Perl bindings
 are available was supposed to fail gracefully if they were not available.
 However, they don't:

 {{{
 [Thu Jan 15 18:01:12 2009] [error] [client 192.168.0.88] BEGIN failed--
 compilation aborted at modules/stream/tv.pl line 17.
 [Thu Jan 15 18:01:12 2009] [error] [client 192.168.0.88] Compilation
 failed in require at modules/stream/handler.pl line 17.
 [Thu Jan 15 18:01:12 2009] [error] [client 192.168.0.88] Compilation
 failed in require at /srv/www/htdocs/myth/mythweb.pl line 65.
 [Thu Jan 15 18:01:12 2009] [error] [client 192.168.0.88] Premature end of
 script headers: mythweb.pl
 }}}

 Therefore, currently, the asx streaming code requires that the Perl
 bindings be installed on the MythWeb host and that they must be functional
 for the user running the web server.  This means that user must have a
 valid HOME directory inside which the Perl bindings can find a
 ${HOME}/.mythtv directory (i.e. no /dev/null or otherwise inaccessible
 /not-writable HOME directory).  If either of these conditions is untrue,
 the asx streaming does not work.

 The attached patch changes the eval block to use the "statement" format to
 trap otherwise-fatal errors (specifically the lines associated with
 finding the config file).  See
 http://www.perl.com/doc/manual/html/pod/perlfunc/eval.html for more.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/6050#comment:2>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list