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 reloading collections while scanning #109

Open
SmilyOrg opened this issue May 30, 2024 · 0 comments
Open

Crash reloading collections while scanning #109

SmilyOrg opened this issue May 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SmilyOrg
Copy link
Owner

SmilyOrg commented May 30, 2024

That said, looks like there might be similar trouble in the collection scanner:

...
index metadata   88% completed, 14996 loaded,  1897 pending, 65.52 / sec, 29s left
collection changed, reloading
config path configuration.yaml
index metadata   89% completed, 15127 loaded,  1766 pending, 64.65 / sec, 27s left
index metadata   90% completed, 15258 loaded,  1635 pending, 65.36 / sec, 25s left
index metadata   91% completed, 15403 loaded,  1490 pending, 70.91 / sec, 21s left
database closing
panic: send on closed channel
goroutine 208 [running]:
photofield/internal/image.(*Database).Write(...)
        /home/runner/work/photofield/photofield/internal/image/database.go:907
photofield/internal/image.(*Source).indexMetadata(0xc0004cc300, 0x0?)
        /home/runner/work/photofield/photofield/internal/image/indexMetadata.go:19 +0x286
created by photofield/internal/queue.(*Queue).Run in goroutine 146
        /home/runner/work/photofield/photofield/internal/queue/queue.go:42 +0x37a

This is from removing one subdirectory of a collection (with expand_subdirs: true) whilst scanning a different one.

Originally posted by @Terrance in #97 (comment)

@SmilyOrg SmilyOrg added the bug Something isn't working label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant