videokit-ai / videokit

Low-code, cross-platform media SDK for Unity Engine. Register at https://videokit.ai
https://videokit.ai
Apache License 2.0
93 stars 14 forks source link

Unity Editor freezes or the video never finishes recording after the first run #120

Closed degerhandeger closed 3 months ago

degerhandeger commented 4 months ago

The issue happens on 0.0.18-alpha.8 . Steps to reproduce the issue: 1) Play the Unity Editor for the first time 2) Start a recording 3) Stop the recording 4) View the recorded video 5) Stop the Unity Editor 6) Play the Unity Editor (2nd time) 7) Start a recording 8) Stop recording 9) Unity Editor freezes or No Recorded video from VideoKit.

The editor logs for Unity freezing & not finishing recording cases are attached.

Unity_Editor_Freezes.log VideoKit_Never_Finishes_Recording.log

degerhandeger commented 4 months ago

The issue still happen on 0.0.18-alpha.12 . The Unity Editor keeps freezing after the first run in our project. Attached are the logs.

Editor.log

degerhandeger commented 3 months ago

Still happens on 0.0.18-alpha.13 . The Unity Editor keeps freezing after the first run in our project. Attached are the logs.

Editor.log

degerhandeger commented 3 months ago

This issue is not exclusive to Windows. It happens on MacOS as well.

olokobayusuf commented 3 months ago

@degerhandeger I can't reproduce this on macOS.

Screenshot 2024-05-28 at 12 29 12 PM

Can you share your recorder settings? I want to first reproduce and fix it on macOS before doing the same on Windows.

olokobayusuf commented 3 months ago

Also cannot reproduce this on Windows with the latest alpha build, alpha 15.

degerhandeger commented 3 months ago

The Editor continues to freeze on alpha.15 for us. I reproduced the issue by doing the steps mentioned above. Attached are the Editor logs & recorder settings. Also, I don't know whether this would be useful but, removing the Audio mode gave a different error, the Editor did not freeze when it ran for the second time. I also attached this error's screenshot.

Editor.log

recorder-settings removing-audio-mode
olokobayusuf commented 3 months ago

Fixed in VideoKit 0.0.18-alpha.18