Jetson.utils and cv2 fails work together

I want to read images to CUDA from mp4-file via jetson.utils and then to do some processing with cv2 methods. But if I put a line ‘import cv2’ as first line in my program, I receive an error ‘Segmentation fault (core dumped)’. If I put a line ‘import cv2’ after ‘input = jetson.utils.videoSource(f’videos/Ex3.mp4’)', I receive an error ‘[OpenGL] failed to create X11 Window.’
Working environment:
Jetson Nano 4GB, JetPack 4.6, Python 3.6.9, OpenCV (builded from source)

Hi @igor.g2p, after which line of code in your Python script to you receive the segmentation fault?

It happens after:
import cv2
import jetson.utils

Now my script has began work after adding into /.bashrc follow line:
export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/
Thank you for your advice :)

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