ERROR Segmentation fault (core dumped)

jetpack 5.1.2
python 3.8.10
opencv 4.5.3.56
pyqt5 5.14

I encountered errors when running a python program using OpenCV and PyQt5 on Jetson ORIN NX:

(python3:32570): GLib-GObject-WARNING **: 10:55:31.765: cannot register existing type 'GdkDisplayManager'

(python3:32570): GLib-CRITICAL **: 10:55:31.765: g_once_init_leave: assertion 'result != 0' failed

(python3:32570): GLib-GObject-CRITICAL **: 10:55:31.765: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(python3:32570): GLib-GObject-WARNING **: 10:55:31.765: invalid (NULL) pointer instance

(python3:32570): GLib-GObject-CRITICAL **: 10:55:31.765: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(python3:32570): GLib-GObject-WARNING **: 10:55:31.765: invalid (NULL) pointer instance

(python3:32570): GLib-GObject-CRITICAL **: 10:55:31.765: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(python3:32570): GLib-GObject-WARNING **: 10:55:31.767: cannot register existing type 'GdkDisplay'

(python3:32570): GLib-CRITICAL **: 10:55:31.767: g_once_init_leave: assertion 'result != 0' failed

(python3:32570): GLib-GObject-CRITICAL **: 10:55:31.767: g_type_register_static: assertion 'parent_type > 0' failed

(python3:32570): GLib-CRITICAL **: 10:55:31.767: g_once_init_leave: assertion 'result != 0' failed

(python3:32570): GLib-GObject-CRITICAL **: 10:55:31.767: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
Segmentation fault (core dumped)

But I use MobaXterm connect to ORIN NX, I can run the program successfully.

Hi,
It seems to be a failure in gstreamer frameworks. Please clean the cache and see if it works:

$ rm .cache/gstreamer-1.0/registry.aarch64.bin

Hello,
It do not work:
sudo rm /home/nvidia/.cache/gstreamer-1.0/registry.aarch64.bin
I got the same error message.

I use MobaXterm - SSH protocol to connect ORIN NX and execute programs in MobaXterm terminal, and the project works fine .

Hi,
Please check which sink plugin is used in the sample. And try to use it in gst-launch-1.0 command. It looks like the plugin only works in MobaXterm environment.

Hi,I run yolov5_detect.py in ORIN NX, It can work properly when I set my source : rtsp://192.168.0.131:554.( In fact, my programis based on yolov5 detect.py . When I click the button to try to execute detect.py and display the image on the UI, it outputs the error I mentioned at the beginning.)

But I run gst-launch-1.0 rtspsrc location=rtsp://192.168.0.131 latency=0 ! rtph264depay ! decodebin ! videoconvert ! autovideosink in terminal,it can not work:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtsp://192.168.0.131
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Redistribute latency...
Progress: (request) Sending PLAY request
Redistribute latency...
Progress: (request) Sent PLAY request
Redistribute latency...
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NvMMLiteBlockCreate : Block : BlockType = 261
WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0: not negotiated
Additional debug info:
../libs/gst/base/gstbasetransform.c(1431): gst_base_transform_reconfigure_unlocked (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0:
not negotiated
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.313023262
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not write to resource.
Additional debug info:
../gst/rtsp/gstrtspsrc.c(6607): gst_rtspsrc_try_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not send message. (Received end-of-file)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not write to resource.
Additional debug info:
../gst/rtsp/gstrtspsrc.c(9034): gst_rtspsrc_pause (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not send message. (Received end-of-file)
Freeing pipeline ...

"gst-launch-1.0 rtspsrc location=rtsp://192.168.0.131 latency=0 ! rtph264depay ! decodebin ! videoconvert ! autovideosink " can not work in MobaXterm ,too:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtsp://192.168.0.131
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Redistribute latency...
Progress: (request) Sending PLAY request
Redistribute latency...
Progress: (request) Sent PLAY request
Redistribute latency...
Redistribute latency...
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NvMMLiteBlockCreate : Block : BlockType = 261
WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0: not negotiated
Additional debug info:
../libs/gst/base/gstbasetransform.c(1431): gst_base_transform_reconfigure_unlocked (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0:
not negotiated
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:08.629415818
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not write to resource.
Additional debug info:
../gst/rtsp/gstrtspsrc.c(6607): gst_rtspsrc_try_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not send message. (Received end-of-file)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not write to resource.
Additional debug info:
../gst/rtsp/gstrtspsrc.c(9034): gst_rtspsrc_pause (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not send message. (Received end-of-file)
Freeing pipeline ...

Is this still an issue to support? Any result can be shared?

Thank you for your follow-up. This issue has been resolved.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.