DVR crash/panic then restart

Version: 2021.01.12.0156
Ubuntu: 20.04
Kernel: 5.8.0-36-generic

Been load testing and trying to troubleshoot something, seeing a crash/restart of the DVR server - I think I had 9 streams recording at the time, may or may not be related, via TVHeadend:

Logs have been submitted as fdd1e1d0-99b0-4316-bb22-6bdb61b149bd

Last part of the log file:

2021/01/12 12:02:11.876185 [IDX] Finished video index generation for file-3235 in 4s
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x124f4b7]

goroutine 110 [running]:
github.com/fancybits/channels-server/dvr.(*File).ReprocessTimestampsIfNeeded(0xc0015de000)
	github.com/fancybits/channels-server/dvr/file.go:552 +0x57
github.com/fancybits/channels-server/dvr.(*File).Process(0xc0015de000)
	github.com/fancybits/channels-server/dvr/file.go:1060 +0xe5
github.com/fancybits/channels-server/dvr.(*Recorder).RunProcessor(0xc00000c5a0)
	github.com/fancybits/channels-server/dvr/recorder.go:402 +0xd3b
created by github.com/fancybits/channels-server/dvr.(*Recorder).Run
	github.com/fancybits/channels-server/dvr/recorder.go:183 +0xab
2021/01/12 12:02:22.102606 [SYS] Starting Channels DVR v2021.01.12.0156 (linux-x86_64 pid:248096) in /home/channels/channels-dvr/data

Downgraded to 2021.01.09.2109, seems to be ok so far.

I’m seeing that also since yesterday. I thought it was because I had added the dvr directory to time machine backups on the Mac. I disabled it this morning to see if that was the issue.

80cedc0c-83c2-48ae-8826-3e1f1fee831d

This is fixed now

1 Like

Thanks, seems ok now.