Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on IOS - VKTRecorderCommitSamples #111

Closed
Polotas opened this issue Mar 13, 2024 · 6 comments
Closed

Crash on IOS - VKTRecorderCommitSamples #111

Polotas opened this issue Mar 13, 2024 · 6 comments
Labels
bug Something isn't working ios Issues that affect iOS

Comments

@Polotas
Copy link

Polotas commented Mar 13, 2024

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
Copy link
Contributor

Can you bump to alpha.7?

@olokobayusuf olokobayusuf added bug Something isn't working ios Issues that affect iOS labels Mar 13, 2024
@Polotas
Copy link
Author

Polotas commented Mar 14, 2024

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
Copy link
Contributor

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

@Polotas
Copy link
Author

Polotas commented Apr 3, 2024

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
Copy link
Contributor

@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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ios Issues that affect iOS
Projects
None yet
Development

No branches or pull requests

2 participants