thirtythreeforty / neolink

An RTSP bridge to Reolink IP cameras
https://www.thirtythreeforty.net/posts/2020/05/hacking-reolink-cameras-for-fun-and-profit/
GNU Affero General Public License v3.0
897 stars 151 forks source link

neolink crashes in GStreamer-RTSP-Server #380

Open thardie opened 7 months ago

thardie commented 7 months ago

Describe the bug Most often during startup, neolink crashes (with core dump) in GStreamer-RTSP-Server

To Reproduce Steps to reproduce the behavior.

  1. Create this configuration file:
    
    bind = "0.0.0.0"
    [[cameras]]
    name = "5"
    username = "admin"
    password = ""
    address = "172.16.25.205:9000"

[[cameras]] name = "6" username = "admin" password = "" address = "172.16.25.206:9000"

3. Launch Neolink
4. Wait for crash

**Expected behavior**
Not crash

**Versions**
NVR software: N/A (Talking to cameras directly)
Neolink software: Build from commit f31d9486717300ed7f9fcf9a311fe94670a492a0 (Apr 11 2024)
Reolink camera model and firmware: RLC-810A (v3.1.0.956_22041503)

Debug output:

** GStreamer-RTSP-Server:ERROR:../gst/rtsp-server/rtsp-stream-transport.c:904:gst_rtsp_stream_transport_backlog_push: assertion failed: (queue_duration >= 0) Bail out! GStreamer-RTSP-Server:ERROR:../gst/rtsp-server/rtsp-stream-transport.c:904:gst_rtsp_stream_transport_backlog_push: assertion failed: (queue_duration >= 0) Aborted (core dumped)