IntelLabs / IntelLabs/vdms

VDMS hangs when the test case does a request to udf_server or udf_local and they don't respond with a valid response

Open
#239 0 comments 0 reactions 1 assignee Claimed by @rv355 View on GitHub
Bug
Dominant language
C++
Stars
93
Forks
34
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
VDMS keeps in an infinite loop when it doesn't receive a valid response from the udf_server or udf_local servers

**To Reproduce**
Steps to reproduce the behavior:

1. Open the udf_local.py file located at tests/udf_test directory.
2. Edit the file and add an invalid module name to be imported.
For example add the line "import blahblah" in the first line of the file.

![udf_local_issue_01](https://github.com/user-attachments/assets/783a9730-ccc8-4f65-abe9-8096db3b2da5)

3. Go to the tests directory.
4. Run the following command:
```shell
./run_tests.sh -n VideoTest.UDFWriteWithMetadata
```
You could test the same issue with other test cases related to UDF:
```shell
./run_tests.sh -n CLIENT_CPP.add_image_dynamic_metadata
```
5. Verify the log file called "tests/tests_udf_log.log" displays an error message related to the invalid module name "blahblah"
![udf_local_issue_02b](https://github.com/user-attachments/assets/86ffe0cc-b2c3-4924-b717-f674d79869b0)

7. Verify the test called "VideoTest.UDFWriteWithMetadata" never ends and VDMS hangs.
![udf_local_issue_03](https://github.com/user-attachments/assets/63518aba-0c37-469e-83f6-08e5720277f9)

**Expected behavior**

- VDMS should handle the error by setting a timeout to the sockets in Video.cc and Image.cc files
- VDMS should return an error once the timeout error is thrown
- The test case should fail.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.