Listen crashed on reproduce a song in command line

Bug #210023 reported by Vicente Ruiz
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
listen (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: listen

When I try launch listen to reproduce a song in command line, it crash.

Output:

$ listen --play /home/user/song.mp3
No musicbrainz support (musicbrainz2 missing)
No Audio cd support (musicbrainz2 missing)
location: /usr/lib/xulrunner-1.9b4/libxpcom.so
before 3
Traceback (most recent call last):
  File "/usr/lib/listen/listen.py", line 218, in <module>
    ListenApp()
  File "/usr/lib/listen/listen.py", line 150, in __init__
    option.run_load(bonobo_client)
  File "/usr/lib/listen/option_parser.py", line 96, in run_load
    ret = client.msg_send("add",("play",self.convert_args_to_uris_string(self.options.file_to_play)))
AttributeError: 'NoneType' object has no attribute 'msg_send'

If Listen is opened and I execute same command, Listen reproduce it fine.

Output:

$ listen --play /home/user/song.mp3
['file:///home/user/song.mp3']
Command successful

Listen not recognize a relative path, you must indicate a full path. For example

$ cd
$ listen --play song.mp3
['file:///usr/lib/listen/song.mp3']
Command successful

(/usr/lib/listen/song.mp3 file doesn't exist)

ProblemType: Bug
Architecture: amd64
Date: Tue Apr 1 03:17:56 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia
Package: listen 0.5-4ubuntu3 [modified: usr/lib/listen/utils.py]
PackageArchitecture: amd64
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=es_ES.UTF-8
 SHELL=/bin/bash
SourcePackage: listen
Uname: Linux 2.6.24-12-generic x86_64

Tags: apport-bug
Revision history for this message
Vicente Ruiz (uve) wrote :
Revision history for this message
Vicente Ruiz (uve) wrote :

I have similar problems with other arguments. For example:

$ listen --next
location: /usr/lib/xulrunner-1.9b5/libxpcom.so
before 3
Traceback (most recent call last):
  File "/usr/lib/listen/listen.py", line 218, in <module>
    ListenApp()
  File "/usr/lib/listen/listen.py", line 150, in __init__
    option.run_load(bonobo_client)
  File "/usr/lib/listen/option_parser.py", line 81, in run_load
    ret = client.msg_send("control",("next",""))
AttributeError: 'NoneType' object has no attribute 'msg_send'

$ listen --previous
location: /usr/lib/xulrunner-1.9b5/libxpcom.so
before 3
Traceback (most recent call last):
  File "/usr/lib/listen/listen.py", line 218, in <module>
    ListenApp()
  File "/usr/lib/listen/listen.py", line 150, in __init__
    option.run_load(bonobo_client)
  File "/usr/lib/listen/option_parser.py", line 84, in run_load
    ret = client.msg_send("control",("previous",""))
AttributeError: 'NoneType' object has no attribute 'msg_send'

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

same here on Intrepid as well. I copied one song and renamed it somefilesomewhere.mp3, a valid .mp3 file

 listen --play /home/shirish/somefilesomewhere.mp3
Error grabbing key 174, 0x9641000
No iPod support
location: /usr/lib/xulrunner-1.9.0.3/libxpcom.so
before 3
Traceback (most recent call last):
  File "/usr/lib/listen/listen.py", line 218, in <module>
    ListenApp()
  File "/usr/lib/listen/listen.py", line 150, in __init__
    option.run_load(bonobo_client)
  File "/usr/lib/listen/option_parser.py", line 96, in run_load
    ret = client.msg_send("add",("play",self.convert_args_to_uris_string(self.options.file_to_play)))
AttributeError: 'NoneType' object has no attribute 'msg_send'

as well as using previous

listen --previous
Error grabbing key 174, 0x8380000
No iPod support
location: /usr/lib/xulrunner-1.9.0.3/libxpcom.so
before 3
Traceback (most recent call last):
  File "/usr/lib/listen/listen.py", line 218, in <module>
    ListenApp()
  File "/usr/lib/listen/listen.py", line 150, in __init__
    option.run_load(bonobo_client)
  File "/usr/lib/listen/option_parser.py", line 84, in run_load
    ret = client.msg_send("control",("previous",""))
AttributeError: 'NoneType' object has no attribute 'msg_send'

Revision history for this message
TimK (ubuntu-timkoop) wrote :

This might be related also: When I run "listen --device=/dev/scd0" or "listen -d /dev/scd0" I get this reply:

$ listen -d /dev/scd0
Error grabbing key 174, 0x870f000
No iPod support
location: /usr/lib/xulrunner-1.9.0.4/libxpcom.so
before 3
Traceback (most recent call last):
  File "/usr/lib/listen/listen.py", line 218, in <module>
    ListenApp()
  File "/usr/lib/listen/listen.py", line 150, in __init__
    option.run_load(bonobo_client)
  File "/usr/lib/listen/option_parser.py", line 102, in run_load
    ret = client.msg_send("control",("play-device",self.options.device))
AttributeError: 'NoneType' object has no attribute 'msg_send'

And yes, /dev/scd0 does exist. In fact, it is what %d translates to in auto command to play audio CDs.

Using Xubuntu 8.10

Daniel T Chen (crimsun)
Changed in listen:
status: New → Confirmed
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.