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

Editor freezes on shutdown after camera fails to render #22

Closed
rakkar1974 opened this issue Mar 26, 2023 · 4 comments
Closed

Editor freezes on shutdown after camera fails to render #22

rakkar1974 opened this issue Mar 26, 2023 · 4 comments
Labels
bug Something isn't working critical Issues of utmost importance windows Issues that affect Windows

Comments

@rakkar1974
Copy link

Editor is freezing when starting multiple times, using VideoKitCameraManager. It always works the first time. Then there is about a 25% chance of freezing when stopping play mode every subsequent run. I know in advance when it will freeze because the camera doesn't initialize.

I thought the problem was domain reload, but after turning off domain reload it still happened.

In the inspector window, I disabled the game object that held VideoKitCameraManager and the editor continued to work. However, with it disabled, I then removed the component in the editor window the the editor froze up.

This happens with the sample from your website

@olokobayusuf olokobayusuf added bug Something isn't working critical Issues of utmost importance windows Issues that affect Windows labels Mar 26, 2023
@rakkar1974
Copy link
Author

I tried a similar experiment with the Unity WebCamTexture and the Windows Camera app. Both of them act similarly at about the same % chance to fail to render on start. However, with those two I am able to stop play mode and stop the app normally, and the camera will work if I try again.

Oddly enough, the same camera has never failed to start rendering when using Google Meet.

@olokobayusuf
Copy link
Contributor

I tried a similar experiment with the Unity WebCamTexture and the Windows Camera app. Both of them act similarly at about the same % chance to fail to render on start.

This is good to know. It means the root cause is instability in Windows MediaFoundation.

However, with those two I am able to stop play mode and stop the app normally, and the camera will work if I try again.

Yup we'll fix this in the upcoming update.

Oddly enough, the same camera has never failed to start rendering when using Google Meet.

If you're using Google Meet in a browser, then it's likely cos your browser effectively keeps the camera around, even though it isn't streaming. So you're effectively not doing a cold start

@rakkar1974
Copy link
Author

This also occurs with a Logitech BRIO 300

@olokobayusuf
Copy link
Contributor

This has been fixed in the upcoming VideoKit 0.0.18 update. Feel free to test out the current alpha builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical Issues of utmost importance windows Issues that affect Windows
Projects
None yet
Development

No branches or pull requests

2 participants