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

VideoKit 0.0.15 crashes on launch in Windows Release build #78

Closed
visualmusicdesign opened this issue Nov 17, 2023 · 4 comments
Closed
Labels
bug Something isn't working critical Issues of utmost importance windows Issues that affect Windows

Comments

@visualmusicdesign
Copy link

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

visualmusicdesign commented Nov 17, 2023

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

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 olokobayusuf added bug Something isn't working critical Issues of utmost importance windows Issues that affect Windows labels Nov 20, 2023
@olokobayusuf
Copy link
Contributor

Fix confirmed and coming in 0.0.16.

@olokobayusuf
Copy link
Contributor

Fixed in VideoKit 0.0.16.

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

No branches or pull requests

2 participants