Jetson.utils and cv2 fails work together

Hi!
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 4.6.0.66 (builded from source)

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

Hi!
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/libgomp.so.1
Thank you for your advice :)

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