XIO: fatal IO error 9 (Bad file descriptor) on X server

• Hardware Platform - Jetson nano
• DeepStream Version - 5.0
• JetPack – 4.4.1

I am trying do Face Recognition with Deepstream & Facenet classifer in Python. I am using MIPI Camera for LIVE detection. While running the code multiple times, sometimes i get the following error and then code crashes.

Error:
XIO: fatal IO error 9 (Bad file descriptor) on X server “�s�X” after 18 requests (18 known processed) with 0 events remaining.

Hi,

Based on this topic, the error occurs since the display’s file descriptor is either closed or overwritten.
Since you have executed the detection multiple times, could you check if you close or terminate the pipeline correctly?

Thanks.