Dvr server app occasionally crashes

twice in the past week or so i've had the dvr server app crash on me. this time i remembered to grab the logs...any ideas?

2019/12/21 10:05:37 [NAT] Successfully mapped port 8089 using natpmp
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x10 pc=0x4c9ac0]

goroutine 8156469 [running]:
os.(*fileStat).Mode(...)
	os/types_windows.go:116
os.(*fileStat).IsDir(0x0, 0x1a702c0)
	os/types.go:109 +0x20
github.com/fancybits/channels-server/hls.(*persistentStreamCache).CacheSize.func1(0xc000c47dc0, 0x66, 0x1a9be60, 0x0, 0x1a702c0, 0xc0065c0de0, 0x0, 0x0)
	github.com/fancybits/channels-server@/hls/cache.go:273 +0x7f
path/filepath.walk(0xc00629a660, 0x25, 0x1a9be60, 0xc003e9b260, 0xc0065a9ef8, 0x0, 0xc0025d1501)
	path/filepath/path.go:378 +0x213
path/filepath.Walk(0xc00629a660, 0x25, 0xc0065a9ef8, 0x2, 0xc003540f40)
	path/filepath/path.go:404 +0x106
github.com/fancybits/channels-server/hls.(*persistentStreamCache).CacheSize(0xc000089f80, 0x0)
	github.com/fancybits/channels-server@/hls/cache.go:272 +0x6f
github.com/fancybits/channels-server/hls.(*Stream).runLogStatus(0xc003cdd7c0)
	github.com/fancybits/channels-server@/hls/stream.go:703 +0x237
created by github.com/fancybits/channels-server/hls.NewStream
	github.com/fancybits/channels-server@/hls/stream.go:228 +0x92f
2019/12/21 13:54:14 [SYS] Starting Channels DVR v2019.12.05.0128 (windows-x86_64 pid:8524) in C:\ProgramData\ChannelsDVR\data
1 Like

Thanks for the logs!

Please click-and-hold the Check for Update button for the fix.

1 Like