videokit-ai / videokit

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

`var result = await videoKitRecorder.CaptureScreenshot();` causes the app to crash after time #155

Open SimonDarksideJ opened 1 week ago

SimonDarksideJ commented 1 week ago

Summary

no logs as this only seems to exhibit in player testing on device and Unity does not seem to want to express anything, but I have finally managed to replicate the issue in a sample project It had me going for a while as the issue DOES NOT occur in a normal Unity project, justa scene and running on the device However Where it does fall down is when XR is used, AR Foundation and ARCore in this instance ( I haven't re-tested on iOS as yet) As soon as I enabled XR , configured the scene and added the new camera to the RecordingManager, the app just crashes after a second or two.

The image is taken, it can be shared, but crash. However, in both test cases, XR and non-XR, the image could NOT be saved to the device / library using SaveToCameraRoll(), nothing appears on the device

Sample Project

https://1drv.ms/u/s!Aptbw6KVYaU2kNsbM34e3tg5SfxoHw?e=4fpkg0

Tested on

SimonDarksideJ commented 1 week ago

I see full V22 is now out, but unable to re-test due to #156

SimonDarksideJ commented 1 week ago

Re-tested with the latest VideoKit, no change in the issue.

Validated using the sample project attached with the latest release versions and it still crashes