DAAP not working in trunk (rev 930)

Bug #372976 reported by Mehdi Abaakouk
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Listen
New
High
Unassigned
listen (Debian)
Fix Released
Unknown

Bug Description

Here is the output when lauching listen with DAAP plugin enabled:

ERROR dbus.connection Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/lib/listen/source/daapclient.py", line 59, in connect
    add,port,name = service_discover.resolve(*args)
  File "/usr/lib/listen/service_discover.py", line 59, in resolve
    interface, protocol, name, type, domain, host, aprotocol, address, port, txt, flags = self.server.ResolveService(interface, protocol, name, type, domain, avahi.PROTO_UNSPEC, dbus.UInt32(0))
  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 622, in call_blocking
    message, timeout)
DBusException: org.freedesktop.Avahi.TimeoutError: Timeout reached
ERROR dbus.connection Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/lib/listen/source/daapclient.py", line 59, in connect
    add,port,name = service_discover.resolve(*args)
  File "/usr/lib/listen/service_discover.py", line 59, in resolve
    interface, protocol, name, type, domain, host, aprotocol, address, port, txt, flags = self.server.ResolveService(interface, protocol, name, type, domain, avahi.PROTO_UNSPEC, dbus.UInt32(0))
  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 622, in call_blocking
    message, timeout)
DBusException: org.freedesktop.Avahi.TimeoutError: Timeout reached

Cheers,
Julien

This ticket was migrated from the old trac: re #804
Originally reported by: JulienV

Revision history for this message
Mehdi Abaakouk (sileht) wrote :

All my aplogies, the above message is the output when listen is already loaded (that should have been a second bug report)!

here is the ouput for DAAP:
Exception in thread Thread-15:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/threading.py", line 446, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/listen/source/daapclient.py", line 64, in add_service
    l = DaapLibrary(address, port)
  File "/usr/lib/listen/source/daapclient.py", line 125, in __init__
    self.client.connect( address, port )
  File "/usr/lib/python2.5/site-packages/daap.py", line 367, in connect
    self.getContentCodes() # practically required
  File "/usr/lib/python2.5/site-packages/daap.py", line 455, in getContentCodes
    response = self.request('/content-codes')
  File "/usr/lib/python2.5/site-packages/daap.py", line 418, in request
    response = self._get_response(r, params)
  File "/usr/lib/python2.5/site-packages/daap.py", line 406, in _get_response
    self.socket.connect()
  File "/usr/lib/python2.5/httplib.py", line 683, in connect
    raise socket.error, msg
error: (22, 'Argument invalide')

Exception in thread Thread-16:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/threading.py", line 446, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/listen/source/daapclient.py", line 64, in add_service
    l = DaapLibrary(address, port)
  File "/usr/lib/listen/source/daapclient.py", line 125, in __init__
    self.client.connect( address, port )
  File "/usr/lib/python2.5/site-packages/daap.py", line 367, in connect
    self.getContentCodes() # practically required
  File "/usr/lib/python2.5/site-packages/daap.py", line 455, in getContentCodes
    response = self.request('/content-codes')
  File "/usr/lib/python2.5/site-packages/daap.py", line 418, in request
    response = self._get_response(r, params)
  File "/usr/lib/python2.5/site-packages/daap.py", line 406, in _get_response
    self.socket.connect()
  File "/usr/lib/python2.5/httplib.py", line 683, in connect
    raise socket.error, msg
error: (22, 'Argument invalide')

DaapSource Loading DAAP songs AT 192.168.1.70:3689
Loading DAAP songs AT 192.168.1.70:3689

No more output, and nothing shown on the GUI...
192.168.1.70 is a rhythmbox DAAP server, working with other media players.

Cheers,
Julien

Originally reported by: JulienV

Revision history for this message
Mehdi Abaakouk (sileht) wrote :

Hi,

As of revision 1020, DAAP seems to work better.
However, I can see the unique share in my network appearing 4 times: twice in Devices, twice in Shared Libraries. The shared playlists appear more than this, I'll attach a screenshot.

Cheers,
Julien

Originally reported by: JulienV

Revision history for this message
Mehdi Abaakouk (sileht) wrote :

As I cannot attach a file (see #833), I put a link here to my screenshot:
http://img134.imageshack.us/my.php?image=capturelistenkj0.png

Originally reported by: JulienV

Revision history for this message
Mehdi Abaakouk (sileht) wrote :

Here is the attachment (bug #833 just fixed)

Hykueb

Originally reported by: JulienV

Revision history for this message
Mehdi Abaakouk (sileht) wrote :

Seems to be working ok now in SVN 1112

Cheers,
Julien

Originally reported by: JulienV

Revision history for this message
Mehdi Abaakouk (sileht) wrote :

Ah, just forgot: the DAAP share appears once in Devices, one in Shared libraries.
I think this is misleading for users, and should only be listed once.

Cheers,
Julien

Originally reported by: JulienV

Changed in listen:
assignee: nobody → Mehdi Abaakouk (theli48)
importance: Undecided → High
Revision history for this message
Julien Valroff (julienv) wrote :

Hi,

Something very similar was reported by a Debian user against 0.6.3 - see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540284

Shuold this be reported as a separate bug report or is it the same issue?

I cannot test right now hence cannot debug it further.

Cheers,
Julien

Revision history for this message
Tomasz Sterna (smoku) wrote :

With 0.6.5.99 I don't see my DAAP server at all.

Changed in listen (Debian):
status: Unknown → Confirmed
Mehdi Abaakouk (sileht)
Changed in listen:
assignee: Mehdi Abaakouk (sileht) → nobody
Changed in listen (Debian):
status: Confirmed → Fix Released
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.