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

Crash on IOS - VKTRecorderCommitSamples #111

Closed Polotas closed 5 months ago

Polotas commented 8 months ago

I'm having an issue when recording, after 1 or 2 minutes of use the app simply closes. Do you have any idea why this problem is happening?

Video Kit 0.0.18 alpha 2

image

olokobayusuf commented 8 months ago

Can you bump to alpha.7?

Polotas commented 8 months ago

I updated to alpha 7 and resolved all conflicts, however, I am unable to record due to this error. I have not modified my setup; would there be any other adjustment required?

Error on Init Recording

Error VideoKit alpha 7

Log

EntryPointNotFoundException: VKTRecorderAppendPixelBuffer assembly:<unknown assembly> type:<unknown type> member:(null)
VideoKit.MediaRecorder.CommitFrame (System.Void* pixelBuffer, System.Int64 timestamp) (at ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.7/Runtime/MediaRecorder.cs:501)
VideoKit.MediaRecorder.CommitFrame[T] (T[] pixelBuffer, System.Int64 timestamp) (at ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.7/Runtime/MediaRecorder.cs:476)
VideoKit.VideoKitRecorder.PrepareEncoder () (at ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.7/Runtime/Components/VideoKitRecorder.cs:696)
VideoKit.VideoKitRecorder.Awake () (at ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.7/Runtime/Components/VideoKitRecorder.cs:633)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <17d9ce77f27a4bd2afb5ba32c9bea976>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <f7237cf7abef49bfbb552d7eb076e422>:0)
UnityEngine.UnitySynchronizationContext.Exec () (at <f7237cf7abef49bfbb552d7eb076e422>:0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <f7237cf7abef49bfbb552d7eb076e422>:0)

Setup

VideoKitSetup

More info

Tested using Unity 2022.3.16f1. VideoKit 0.0.18 alpha 7 The builds for Android and IOS are also not functioning.

Alpha 2 works perfectly on Android. However, the reported error occurs rarely on iPhone, and it happens frequently on iPad. If I set the resolution to VideoKitRecorder.Resolution.Screen, the error occurs less frequently on the iPad. However, any other resolution crashes.

olokobayusuf commented 8 months ago

Alpha 8 is coming soon (EOD today or tomorrow) with a substantial rewrite. Hang tight.

Polotas commented 7 months ago

Is there any news about the new alpha? I've been having this problem for 3 weeks and it's causing some concerns among the team.

olokobayusuf commented 7 months ago

@Polotas Just invited you to the next alpha. You'll need to manually copy the ai.natml.videokit folder in Packages and place it in your project's Packages folder.

olokobayusuf commented 5 months ago

This issue has been fixed in the latest VideoKit alpha builds.