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

animation not exporting / saving - "out of memory"? #51

Open
qbase111 opened this issue Oct 11, 2023 · 2 comments
Open

animation not exporting / saving - "out of memory"? #51

qbase111 opened this issue Oct 11, 2023 · 2 comments

Comments

@qbase111
Copy link

I converted a 500 second mocap into a timeline animation. It worked great on playback but for some reason when I export the animation it doesn't actually save anything. When i go to import, the animation file is not there.

I didn't realize it wasn't actually saving until an hour or so of work.

It works fine with animations that much shorter.... I'm wondering if it has to do with the length of the animation?

There were some different issues, but the 'not saving' is the more consistent issue.

Background, I used BVH player to bake animations in the vam native player.
Then used Timeline to transfer the mocap over.
It worked for a bunch of shorter animations, like i said, but larger one ghost saves.

I was able to save some other animations, but onto some other issues, there was an issue where the animations saved but wouldn't load:

with this error (all the animations work fine in the actual timeline player, so just not sure what can be done)

I just realized first line says "out of memory" ..... hmm i have a beast computer... maybe this is the issue? timeline running out of memory? or my pc?

!> Exception during SaveJSON: System.OutOfMemoryException: Out of memory
at (wrapper managed-to-native) string:InternalAllocateStr (int)
at System.Text.StringBuilder.InternalEnsureCapacity (Int32 size) [0x00000] in :0
at System.Text.StringBuilder.Append (System.String value) [0x00000] in :0
at SimpleJSON.JSONArray.ToString (System.String aPrefix, System.Text.StringBuilder sb) [0x00000] in :0
at SimpleJSON.JSONClass.ToString (System.String aPrefix, System.Text.StringBuilder sb) [0x00000] in :0
at SimpleJSON.JSONArray.ToString (System.String aPrefix, System.Text.StringBuilder sb) [0x00000] in :0
at SimpleJSON.JSONClass.ToString (System.String aPrefix, System.Text.StringBuilder sb) [0x00000] in :0
at SimpleJSON.JSONArray.ToString (System.String aPrefix, System.Text.StringBuilder sb) [0x00000] in :0
at SimpleJSON.JSONClass.ToString (System.String aPrefix, System.Text.StringBuilder sb) [0x00000] in :0
at SuperController.SaveJSONInternal (SimpleJSON.JSONClass jc, System.String saveName) [0x00000] in :0
!> Exception during SaveJSON: System.OutOfMemoryException: Out of memory
at (wrapper managed-to-native) string:InternalAllocateStr (int)
at System.Text.StringBuilder.InternalEnsureCapacity (Int32 size) [0x00000] in :0
at System.Text.StringBuilder.Append (System.String value) [0x00000] in :0
at SimpleJSON.JSONArray.ToString (System.String aPrefix, System.Text.StringBuilder sb) [0x00000] in :0
at SimpleJSON.JSONClass.ToString (System.String aPrefix, System.Text.StringBuilder sb) [0x00000] in :0
at SimpleJSON.JSONArray.ToString (System.String aPrefix, System.Text.StringBuilder sb) [0x00000] in :0
at SimpleJSON.JSONClass.ToString (System.String aPrefix, System.Text.StringBuilder sb) [0x00000] in :0
at SimpleJSON.JSONArray.ToString (System.String aPrefix, System.Text.StringBuilder sb) [0x00000] in :0
at SimpleJSON.JSONClass.ToString (System.String aPrefix, System.Text.StringBuilder sb) [0x00000] in :0
at SuperController.SaveJSONInternal (SimpleJSON.JSONClass jc, System.String saveName) [0x00000] in :0
!> Timeline.MocapScreen.ImportRecorded: System.Exception: Timeline: No motion animation to import.
at VamTimeline.MocapImportOperations.Prepare (Boolean resize) [0x00000] in :0
at VamTimeline.MocapScreen.ImportRecorded () [0x00000] in :0

@acidbubbles
Copy link
Owner

The problem is VaM... at some point, it cannot serialize JSON anymore. There was improvements on both VaM's side and mine to reduce the memory required for it but there's always a limit :)

You can use the "Reduce" feature to remove useless frames, you might need to play with the settings to reduce the loss, but you probably don't need the full original recording resolution.

@qbase111
Copy link
Author

Thanks AB!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants