mirror of
https://github.com/photoprism/photoprism-docs.git
synced 2026-04-25 02:35:50 +03:00
[GH-ISSUE #12] panic: photo label: label is nil #6
Labels
No labels
bug
docs 📚
done
enhancement
enhancement
help wanted
idea
low-priority
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism-docs#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ChrisFab16 on GitHub (May 6, 2020).
Original GitHub issue: https://github.com/photoprism/photoprism-docs/issues/12
Originally assigned to: @lastzero on GitHub.
Version: PhotoPrism version 200505-bc69f22-Linux-x86_64
Running in docker
running "photoprism index" inside the container yields the following error:
panic: photo label: label is nil
goroutine 41 [running]:
github.com/photoprism/photoprism/internal/entity.(*PhotoLabel).ClassifyLabel(...)
/go/src/github.com/photoprism/photoprism/internal/entity/photo_label.go:47
github.com/photoprism/photoprism/internal/entity.(*Photo).ClassifyLabels(0xc000daac00, 0xc000c60a20, 0x4, 0x4)
/go/src/github.com/photoprism/photoprism/internal/entity/photo.go:141 +0x34c
github.com/photoprism/photoprism/internal/photoprism.(*Index).MediaFile(0xc000e7b890, 0xc000fda000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/src/github.com/photoprism/photoprism/internal/photoprism/index_mediafile.go:338 +0x189e
github.com/photoprism/photoprism/internal/photoprism.IndexWorker(0xc00004aae0)
/go/src/github.com/photoprism/photoprism/internal/photoprism/index_worker.go:23 +0x5ef
github.com/photoprism/photoprism/internal/photoprism.(*Index).Start.func1(0xc00004aae0, 0xc005788d30)
/go/src/github.com/photoprism/photoprism/internal/photoprism/index.go:86 +0x2b
created by github.com/photoprism/photoprism/internal/photoprism.(*Index).Start
/go/src/github.com/photoprism/photoprism/internal/photoprism/index.go:85 +0x1dc
@lastzero commented on GitHub (May 6, 2020):
Thanks for reporting this... should be in our main issue tracker at https://github.com/photoprism/photoprism/issues, but I found it :)
That error should never happen, I'll take a look at it. Any specific image that's causing it?
@ChrisFab16 commented on GitHub (May 6, 2020):
This photo is where it breaks (the last one to show up in the log before above message)

@lastzero commented on GitHub (May 15, 2020):
Seems to work for me with our latest Docker image - can you test it again?
@ChrisFab16 commented on GitHub (May 18, 2020):
Verified - works in the latest version