Will not play music

Bug #595946 reported by becatlibra
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zeya
Fix Committed
Medium
Phil Sung

Bug Description

Installed by cloning from git
Ubuntu 9.04
Python 2.6.2

When I initial loaded my collection I received the following output:

./zeya.py --path=/music
Using 'dir' backend.
Scanning for music in '/music'...
TagLib: MPEG::Properties::read() -- Could not find a valid last MPEG frame in the stream.
TagLib: MPEG::Properties::read() -- Could not find a valid last MPEG frame in the stream.
TagLib: MPEG::Properties::read() -- Could not find a valid last MPEG frame in the stream.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.

SO I thought I would try just one folder:

./zeya.py --path=/music/Various\ Artists/
Using 'dir' backend.
Scanning for music in '/music/Various Artists'...
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
TagLib: ID3v2.4 no longer supports the frame type TSIZ. It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TSIZ. It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TSIZ. It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TSIZ. It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TSIZ. It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TSIZ. It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TSIZ. It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TSIZ. It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TSIZ. It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TSIZ. It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TSIZ. It will be discarded from the tag.
TagLib: MPEG::Header::parse() -- Invalid sample rate.
Loading library...
Listening on port 8080

It finally loaded (not sure if the invalid sample rate is due to lack of support for vbr or what).

I opened the application in my browser (firefox 3.6.3) and tried to play a song and received:

localhost - - [18/Jun/2010 09:25:54] "GET / HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:54] "GET /zeya.css HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:54] "GET /zeya.js HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:55] "GET /favicon.png HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:55] "GET /previous.png HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:55] "GET /play.png HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:55] "GET /pause.png HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:55] "GET /next.png HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:55] "GET /spinner.gif HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:55] "GET /repeat.png HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:55] "GET /shuffle.png HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:55] "GET /search.png HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:55] "GET /getlibrary HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:25:58] "GET /favicon.png HTTP/1.1" 200 -
localhost - - [18/Jun/2010 09:26:04] "GET /getcontent?key=0 HTTP/1.1" 200 -
Handling request for /music/Various Artists/Combustible Edison And Esquivel - Miniskirt.mp3
----------------------------------------
Exception happened during processing of request from ('::1', 37039, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python2.6/SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
    self.handle()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "./zeya.py", line 134, in do_GET
    self.serve_content(urllib.unquote(self.path[12:]))
  File "./zeya.py", line 199, in serve_content
    backend.get_content(key, self.wfile, bitrate)
  File "/home/benito/zeya/backends.py", line 171, in get_content
    filename_to_stream(filename, out_stream, bitrate, buffered)
  File "/home/benito/zeya/backends.py", line 86, in filename_to_stream
    stdout=os.fdopen(write_fd, 'wb'))
  File "/usr/lib/python2.6/subprocess.py", line 595, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1092, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
----------------------------------------

So I tried another:

localhost - - [18/Jun/2010 09:26:41] "GET /getcontent?key=2 HTTP/1.1" 200 -
Handling request for /music/Various Artists/20th Century Masters- The Best of 80's Pop (2007)/(02) - The Pretenders - Back On The Chain Gang.mp3
----------------------------------------
Exception happened during processing of request from ('::1', 37042, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python2.6/SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
    self.handle()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "./zeya.py", line 134, in do_GET
    self.serve_content(urllib.unquote(self.path[12:]))
  File "./zeya.py", line 199, in serve_content
    backend.get_content(key, self.wfile, bitrate)
  File "/home/benito/zeya/backends.py", line 171, in get_content
    filename_to_stream(filename, out_stream, bitrate, buffered)
  File "/home/benito/zeya/backends.py", line 86, in filename_to_stream
    stdout=os.fdopen(write_fd, 'wb'))
  File "/usr/lib/python2.6/subprocess.py", line 595, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1092, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
----------------------------------------

Nothing seems to want to play

Revision history for this message
Kymair Wu (kymair) wrote :

I've encountered the same error..
I was thinking maybe it was caused by space within the path, however it still didn't work after I changed the filename, checked the permission..

Handling request for /srv/music/10.Hey_Stephen.mp3
----------------------------------------
Exception happened during processing of request from ('::ffff:10.222.48.55', 48078, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python2.6/SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
    self.handle()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "/srv/software/zeya/zeya.py", line 134, in do_GET
    self.serve_content(urllib.unquote(self.path[12:]))
  File "/srv/software/zeya/zeya.py", line 183, in serve_content
    backend.get_content(key, output_file, bitrate, buffered=True)
  File "/srv/software/zeya/backends.py", line 171, in get_content
    filename_to_stream(filename, out_stream, bitrate, buffered)
  File "/srv/software/zeya/backends.py", line 78, in filename_to_stream
    p2 = subprocess.Popen(encode_command, stdin=p1.stdout, stdout=subprocess.PIPE)
  File "/usr/lib/python2.6/subprocess.py", line 621, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1126, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Revision history for this message
Samson Yeung (fragmede) wrote : Re: [Bug 595946] Re: Will not play music

Hrm. Under Ubuntu, do you have the
      vorbis-tools
and
      mpg123
packages installed?

(Zeya is also pre-packaged in Ubuntu 10.04)

Changed in zeya:
status: New → Incomplete
Revision history for this message
Phil Sung (psung) wrote :

I think this stacktrace is symptomatic of missing oggenc. becatlibra or Kymair, can either of you confirm that installing vorbis-tools fixes the problem?

I added a more helpful error message in commit cf19537 to diagnose missing oggenc.

(By the way, the TagLib warnings are nothing to worry about.)

Changed in zeya:
importance: Undecided → Medium
assignee: nobody → Phil Sung (psung)
Revision history for this message
Phil Sung (psung) wrote :

Thank you for bringing this to our attention. We identified a putative cause for this error (missing the vorbis-tools package) and added a better diagnostic for it. In the absence of other info I'm going to close this bug. Feel free to reopen if you continue to encounter problems after installing vorbis-tools and/or updating to Zeya 0.5 or later.

Changed in zeya:
status: Incomplete → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.