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

Traceback when adding/removing files during library scanning #461

Open
genodeftest opened this issue Nov 16, 2017 · 0 comments
Open

Traceback when adding/removing files during library scanning #461

genodeftest opened this issue Nov 16, 2017 · 0 comments

Comments

@genodeftest
Copy link
Member

When changing a library while it is being scanned, Exaile throws a Runtime Error

Steps to Reproduce (for bugs)

  1. Have a huge library (so rescanning takes a while)
  2. Trigger (re-)scanning the library while it is being watched, e.g. by adding it to Exaile
  3. While Exaile is still scanning, add or delete files
  4. Have a look at Exaile's output

Expected Behavior

No tracebacks.

Current Behavior

I'm getting this traceback:

Traceback (most recent call last):
  File "/path/to/exaile/xl/collection.py", line 491, in on_location_changed
    if track in self.__library.collection:
  File "/path/to/exaile/xl/trax/trackdb.py", line 65, in next
    return self.iter.next()[1]._track
RuntimeError: dictionary changed size during iteration

This looks like a threading issue to me, but I'm not sure about that.

I could not spot any misbehaviour, which would be quite hard due to the library size.

Possible Solution

No clue yet.

Environment

  • Operating System and version: Fedora 26, python2-2.7.14-2.fc26.x86_64
  • Exaile Version: latest git master (af00c46)
@genodeftest genodeftest changed the title Traceback when changing files during library scanning Traceback when adding/removing files during library scanning Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant