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

ArgumentException: Value does not fall within the expected range. #129

Closed RajParab closed 3 months ago

RajParab commented 5 months ago

I am trying to record video using VideoKit in an empty project but when I click the start button I get this error

I am not exactly sure why is it not able to get the width of the screen

this is my recorder component image I did try all the options in Resolution

It would be nice if anyone can tell what am I missing here

Thanks

Full Stack - ArgumentException: Value does not fall within the expected range. VideoKit.Internal.VideoKit.Throw (VideoKit.Internal.VideoKit+Status status) (at ./Library/PackageCache/ai.natml.videokit@0.0.18/Runtime/Internal/VideoKit.cs:851) VideoKit.MediaRecorder.get_width () (at ./Library/PackageCache/ai.natml.videokit@0.0.18/Runtime/MediaRecorder.cs:94) VideoKit.Sources.CameraSource..ctor (VideoKit.MediaRecorder recorder, VideoKit.Clocks.IClock clock, UnityEngine.Camera[] cameras) (at ./Library/PackageCache/ai.natml.videokit@0.0.18/Runtime/Sources/CameraSource.cs:59) VideoKit.VideoKitRecorder.CreateVideoInput () (at ./Library/PackageCache/ai.natml.videokit@0.0.18/Runtime/Components/VideoKitRecorder.cs:647) VideoKit.VideoKitRecorder.StartRecording () (at ./Library/PackageCache/ai.natml.videokit@0.0.18/Runtime/Components/VideoKitRecorder.cs:478) System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) (at <51fded79cd284d4d911c5949aff4cb21>:0) UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <834804db60ae4eb981294088cf979056>:0) UnityEngine.UnitySynchronizationContext.Exec () (at <834804db60ae4eb981294088cf979056>:0) UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <834804db60ae4eb981294088cf979056>:0)

olokobayusuf commented 4 months ago

Hey @RajParab , can you share the Editor.log? To get the editor logs, open the Console tag and in the top-right, there is an expander menu (three dots). Click it and open the editor logs. Try reproducing this error then share the logs once the exception is raised. Thanks.

olokobayusuf commented 4 months ago

Also, are you on the macOS or Windows editor?

RajParab commented 4 months ago

I am windows user Will share the console exceptions in some time

RajParab commented 4 months ago

Hello @olokobayusuf Here is the editor Log file that you asked for Editor-log.txt

olokobayusuf commented 4 months ago

Fix coming in 0.0.19.

olokobayusuf commented 4 months ago

Fixed in 0.0.19.

RajParab commented 4 months ago

Would like to know what was the issue and fix

RajParab commented 4 months ago

After updating the application now the entire Unity App seems to be crashing

olokobayusuf commented 4 months ago

After updating the application now the entire Unity App seems to be crashing

I've reopened the issue. If you face errors or a crash, always include logs. It's impossible to know what the cause is from only stating that a crash happens.

RajParab commented 4 months ago

Yes I should have attached the log

I missed that as I was busy with some other tasks

Here are the files that are being sent with the bug report to Unity

crash-report.zip

RajParab commented 4 months ago

@olokobayusuf Any update on this issue??

olokobayusuf commented 4 months ago

@RajParab not yet, should have some news on Monday.

olokobayusuf commented 3 months ago

@RajParab can you try out VideoKit 0.0.21? We haven't been able to reproduce this issue.