Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in MPD browse of "Explore/Drum & Bass" because of Ref.name which is None #31

Open
jodal opened this issue Aug 7, 2014 · 3 comments
Labels
C-bug Category: This is a bug

Comments

@jodal
Copy link
Member

jodal commented Aug 7, 2014

INFO     Loaded 57 Spotify playlists
INFO     Song 161665785 was removed
ERROR    Unhandled exception in MpdSession (urn:uuid:39ca2a02-eab4-4c0a-9f6c-b83f20256c77):
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 200, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 303, in _handle_receive
    return self.on_receive(message)
  File "/home/jodal/dev/mopidy/mopidy/utils/network.py", line 366, in on_receive
    self.on_line_received(line)
  File "/home/jodal/dev/mopidy/mopidy/mpd/session.py", line 33, in on_line_received
    response = self.dispatcher.handle_request(line)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 46, in handle_request
    return self._call_next_filter(request, response, filter_chain)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 67, in _call_next_filter
    return next_filter(request, response, filter_chain)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 75, in _catch_mpd_ack_errors_filter
    return self._call_next_filter(request, response, filter_chain)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 67, in _call_next_filter
    return next_filter(request, response, filter_chain)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 85, in _authenticate_filter
    return self._call_next_filter(request, response, filter_chain)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 67, in _call_next_filter
    return next_filter(request, response, filter_chain)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 104, in _command_list_filter
    response = self._call_next_filter(request, response, filter_chain)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 67, in _call_next_filter
    return next_filter(request, response, filter_chain)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 133, in _idle_filter
    response = self._call_next_filter(request, response, filter_chain)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 67, in _call_next_filter
    return next_filter(request, response, filter_chain)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 146, in _add_ok_filter
    response = self._call_next_filter(request, response, filter_chain)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 67, in _call_next_filter
    return next_filter(request, response, filter_chain)
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 158, in _call_handler_filter
    response = self._format_response(self._call_handler(request))
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 167, in _call_handler
    return protocol.commands.call(tokens, context=self.context)
  File "/home/jodal/dev/mopidy/mopidy/mpd/protocol/__init__.py", line 178, in call
    return self.handlers[tokens[0]](context, *tokens[1:])
  File "/home/jodal/dev/mopidy/mopidy/mpd/protocol/__init__.py", line 156, in validate
    return func(**callargs)
  File "/home/jodal/dev/mopidy/mopidy/mpd/protocol/music_db.py", line 413, in lsinfo
    for path, lookup_future in context.browse(uri, recursive=False):
  File "/home/jodal/dev/mopidy/mopidy/mpd/dispatcher.py", line 320, in browse
    path = '/'.join([base_path, ref.name.replace('/', '')])
AttributeError: 'NoneType' object has no attribute 'replace'
Traceback (most recent call last):
  File "/home/jodal/dev/mopidy/mopidy/utils/network.py", line 271, in recv_callback
    self.actor_ref.tell({'close': True})
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 437, in tell
    raise _ActorDeadError('%s not found' % self)
pykka.exceptions.ActorDeadError: MpdSession (urn:uuid:39ca2a02-eab4-4c0a-9f6c-b83f20256c77) not found
INFO     New MPD connection from [::ffff:127.0.0.1]:35489
@jodal jodal added the bug label Aug 7, 2014
@jodal
Copy link
Member Author

jodal commented Aug 7, 2014

Cannot reproduce on latest git version.

@jodal jodal closed this as completed Aug 7, 2014
@jodal
Copy link
Member Author

jodal commented Aug 7, 2014

Seems like it happens on latest too.

@jodal jodal reopened this Aug 7, 2014
@jezalb
Copy link

jezalb commented Dec 29, 2014

Similar problem when trying to play "Liked" category

Traceback (most recent call last):\n  File \"/usr/lib/python2.7/dist-packages/mopidy/utils/jsonrpc.py\", line 130, in _handle_single_request\n    result = self._unwrap_result(result)\n  File \"/usr/lib/python2.7/dist-packages/mopidy/utils/jsonrpc.py\", line 219, in _unwrap_result\n    result = result.get()\n  File \"/usr/lib/python2.7/dist-packages/pykka/future.py\", line 299, in get\n    exec('raise exc_info[0], exc_info[1], exc_info[2]')\n  File \"/usr/lib/python2.7/dist-packages/pykka/actor.py\", line 200, in _actor_loop\n    response = self._handle_receive(message)\n  File \"/usr/lib/python2.7/dist-packages/pykka/actor.py\", line 294, in _handle_receive\n    return callee(*message['args'], **message['kwargs'])\n  File \"/usr/lib/python2.7/dist-packages/mopidy/core/library.py\", line 73, in browse\n    return backend.library.browse(uri).get()\n  File \"/usr/lib/python2.7/dist-packages/pykka/future.py\", line 299, in get\n    exec('raise exc_info[0], exc_info[1], exc_info[2]')\n  File \"/usr/lib/python2.7/dist-packages/pykka/actor.py\", line 200, in _actor_loop\n    response = self._handle_receive(message)\n  File \"/usr/lib/python2.7/dist-packages/pykka/actor.py\", line 294, in _handle_receive\n    return callee(*message['args'], **message['kwargs'])\n  File \"/usr/share/mopidy/mopidy_soundcloud/library.py\", line 148, in browse\n    return self.list_liked()\n  File \"/usr/share/mopidy/mopidy_soundcloud/library.py\", line 60, in list_liked\n    logger.debug('Adding liked track %s to vfs' % data.name)\nAttributeError: 'list' object has no attribute 'name'\n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants