Applied Energistics 2

Applied Energistics 2

156M Downloads

AE2 Crafting bug/Crash

Trist2000 opened this issue ยท 15 comments

commented

Describe the bug

When using AE2 Crafting Monitor to bulk craft anything, i.e. holding shift +clicking, dedicated server crashes.

How to reproduce the bug

Craft ANY blocks in the AE2 Portable Crafting monitor in mass, i.e. use shift click to craft multiple blocks at once.

Expected behavior

Server kicks players and ram cycles into high/low states until someone attempts to rejoin then it crashes.

Additional details

No response

Which minecraft version are you using?

1.19

On which mod loaders does it happen?

Forge

Crash log

https://pastebin.com/F9fYDCM8

commented

Hi, could you provide a spark profile of the server while it is lagging? This will make debugging this a lot easier. Thanks!

commented

I am attempting to get a spark report but as soon as I mass craft any block from the remote crafting terminal the server hangs up and does not accept any commands to get the profiler to upload any results.

commented

you could try to reduce the amount until it does not crash, since this crash is a timeout crash you just have to wait 1 minute and hope it survives and then upload the profile

commented

I have tried multiple times just taking 4 wood (2 in crafting area for pressure plate, 2 in me system) and when i shift click the craft to grab multiples it kicks me, then server hangs with the high/low ram usage for a while then just crashes.

commented

Could you maybe use another profiling method then? (VisualVM or JFR for example)

commented

https://spark.lucko.me/YUxAIe6QyB finally got the spark to work durring a mass crafting

commented

Hi, thanks a lot, that's very insightful. This should already be addressed by #6514. Can you update to AE2 version 12.2.0 and check whether the issue still occurs ? Thank you.

commented

May I ask how many kinds of items are in your network? It looks like you have a colossal amount of different types of stored items.

commented

Ok, https://spark.lucko.me/bVnBRAnSJd I have updated both ae2 and jei to the latest's and it is alot better. Still a small stutter but nothing like it was! G/j :)

commented

https://spark.lucko.me/RabOrKq5r8 ok, all in all its livable now. only slight lagging so not too bad, could be from the i7 computing and not a server, but its alot better all in all. Let me know if ya need any more diagnostics or anything.

commented

Further testing with different items, First was turning hay bales into wheat, this one is turning wheat into hay bales, https://spark.lucko.me/mtsYrU7efY. The first was quick, second not so much, will test with different items and see if there is any that causes a large lag like before.

commented

image
image
image
image
image
image
That is everything in it. Only thing ive got alot of is the Inferium Essence, and Prosperity Shards from Mystical agriculture. So unsure if this would be the cause of such an issue. I feel like iv had me systems in the past with a LOT more than this.

commented

That's indeed not that much, we will investigate. Thanks!

commented

Sounds good, also not sure if its an conflict issue with the mod biggerstacks-1.19-1.1 could be causing issues converting data from one type to another as far as how stack size is handled? but your welcome! thx for doin what ya do!

commented

Not really, it's more of a performance issue with the data structure we use to represent stacks in the ME network as far as I can tell (nested hashmap).
PS: You're welcome :)