Closed jkorn2324 closed 3 months ago
@jkorn2324 can you share the Editor logs?
Here is the editor log file from the last time I was able to reproduce it:
@jkorn2324 can you reproduce this in an empty project? Your logs indicate that you've got a number of other packages in your project. We'd need to isolate this issue to VideoKit itself.
I wasn't able to reproduce the issue in an empty project, but was able to still reproduce it in my other project. I did some debugging and what I found was the human texture capabilities functionality caused issues in my project. Whenever I turned the Human Texture Capabilities off, it would freeze Unity completely, but when I turned Human Texture Capabilities on, it would work completely fine.
For some reason, it would still trigger this code block even if there were no Capabilities marked in the Unity Editor:
EDIT: What happened was my capabilities was marked as "2" even if it said "Nothing" in the Unity Editor. Might have been an issue from updating VideoKit from 0.0.17 and 0.0.19.
@jkorn2324 are you saying this issue doesn't happen once you properly set the Capabilities
setting? So Unity freezes when the human texture capability is on, but not off?
Yes - when the Capabilities setting is properly set, everything works fine. But when it isn't (for me the Capabilities setting was set to 2) that's when Unity freezes - when this would happen, the Capabilities would be marked in the Unity Editor as "Nothing" even though the value was 2.
@jkorn2324 I think you can zero out the value by resetting the camera manager component. Click the three dots in the right corner of the component and click Reset
.
Unity freezes forever (no crash) whenever someone first starts running the game and the VideoKitCameraManager is set to Play On Awake. Here is additional info: