DVR crashing in scheduler?

Edited pass to enable [ ] Re-record deleted episodes
Clicked Saved Rule
crashed

panic: runtime error: index out of range [1] with length 1

goroutine 100 [running]:
github.com/fancybits/channels-server/dvr.(*Recorder).scheduleRule(0xc00049ce00, 0xc000c34e40, 0x41d8714245c00000, 0x17a0072)
	github.com/fancybits/channels-server/dvr/scheduler.go:153 +0xd45
github.com/fancybits/channels-server/dvr.(*Recorder).RunScheduler(0xc00049ce00)
	github.com/fancybits/channels-server/dvr/scheduler.go:40 +0x570
created by github.com/fancybits/channels-server/dvr.(*Recorder).Run
	github.com/fancybits/channels-server/dvr/recorder.go:217 +0xa5

And now my scheduled recordings for that pass are no longer scheduled. So tried to edit the pass again.
crashed



2021/12/23 15:59:34 [Recovery] 2021/12/23 - 15:59:34 panic recovered:
runtime error: index out of range [1] with length 1
runtime/panic.go:90 (0x433a74)
github.com/fancybits/channels-server/dvr/scheduler.go:153 (0x1260c84)
github.com/fancybits/channels-server/dvr/rule.go:136 (0x1259316)
github.com/fancybits/channels-server/http_dvr_rule.go:168 (0x13498ea)
github.com/gin-gonic/[email protected]/context.go:165 (0x1312137)
github.com/fancybits/channels-server/http_dvr_rule.go:21 (0x13120d7)
github.com/gin-gonic/[email protected]/context.go:165 (0x130682b)
github.com/fancybits/channels-server/http.go:235 (0x1306597)
github.com/gin-gonic/[email protected]/context.go:165 (0x130650a)
github.com/fancybits/channels-server/http.go:215 (0x13064ef)
github.com/gin-gonic/[email protected]/context.go:165 (0x1306371)
github.com/fancybits/channels-server/http.go:207 (0x1305b9d)
github.com/gin-gonic/[email protected]/context.go:165 (0x9b7a21)
github.com/gin-gonic/[email protected]/recovery.go:106 (0x9b7a0c)
github.com/gin-gonic/[email protected]/context.go:165 (0x9b6c86)
github.com/gin-gonic/[email protected]/logger.go:241 (0x9b6c69)
github.com/gin-gonic/[email protected]/context.go:165 (0x12b888c)
github.com/gin-contrib/[email protected]/sessions.go:65 (0x12b8878)
github.com/gin-gonic/[email protected]/context.go:165 (0x12b2a89)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x12b2a5f)
github.com/gin-gonic/[email protected]/context.go:165 (0x131f241)
github.com/fancybits/channels-server/http.go:277 (0x131f22b)
github.com/gin-gonic/[email protected]/context.go:165 (0x9b61bd)
github.com/gin-gonic/[email protected]/gin.go:420 (0x9b5e45)
github.com/gin-gonic/[email protected]/gin.go:376 (0x9b59a4)
net/http/server.go:2879 (0x6cf8da)
net/http/server.go:1930 (0x6caf87)
runtime/asm_amd64.s:1581 (0x46a4c0)



2021/12/23 16:00:27 [Recovery] 2021/12/23 - 16:00:27 panic recovered:
runtime error: index out of range [1] with length 1
runtime/panic.go:90 (0x433a74)
github.com/fancybits/channels-server/dvr/scheduler.go:153 (0x1260c84)
github.com/fancybits/channels-server/dvr/rule.go:136 (0x1259316)
github.com/fancybits/channels-server/http_dvr_rule.go:168 (0x13498ea)
github.com/gin-gonic/[email protected]/context.go:165 (0x1312137)
github.com/fancybits/channels-server/http_dvr_rule.go:21 (0x13120d7)
github.com/gin-gonic/[email protected]/context.go:165 (0x130682b)
github.com/fancybits/channels-server/http.go:235 (0x1306597)
github.com/gin-gonic/[email protected]/context.go:165 (0x130650a)
github.com/fancybits/channels-server/http.go:215 (0x13064ef)
github.com/gin-gonic/[email protected]/context.go:165 (0x1306371)
github.com/fancybits/channels-server/http.go:207 (0x1305b9d)
github.com/gin-gonic/[email protected]/context.go:165 (0x9b7a21)
github.com/gin-gonic/[email protected]/recovery.go:106 (0x9b7a0c)
github.com/gin-gonic/[email protected]/context.go:165 (0x9b6c86)
github.com/gin-gonic/[email protected]/logger.go:241 (0x9b6c69)
github.com/gin-gonic/[email protected]/context.go:165 (0x12b888c)
github.com/gin-contrib/[email protected]/sessions.go:65 (0x12b8878)
github.com/gin-gonic/[email protected]/context.go:165 (0x12b2a89)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x12b2a5f)
github.com/gin-gonic/[email protected]/context.go:165 (0x131f241)
github.com/fancybits/channels-server/http.go:277 (0x131f22b)
github.com/gin-gonic/[email protected]/context.go:165 (0x9b61bd)
github.com/gin-gonic/[email protected]/gin.go:420 (0x9b5e45)
github.com/gin-gonic/[email protected]/gin.go:376 (0x9b59a4)
net/http/server.go:2879 (0x6cf8da)
net/http/server.go:1930 (0x6caf87)
runtime/asm_amd64.s:1581 (0x46a4c0)

Did a Delete and recreate guide database.
crashed

panic: runtime error: index out of range [1] with length 1

goroutine 69 [running]:
github.com/fancybits/channels-server/dvr.(*Recorder).scheduleRule(0xc00044ac00, 0xc000c90b40, 0x41d8714421800000, 0x17a0072)
	github.com/fancybits/channels-server/dvr/scheduler.go:153 +0xd45
github.com/fancybits/channels-server/dvr.(*Recorder).RunScheduler(0xc00044ac00)
	github.com/fancybits/channels-server/dvr/scheduler.go:40 +0x570
created by github.com/fancybits/channels-server/dvr.(*Recorder).Run
	github.com/fancybits/channels-server/dvr/recorder.go:217 +0xa5

Ant ideas on how to get back to normal?
Logs have been submitted as e1b538e8-1862-4698-9e35-7ae02961542a.

Fix uploading.

Is related to program database saying "recorded" instead of "recorded-XXX" with a file ID.

1 Like

Thanks, just crashed after the guide update this morning about 30 minutes ago.
Will grab the new prerelease.
Yep, it worked and I got my scheduled recordings back.

Should I be adding a file ID like 0 or 1 when I use curl for mark-as-recorded?

No not required

1 Like