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 on fs.entry.updated event #115

Closed
touilleMan opened this issue Jan 15, 2019 · 0 comments
Closed

Crash on fs.entry.updated event #115

touilleMan opened this issue Jan 15, 2019 · 0 comments

Comments

@touilleMan
Copy link
Member

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/snap/parsec/38/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/snap/parsec/38/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/gui/main_window.py", line 109, in _run_core
    trio.run(_run)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_run.py", line 1337, in run
    raise runner.main_task_outcome.error
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/gui/main_window.py", line 107, in _run
    await trio.sleep_forever()
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/async_generator/_util.py", line 53, in __aexit__
    await self._agen.athrow(type, value, traceback)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/logged_core.py", line 110, in logged_core_factory
    await mountpoint_manager.teardown()
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_run.py", line 397, in __aexit__
    raise combined_error_from_nursery
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/backend_connection/event_listener.py", line 166, in backend_listen_events
    await backend_events_manager.run(task_status=task_status)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/backend_connection/event_listener.py", line 76, in run
    await self._event_listener_manager()
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/backend_connection/event_listener.py", line 100, in _event_listener_manager
    logger.info("Event listener restarted")
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_run.py", line 397, in __aexit__
    raise combined_error_from_nursery
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/backend_connection/event_listener.py", line 139, in _event_pump
    await self._event_pump_do(cmds)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/backend_connection/event_listener.py", line 157, in _event_pump_do
    src_version=rep["src_version"],
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/event_bus.py", line 50, in send
    cb(event, **kwargs)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/beacons_monitor.py", line 37, in _on_beacon_updated
    event_bus.send("fs.entry.updated", id=src_id)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/event_bus.py", line 55, in send
    self._event_handlers[event] = {cb for cb in self._event_handlers[event] if cb()}
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/event_bus.py", line 55, in <setcomp>
    self._event_handlers[event] = {cb for cb in self._event_handlers[event] if cb()}
TypeError: _on_fs_entry_updated_trio() missing 2 required positional arguments: 'event' and 'id'

Traceback (most recent call last):
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/gui/mount_widget.py", line 36, in load_workspace
    self.files_widget.set_workspace(workspace_name)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/gui/files_widget.py", line 174, in set_workspace
    self.load("")
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/gui/files_widget.py", line 200, in load
    dir_stat = self.portal.run(self.core.fs.stat, dir_path)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_threads.py", line 105, in run
    return self._do_it(self._run_cb, afn, *args)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_threads.py", line 85, in _do_it
    self._trio_token.run_sync_soon(cb, q, fn, args)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_entry_queue.py", line 195, in run_sync_soon
    sync_fn, *args, idempotent=idempotent
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_entry_queue.py", line 113, in run_sync_soon
    raise _core.RunFinishedError("run() has exited")
trio.RunFinishedError: run() has exited
Traceback (most recent call last):
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/gui/main_window.py", line 235, in show_users_widget
    self.users_widget.reset()
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/gui/users_widget.py", line 80, in reset
    users = self.portal.run(self.core.fs.backend_cmds.user_find)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_threads.py", line 105, in run
    return self._do_it(self._run_cb, afn, *args)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_threads.py", line 85, in _do_it
    self._trio_token.run_sync_soon(cb, q, fn, args)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_entry_queue.py", line 195, in run_sync_soon
    sync_fn, *args, idempotent=idempotent
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_entry_queue.py", line 113, in run_sync_soon
    raise _core.RunFinishedError("run() has exited")
trio.RunFinishedError: run() has exited
Traceback (most recent call last):
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/gui/devices_widget.py", line 82, in reset
    user = self.portal.run(self.core.backend_cmds.user_get, self.core.device.user_id)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_threads.py", line 105, in run
    return self._do_it(self._run_cb, afn, *args)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_threads.py", line 85, in _do_it
    self._trio_token.run_sync_soon(cb, q, fn, args)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_entry_queue.py", line 195, in run_sync_soon
    sync_fn, *args, idempotent=idempotent
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_entry_queue.py", line 113, in run_sync_soon
    raise _core.RunFinishedError("run() has exited")
trio.RunFinishedError: run() has exited
Traceback (most recent call last):
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/gui/main_window.py", line 235, in show_users_widget
    self.users_widget.reset()
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/gui/users_widget.py", line 80, in reset
    users = self.portal.run(self.core.fs.backend_cmds.user_find)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_threads.py", line 105, in run
    return self._do_it(self._run_cb, afn, *args)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_threads.py", line 85, in _do_it
    self._trio_token.run_sync_soon(cb, q, fn, args)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_entry_queue.py", line 195, in run_sync_soon
    sync_fn, *args, idempotent=idempotent
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_entry_queue.py", line 113, in run_sync_soon
    raise _core.RunFinishedError("run() has exited")
trio.RunFinishedError: run() has exited
Traceback (most recent call last):
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/parsec/core/gui/devices_widget.py", line 82, in reset
    user = self.portal.run(self.core.backend_cmds.user_get, self.core.device.user_id)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_threads.py", line 105, in run
    return self._do_it(self._run_cb, afn, *args)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_threads.py", line 85, in _do_it
    self._trio_token.run_sync_soon(cb, q, fn, args)
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_entry_queue.py", line 195, in run_sync_soon
    sync_fn, *args, idempotent=idempotent
  File "/snap/parsec/38/venv/lib/python3.6/site-packages/trio/_core/_entry_queue.py", line 113, in run_sync_soon
    raise _core.RunFinishedError("run() has exited")
trio.RunFinishedError: run() has exited

should investigate why the unittests didn't catched this earlier (maybe python-trio/pytest-trio#77)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant