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

If you call Stream::hasNewFrame(), can m_newFrame be undefined? #71

Open
nowakf opened this issue Nov 2, 2023 · 1 comment
Open

If you call Stream::hasNewFrame(), can m_newFrame be undefined? #71

nowakf opened this issue Nov 2, 2023 · 1 comment

Comments

@nowakf
Copy link

nowakf commented Nov 2, 2023

So if you call Stream::hasNewFrame() before you've captured any frames, what's the value of m_newFrame?

I ran into a 'illegal instruction' when I build this with zig cc, so I guessed what was happening was it was getting caught by one of clang's sanitizers: whatever value m_newFrame is, it shouldn't actually matter, so it runs just fine when you turn off all the sanitizers.

@nowakf
Copy link
Author

nowakf commented Nov 2, 2023

PS: I had a look at it in gdb, and m_newFrame looks like garbage to me: it's got a value of 152 right now, which seems funny for a bool.

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