Pipeline gets freeze getting error Caught SIGSEGV

pipeline freeze after displaying 2-3 frames

gst-version 1.20

#pipeline
gst-launch-1.0 filesrc location=out.mp4 ! queue ! decodebin ! video/x-raw,format=I420 ! videoconvert ! autovideosink

Setting pipeline to PAUSED …
Pipeline is PREROLLING …
Redistribute latency…
Redistribute latency…
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Caught SIGSEGV
exec gdb failed: No such file or directory
Spinning. Please run ‘gdb gst-launch-1.0 168’ to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core

some time getting this type of error

Setting pipeline to PAUSED …
Pipeline is PREROLLING …
Redistribute latency…
X Error of failed request: BadShmSeg (invalid shared segment parameter)
Major opcode of failed request: 130 (MIT-SHM)
Minor opcode of failed request: 2 (X_ShmDetach)
Segment id in failed request: 0x4400005
Serial number of failed request: 60
Current serial number in output stream: 61

That shouldn’t happen of course, but you would need to install a debugger (gdb) and make sure you have debugging symbols for GStreamer and glib and glibc, and then run gst-launch-1.0 in gdb to get a stack trace of the crash with (gdb) thread apply all bt (or attach to it after it crashed when it says ‘spinning’).

You could also try a newer version of GStreamer, since 1.20.3 is quite old (current is 1.24) and not even the latest 1.20.x.