videokit icon indicating copy to clipboard operation
videokit copied to clipboard

Crash on IOS - VKTRecorderCommitSamples

Open Polotas opened this issue 1 year ago • 5 comments

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

Polotas avatar Mar 13 '24 19:03 Polotas

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/[email protected]/Runtime/MediaRecorder.cs:501)
VideoKit.MediaRecorder.CommitFrame[T] (T[] pixelBuffer, System.Int64 timestamp) (at ./Library/PackageCache/[email protected]/Runtime/MediaRecorder.cs:476)
VideoKit.VideoKitRecorder.PrepareEncoder () (at ./Library/PackageCache/[email protected]/Runtime/Components/VideoKitRecorder.cs:696)
VideoKit.VideoKitRecorder.Awake () (at ./Library/PackageCache/[email protected]/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.

Polotas avatar Mar 14 '24 08:03 Polotas

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

olokobayusuf avatar Mar 14 '24 19:03 olokobayusuf

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.

Polotas avatar Apr 03 '24 17:04 Polotas

@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 avatar Apr 07 '24 15:04 olokobayusuf

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

olokobayusuf avatar May 28 '24 20:05 olokobayusuf