kerberos-io / agent

An open and scalable video surveillance system for anyone making this world a better and more peaceful place.
https://kerberos.io
MIT License
709 stars 88 forks source link

Agent crashes when initiating sub stream #110

Closed cedricve closed 1 year ago

cedricve commented 1 year ago
    {"level":"info","msg":"RunAgent: opened RTSP stream: rtsp://xxx:xxx@192.168.1.67:554/Streaming/Channels/101?transportmode=multicast\u0026profile=Profile_1","time":"2023-07-12T16:26:18+02:00"}
    {"level":"info","msg":"RunAgent: opened RTSP sub stream rtsp://xxx:xxx@192.168.1.67:554/Streaming/Channels/102?transportmode=multicast\u0026profile=Profile_1","time":"2023-07-12T16:26:18+02:00"}
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x9bcf18]

    goroutine 75 [running]:
    github.com/kerberos-io/joy4/cgo/ffmpeg.freeFFCtx(0xc000fd4720?)
        /go/pkg/mod/github.com/kerberos-io/joy4@v1.0.58/cgo/ffmpeg/ffmpeg.go:55 +0x18
    github.com/kerberos-io/joy4/cgo/ffmpeg.(*VideoDecoder).Close(...)
        /go/pkg/mod/github.com/kerberos-io/joy4@v1.0.58/cgo/ffmpeg/video.go:893
    github.com/kerberos-io/agent/machinery/src/components.RunAgent(0xc000199500, 0xc0000d5d40, {0x2562c10?, 0xc00046f440}, {0x0?, 0x0?, 0x0?}, 0xc002071f60, 0xc0004394d0, 0xc000439530)
        /go/src/github.com/kerberos-io/agent/machinery/src/components/Kerberos.go:171 +0x6bf
    github.com/kerberos-io/agent/machinery/src/components.Bootstrap(0xc000199500, 0xc0000d5d40)
        /go/src/github.com/kerberos-io/agent/machinery/src/components/Kerberos.go:82 +0x57e
    created by main.main
        /go/src/github.com/kerberos-io/agent/machinery/main.go:124 +0x8bb