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

Failed to create MLModel from graph data - with VideoKit 0.0.17 - crash or no image from camera. #97

Closed
LoopIssuer opened this issue Jan 24, 2024 · 3 comments
Labels
bug Something isn't working critical Issues of utmost importance ios Issues that affect iOS

Comments

@LoopIssuer
Copy link

LoopIssuer commented Jan 24, 2024

Hi
With the new VideoKit we use HumanTexture. There is an issue - the application crashes after the start or sometimes after the camera start or sometimes there is no crash, but the camera cannot be started after one successful start.
We get 2 kinds of exceptions. Also please take a look into the attached logs:

IOException: Sharing violation on path /var/mobile/Containers/Data/Application/C84AD848-7FCB-4493-8F64-1ABA9BABE661/Documents/natml/ecb071a5a8b17481b15a91b5de309920.nml
NatML.MLEdgeModel.CacheSession (NatML.API.Types.PredictorSession session, System.Byte[] graph) (at <00000000000000000000000000000000>:0)
ArgumentException: Failed to create MLModel from graph data
NatML.MLEdgeModel.Create (System.String tagOrPath, NatML.MLEdgeModel+Configuration configuration, NatML.API.NatMLClient client) (at <00000000000000000000000000000000>:0)

videokitCameraIssue2.txt

videokitCameraIssue.txt

I would like to add, that we already cleared the cache with NatML and Function menu toolbar options - it didn't help.
Tested on: iPhone13,4
OS version: iOS 17.2.1

@olokobayusuf
Copy link
Member

Will get back to you on this, thanks for reporting it.

@olokobayusuf olokobayusuf added bug Something isn't working critical Issues of utmost importance ios Issues that affect iOS labels Jan 25, 2024
@LoopIssuer
Copy link
Author

Hi @olokobayusuf
How is it going with fix for this issue? Currently, we found that it may be connected with changing camera (Camera.Discover()) or camera initialization because we crash when we load a scene with Videokit, unload, load again, etc. and after 5-6 times we have crash. Only on iOS.
So maybe it some kind of memory leak or sth - maybe there is workaround for that?

@olokobayusuf
Copy link
Member

Fixed in VideoKit 0.0.18. Feel free to confirm with the latest VideoKit alpha.

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 ios Issues that affect iOS
Projects
None yet
Development

No branches or pull requests

2 participants