Open AlexanderSlav opened 1 year ago
Hi,@RomanArzumanyan, what is your thoughts ?
Hi @AlexanderSlav
I'm now supporting VPF as community member so less bandwidth to investigate and fix. Following the general approach I'd ask if the problem is specific to Docker environment or reproduces on bare metal as well?
@theHamsta @gedoensmax Could you please take a look?
P. S. Extending the API test coverage would also be helpful: https://github.com/NVIDIA/VideoProcessingFramework/blob/master/tests/test_PySurface.py
Thanks for reply ! Did not try it on bare metal due to our way of work politic. We are not installing anything directly on host machine Will check the API coverage test, thanks !
So, how to crop surface?
Hi @qiaoxuekang
Please consider checking out https://github.com/RomanArzumanyan/VALI, it's a VPF successor which is actively developed and maintained. It has compatible API and module naming.
If this issue reproduces on latest VALI version, please submit a bug.
Describe the bug While trying to use the surface.Crop function in docker container (not original one), I encountered a segmentation fault error. The program crashes when trying to crop a decoded surface. In original docker container, the function call results in the program freezing indefinitely.
To Reproduce
Run the following code snippet that reproduces the error:
in my work dokai container i got following log:
Expected behavior The surface.Crop function is expected to create and return a new surface that is a cropped version of the original decoded surface without causing a crash or freeze.
Desktop
Additional context I initially encountered this problem in a container based on the dokai image - https://github.com/osai-ai/dokai/tree/master#vpf. I also attempted to reproduce the error in the original VPF docker container. While I couldn't fully reproduce the segmentation fault, the call to surface.Crop resulted in the program freezing indefinitely with following log: