Xilinx / Embedded-Reference-Platforms-User-Guide

Formerly known as the 'reVISION Getting Started Guide', the Embedded Reference Platforms User Guide covers the embedded vision reference platforms for the Vitis environment.
10 stars 8 forks source link

Smart Camera Demo rtsp Segmentation fault #15

Open joekale opened 4 years ago

joekale commented 4 years ago

While trying to stream the Facial Recognition demo (Section 7.3) with a zcu104 provisioned with the Smart Camera Demo, I am hitting a segmentation fault shortly after connection.

stream ready at rtsp://<IP>:8554/test
[ 1491.203165] [drm] Pid 3053 opened device
[ 1491.207118] [drm] Pid 3053 closed device
[ 1491.211089] [drm] Pid 3053 opened device
[ 1491.240303] [drm] The XCLBIN already loaded. Don't need to reload.
[ 1491.242101] [drm] Reconfiguration not supported
[ 1491.256863] [drm] Pid 3053 opened device
[ 1491.261143] [drm] CU can only be initialized once.
[ 1491.301820] xilinx-multiscaler a20a0000.v_multi: Channel 0 instance created
[ 1491.308870] xilinx-multiscaler a20a0000.v_multi_scaler: Wrong align parameters 10, wxh: 1x1.
[ 1491.317503] xilinx-multiscaler a20a0000.v_multi_scaler: Wrong align parameters 10, wxh: 1x1.
[ 1491.326069] xilinx-multiscaler a20a0000.v_multi_scaler: Wrong align parameters 10, wxh: 1x1.
[ 1491.334876] xilinx-multiscaler a20a0000.v_multi_scaler: Wrong align parameters 9, wxh: 1x1.
[ 1491.343381] xilinx-multiscaler a20a0000.v_multi_scaler: Wrong align parameters 9, wxh: 1x1.
[ 1491.351886] xilinx-multiscaler a20a0000.v_multi_scaler: Wrong align parameters 9, wxh: 1x1.
[ 1511.350935] xilinx-multiscaler a20a0000.v_multi: Channel 0 instance released
[ 1511.362898] [drm] Pid 3053 opened device
[ 1511.366854] [drm] Pid 3053 closed device
Load Xclbin Failed
[ 1511.406606] [drm] Pid 3053 closed device
[ 1511.410650] [drm] Pid 3053 closed device
./demo.sh: line 72:  3053 Segmentation fault      ./rtsp

On occasion after the Load Xclbin Failed line I also have seen [DNNDK_XRT] Bitstream download failed, but I am not sure if it is related at all.

joekale commented 4 years ago

I figured out my issue. It seems to be related to the GST_PLUGIN_PATH_1_0 value that is set to no value in the demo.sh script. It can be corrected in 1 of 2 ways:

  1. Comment or Delete the line. The start of demo.sh copies the libraries into the typical library locations so setting this value is unnecessary.
  2. Set it to /var/run/media. The libraries are all contained in the SD Card so setting the Plugin Path to the sd card allows gstreamer to located the required plugins.

Neither of these require changes to the documentation, so this issue may be closed, but it may be helpful to add a statement in these docs with regard to the 2019.2 release of the Smart Camera Face Detect Demo.