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

VideoKit 0.0.15 crashes on launch in Windows Release build #78

Closed visualmusicdesign closed 11 months ago

visualmusicdesign commented 1 year ago

Getting ready to release with VideoKit 0.0.15 integrated for the first time.

- VideoKit is working perfectly on Windows in the Unity Editor 2021.3.31f. 

- I have loaded my access key in the Preferences

- In a Windows release build, I receive the following error in the log, and VideoKit 0.0.15 does not function in either Mono or IL2CPP builds for me when running on Windows 11:

Uploading Crash Report NullReferenceException: Object reference not set to an instance of an object. at VideoKit.Internal.VideoKitSettings.CheckSession () [0x00000] in <00000000000000000000000000000000>:0 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 at VideoKit.Internal.VideoKitSettings.CheckSession () [0x00000] in <00000000000000000000000000000000>:0 at VideoKit.Internal.VideoKitSettings.Awake () [0x00000] in <00000000000000000000000000000000>:0 at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 at VideoKit.Internal.VideoKitSettings.Awake () [0x00000] in <00000000000000000000000000000000>:0 --- End of stack trace from previous location where exception was thrown ---

at VideoKit.Internal.VideoKitSettings.Awake () [0x00000] in <00000000000000000000000000000000>:0 at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <00000000000000000000000000000000>:0 at VideoKit.Internal.VideoKitSettings.Awake () [0x00000] in <00000000000000000000000000000000>:0 --- End of stack trace from previous location where exception was thrown ---

at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.UnitySynchronizationContext.Exec () [0x00000] in <00000000000000000000000000000000>:0

visualmusicdesign commented 1 year ago

Just tested running the camera to a Camera View on an empty URP project release build.

Works fine.

So the issue could be related to something specific in my app's project - I wonder if it could have anything to do with the fact that my app's repository on Windows was cloned from git?

It's bizarre that it works perfectly in my app in the Editor too.

visualmusicdesign commented 1 year ago

I tried to replicate the set up of VideoKit in my app's scene in the test scene exactly... Can't get the test scene to throw the error in the release build.

Can't possibly think of what would cause this in my app's release build...

I really hope you may possibly have a solution on Monday...

Thank you

olokobayusuf commented 1 year ago

Fix confirmed and coming in 0.0.16.

olokobayusuf commented 11 months ago

Fixed in VideoKit 0.0.16.