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

PyAVSource raises 'StopIteration' exception for Windows #86

Open
pabvald opened this issue Feb 15, 2022 · 2 comments
Open

PyAVSource raises 'StopIteration' exception for Windows #86

pabvald opened this issue Feb 15, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@pabvald
Copy link

pabvald commented Feb 15, 2022

When the video has been consumed by PyAVSource and there are no frames left, the exception StopIteration is raised by the yield statement within the frame_gen() function.

@Bengt
Copy link
Contributor

Bengt commented Feb 15, 2022

Hi @pabvald,

thanks for reaching out. That sounds like it might be by design, actually. @MichaelBarz is this intentional?

Regards,
Bengt

@MichaelBarz MichaelBarz added the bug Something isn't working label Feb 15, 2022
@MichaelBarz MichaelBarz added this to the msp v2.2.0 milestone Feb 15, 2022
@MichaelBarz
Copy link
Member

No, not really. The error should be catched and the source should automatically stop (and with it, the pipeline). This should be fixed in the next bugfix release and we should add (or adapt) the corresponding tests. Actually, I wonder why our tests did not reveal this issue.

A workaround will for sure be to catch the error in your code and stop the pipeline in the finally block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants