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

[Bug] Infinite waiting state on stop video recording operation #85

Open
KannappanChida opened this issue Jul 31, 2023 · 0 comments
Open

Comments

@KannappanChida
Copy link

KannappanChida commented Jul 31, 2023

General information:

  • OS name: Fedora
  • OS version: 36
  • OS architecture: 64 bits
  • Python version: 3.8.16
  • mss version: 6.0.0
  • pygtk usage: yes/no

Description of the warning/error

Infinite waiting state on stop video recording operation

Full message

When the stop video recording keyword is called , its entering infinite waiting state,  specifically on the statement futures.result(), since timeout is not defined, its waiting infinitely to get the future result value.

Proposed Fix

  As part of fix, can we add timeout as parameter when making futures.result()  call 
  Fix:  futures.result(timeout=60)

Stack Trace

File "/conda/envs/conda_robot_framework/lib/python3.8/site-packages/robot/running/librarykeywordrunner.py", line 92, in <lambda>
  return lambda: handler(*positional, **named)
File "/conda/envs/conda_robot_framework/lib/python3.8/site-packages/ScreenCapLibrary/library.py", line 376, in stop_video_recording
  recording.stop_video_recording(save_to_disk)
File "/conda/envs/conda_robot_framework/lib/python3.8/site-packages/ScreenCapLibrary/videoclient.py", line 60, in stop_video_recording
  self._stop_thread()
File "/conda/envs/conda_robot_framework/lib/python3.8/site-packages/ScreenCapLibrary/client.py", line 246, in _stop_thread
  self.futures.result()
File "/conda/envs/conda_robot_framework/lib/python3.8/concurrent/futures/_base.py", line 439, in result
  self._condition.wait(timeout)
File "/conda/envs/conda_robot_framework/lib/python3.8/threading.py", line 302, in wait
  waiter.acquire()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant