Problem with gstreamer when tensorflow is loaded

I am using a Jetson Xaiver NX running Jetpack 5.01 (although same problem when using jetpack 4.6)

I have install tensor following instructions here Installing TensorFlow for Jetson Platform :: NVIDIA Deep Learning Frameworks Documentation

Using python and OpenCV I can display a stream from the CSI camera with gstreamer but if I import tensorflow then I get this error

(python3:55868): GStreamer-WARNING **: 19:03:29.529: Failed to load plugin ‘/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvarguscamerasrc.so’: /lib/aarch64-linux-gnu/libGLdispatch.so.0: cannot allocate memory in static TLS block

(python3:55868): GStreamer-WARNING **: 19:03:29.537: Failed to load plugin ‘/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvvidconv.so’: /lib/aarch64-linux-gnu/libGLdispatch.so.0: cannot allocate memory in static TLS block
^C
(python3:55868): GStreamer-CRITICAL **: 19:03:33.596:
Trying to dispose element capsfilter0, but it is in PAUSED instead of the NULL state.

OK I have discovered that if I open the video stream first before import tensorflow then it works.

1 Like

Hi,
Thanks for the sharing. The solution looks fine and it should be good to use it.

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