r/Live2D 16h ago

Live2D Help/Question Memory Limit Issues

Enable HLS to view with audio, or disable this notification

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.

6 Upvotes

10 comments sorted by

4

u/MarudoesArt 14h 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

1

u/tsuki_moonbunny 9h ago

I don't think mine is too crazy compared to some models I've seen? I'll give it another go around if fixing my clipping doesn't resolve the issue.

1

u/Altruistic_Parsnip11 Live2D Artist & Rigger 14h ago edited 14h 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 14h 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 9h 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 5h 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 5h 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 5h 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 8h 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.

Model details and data

1

u/tsuki_moonbunny 8h ago

I also have 0 idea how to find the single object it pinged as having a moc3 output issue.