Hi all,
We are running a production DeepStream/GStreamer pipeline on GStreamer 1.24.2 and seeing a crash pattern during unstable network conditions on RTSP/H264 feeds.
Environment
- GStreamer: 1.24.2 (Ubuntu packages)
- Stream type: RTSP H264 from MediaMTX to our pipeline
- Relevant chain section: `rtpjitterbuffer → rtph264depay → h264parse → decoder`
What we observe
1. During network instability, we see real RTP sequence loss/gaps (pcap-confirmed).
2. We often see warnings like `Could not decode stream` from both depay and parse.
3. Depay warnings alone are usually non-fatal and stream continues.
4. In crash cases, we see:
- `h264parse` warning: `Could not decode stream` / `Broken bit stream`
- immediately after, `rtpjitterbuffer` receives `SIGSEGV`
So the key symptom is: parser-level broken bitstream warning appears, then jitterbuffer crashes instead of graceful recovery.
Why this seems abnormal
- The same run can contain many decode warnings that do not crash.
- We confirmed packet loss is real, but a segfault still looks like an unsafe path/bug rather than expected behavior.
- We already added upstream RTP sanity filtering to drop obviously bad payload/FU patterns, which reduces risk but does not prove root cause inside GStreamer.
Evidence pattern from recent runs
Across multiple runs, we repeatedly observe:
- orphan FU continuation/end packets
- malformed H264 RTP payloads
- occasional FU timestamp mismatch
- non-monotonic RTP timestamps
These appear during unstable network periods and are the same conditions around the crash windows.
Questions
1. Is this a known issue in/around 1.24.2 where malformed/lossy RTP can lead to `rtpjitterbuffer` segfault?
2. Is there a recommended fix or patch in newer GStreamer versions?
3. Are there specific `rtpjitterbuffer`/`rtph264depay`/`h264parse` properties you recommend to harden recovery under this pattern?
If useful, we can provide:
- pcap around crash windows
- gdb backtrace logs
- exact warning/crash sequence timestamps