natmlx / videokit

Low-code, cross-platform media SDK for Unity Engine. Register at https://hub.natml.ai
https://docs.videokit.ai/videokit
Apache License 2.0
75 stars 12 forks source link

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

Open RajParab opened 1 week ago

RajParab commented 1 week 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 1 week 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 1 week ago

Also, are you on the macOS or Windows editor?

RajParab commented 1 week ago

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

RajParab commented 1 week ago

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

olokobayusuf commented 1 week ago

Fix coming in 0.0.19.

olokobayusuf commented 1 week ago

Fixed in 0.0.19.

RajParab commented 1 week ago

Would like to know what was the issue and fix

RajParab commented 1 week ago

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

olokobayusuf commented 1 week 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 6 days 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 1 day ago

@olokobayusuf Any update on this issue??