Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rolandoquesada opened this issue Oct 24, 2024 · 0 comments
Assignees
Labels
Bug Indicates unexpected or undesired behaviors

Comments

@rolandoquesada
Copy link
Contributor

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

  1. Go to the tests directory.
  2. Run the following command:
./run_tests.sh -n VideoTest.UDFWriteWithMetadata

You could test the same issue with other test cases related to UDF:

./run_tests.sh -n CLIENT_CPP.add_image_dynamic_metadata
  1. 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

  2. Verify the test called "VideoTest.UDFWriteWithMetadata" never ends and VDMS hangs.
    udf_local_issue_03

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.
@rolandoquesada rolandoquesada added the Bug Indicates unexpected or undesired behaviors label Oct 24, 2024
@rv355 rv355 self-assigned this Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indicates unexpected or undesired behaviors
Projects
None yet
Development

No branches or pull requests

2 participants