So I am using a timeline and avpro to play 17 dk clips in a sequence and for the most part everything is working fine and all of the clips are playing back. However, 7 of them keep giving me this error both in editor and during runtime, and I believe these errors are also responsible for crashing the quest build as well.
The other 10 Depthkit playback objects were doing this at one point as well, and clicking generating data in the “Depthkit Core Visual Effect Graph Texture Source” solved the issue. However, for 7 of them I generate new data and error stops, then in runtime the error comes back and after exiting the play mode the errors persist until I regenerate the data again. As far as I can tell everything is same between the 10 that are fine and the 7 that aren’t, besides position data and the files video/poster/text files being used in the depthkit and avpro scripts, and that when I hit generate data or playback ends, the 10 that work have their DataWidth and Height reset to 0s in the vfx graph, while the 7 that are giving errors have their DataWidth and Height reset to 1s or 256s. I’ve included screenshots of my timeline showing one of the working clips on top and one of the error clips below it if that helps.
I have been able to get around this in playmode with a script that calls the generate function of the Core VFX graph texture source at start for those seven clips, but the issue still persists when in the editor. Any insight into why this is happening would be great and let me know if I can provide any more info! Thanks!
This is complex one for sure, thanks for bringing it up. We’ll take a look at reproducing on our side and see if we can address it or have further questions for you.
Hi, @WhittSellers. We think we have identified the cause of this issue, and it should be fixed in the upcoming version of our Unity plugins. We’ll let you know when it’s available.
Any chance you are able to say if the new plugin will be tested with Unity 2022? Would love to start prepping experience with depthkit for the Apple Vision Pro!
Great question! @WhittSellers we are sticking to 2020.3 LTS for this next release. We plan to do a seperate release dedicated to testing 2022 in anticipation of Apple Vision Pro very soon!
Hey @CoryAllen I’ve upgraded to the new package in one of my projects, but I’m getting a new error now when scrubbing through the timeline and when by timeline loops during playmode/runtime.
Thanks for going through the upgrade path to test the new Phase 9. Sorry to see you are still encountering issues. We haven’t seen this error before, and since there is no strack trace I’m not sure it is directly related to Depthkit
Can you confirm that you are using Unity 2020.3 LTS, which is what we test against? Also if its possible to start a clean project to create a minimal reproduction of the issue so we can see it on our side, that would be really helpful.
I’ll see about creating a new scratch project to test as soon as I can as well!
One thing to note, this error is actually happening in a second project I’m working on that doesn’t use AVPro2, only the default Unity video player. I will upgrade the package in my other project that uses avpro2 and let you know how it goes there as well!
@WhittSellers We haven’t been able to reproduce the issue on our side, but after searching around for similar issues in Unity, our team found a thread that seems to indicate that the issue may be resolved by disabling deleting the Depthkit object, and reconstructing it from scratch. If this from-scratch approach solves the issue, this could indicate that it’s related to upgrading the packages in an existing project. Try that and let us know what your results are - Thanks!
Hi @WhittSellers, I was finally able to repro this issue, and it is quite odd. It does seem to be related to disabling / enabling Mesh Source components, and some internal state of the Mask Generator seems to be getting corrupted. I don’t yet have a fix for you unfortunately, but at least I can interrogate the problem now.
As a temporary work around, you may be able to get away with disabling just the Look component, rather than the entire game object if that is what your timeline is doing now.
Thank you @Tim for continuing to investigate! I Tried your suggestion and that appears to have fixed it for now! However that was just in one project, the one I’ll see about upgrading the plugin in the project this started with and report back on that next.
Followed up via email, but tested the patched version today and it appears to have solved my issues both in editor while scrubbing the timeline and in playmode, and in executable builds on both PC and Android! Thank y’all so much!