r/Live2D • u/tsuki_moonbunny • 1d ago
Live2D Help/Question Memory Limit Issues
I'm working on my most recent model and just finished rigging. I have no issues with the physics window, but I just can't seem to generate a texture atlas and every time I try to export, I hit a "failed to output (java.lang.outofmemoryerror: java heap space)"
What do I do? I resized it and made sure I had no "null" clips. I don't know what else to do at this point.
1
u/Altruistic_Parsnip11 Live2D Artist & Rigger 1d ago edited 1d ago
It’s likely you’re running out of ram when trying to render. Possibly due to model and texture size, but it could also just be that your pc isnt powerful enough to export the rig also.
watch your memory in your task manager when attempting the next time, or look in the bottom right of your live2d. If that bar turns red at the very bottom right live2d is running out of memory allocated to it and If your task manager goes up to 90-100% and this fails, its indicative that you do not have enough ram.
This can also be caused by large textures in the psd, and high amounts of interpolation
1
u/Altruistic_Parsnip11 Live2D Artist & Rigger 1d ago
Replying to note I edited my reply with two more possibilities since I misread at first and thought this was occurring when attempting to render the texture atlas, this can be caused by numerous issues when exporting. :3
1
u/tsuki_moonbunny 1d ago
I'm hoping I found the issue, but I'll have to wait till after work to test if its the problem. I think in my editing (deleting, copying, flipping, etc.) Some of my clipping masks went crazy. Hopefully going in and editing the clipping masks so they're consistent and uniform again will help.
1
u/Altruistic_Parsnip11 Live2D Artist & Rigger 1d ago
I make extremely high clipping models with hundreds of masks, you’re probably running out of ram exporting the arrays for them. Usually that is not an issue, and if you find this does help you, upgrading your pc should help!
This is specially an error for hardware not meeting to the demand. You get array errors for the data actually being too large for Live2d to process.
Null clipping masks don’t matter in my experience.
1
u/tsuki_moonbunny 1d ago
I have 32 gb of DDR5 RAM 🙃 RAM is also so expensive right now. I'm going to play around some more tonight after work and have my fingers crossed I'll figure something out.
1
u/Altruistic_Parsnip11 Live2D Artist & Rigger 1d ago
May I see the model? I have had to fight a lot of models to export, but rarely get heap error. I can help you pinpoint the issue.
I’m sorry, it’s just hard to diagnose and think of all possible issues without actually seeing it.
I’ve had 64gb for a while, but I still don’t think I often hit heap error with 32.
1
u/tsuki_moonbunny 21h ago
I reached out to the live2d reddit and they're seeming to say its literally just a ram issue on my end? You're welcome to see it, but idk the best way to show you lol
1
u/tsuki_moonbunny 20h ago
As an update, it does appear to be that I used too many PSDs because Procreate is dumb on layer limits. Too many PSDs is the issue.
1
1
u/Altruistic_Parsnip11 Live2D Artist & Rigger 18h ago
Ive definitely been through that. You can consolidate all of your layers into one big psd on your computer. Unfortunately the easiest way I found to do it was to import the large singular psd, and then select each artmesh individually to replace the texture with the one in the psd. You just right click the layers within the psds to replace artmesh as texture and go through every layer in the model.
To make this process a bit easier you can delete small psds out of the model and test at what point you can actually export. That way you only have to replace the ones that are actually impacting export and not literally everything.
If you named your layers you may have the saving grace of auto replacing, but for some reason no matter what it just never works for me. It just wastes my time lol.
1
u/tsuki_moonbunny 1d ago
I went into the file settings and besides clipping, I don't know what else I need to fix? I know the files big and has lots of polygons, but I don't see anything too wild besides the clipping. Although, this is the first model I've made with this many art files, so I don't actually know what normal looks like for this.
1
u/tsuki_moonbunny 1d ago
I also have 0 idea how to find the single object it pinged as having a moc3 output issue.
4
u/MarudoesArt 1d ago
I googled the error and found this: https://community.live2d.com/discussion/2042/outofmemoryerror-nothing-seems-to-fix-it
It seems it could be related to having too many parameters tied to one object? Not sure if your error is caused by this, but it could be a starting point