Applied Energistics 2

Applied Energistics 2

137M Downloads

A crafting card related, hard to reproduce bug that crashes the server

DoremySwee opened this issue ยท 5 comments

commented

Describe the bug

I'm building the "Move and Select" Command for my ME Based Programmable Computer
And this stupid ME Network that turns the (0~255 cobblestone) data into [7digit 01] data suddenly blew the entire server up when I'm testing it.
So, the situation becomes really complicated, I think I can't even reproduce this bug at all.
And, I'm unwilling to publish the save to the public, at least, not yet, since I'm still working on it.
MC version: 1.17.1
Mods: 1.17.1-Forge 37.0.103
appliedenergistics2-9.0.0-beta.1
worldedit-mod-7.2.7

The Broken World

The problem occurred when the ME export bus with crafting card was attempting to "craft" something.
I also tried ME interface in the same ME network, and it also shut down the server.

NamelessScourge, the ME Export Bugggggggg

Here is how the network(part) should work:
Step1: input cobblestones
Step2: Emitter lights up, letting the export bus to publish crafting assignments
Step3: Successfully Assigned
Here is when the server shuts down.
Step4: Cobblestone thrown into the matter condenser, and expected [Renamed Stones] gets back to the network

The ME Network that blew the server up without explanation
The ME Network that blew the server up with explanation
Explanation2

The PatternProvider Aims at a Matter Condenser. I broke it, and tested the server again, and the server was blew up again and again.
That is, the problem wasn't about the item delivery to the PP, or the item returning from outer system, it was about the "Crafting mission allocation for CPU" or "item delivery to CPU" or "Crafting tree calculation" under that circumstance.

Here comes the second ridiculous thing: I tried publish the crafting assignment manually, and everything went perfectly, even though I reassembled the ME network all together.
After this, I retried the experiment I did before, and the export crashes the entire server again.

Now, here comes the most weird series of events
1 I built a similar ME network but differently shaped and without ME Controller but with Creative Cell filled with cobblestones, as shown in the picture, and everything went well.
The ME Network that doesn't blow the Server up
2 I simplified the structure as following, problems occurs still. Both by copying and Hand building
AA

3 I replaced the 64k cell with creative one full of cobblestones, and things went well.
4 I replaced the creative cell in "The ME Network that doesn't blow the Server up" with a 64k cell and everything went on well????????????????
5:
Just another ME bomb
6:
Just Another Server Crasher
crash-2022-01-02_17.21.22-server.txt

How to reproduce the bug

Unknown.
The Bug took place on the server.
Wrong_World202201021815.zip

Expected behavior

[The server should not crashes]

Additional details

No response

Which minecraft version are you using?

1.17

On which mod loaders does it happen?

Forge

Crash log

https://pastebin.com/61VDxDGZ

commented

Was fixed in 1.18...

commented

Was fixed in 1.18...

Can we have a bug-free version...
I've carried this project from 1122 to 1165 and now 1171, due to all kinds of bugs

commented

Was fixed in 1.18...
So What is the bug, can I avoid it?

commented

IIRC this happens when some items that the system was planning to use for the crafting task are not available anymore the moment it is started.

commented

But yeah, we don't have time to backport fixes to 3 versions, forge and fabric, so this is unfortunately going to remain a bug in 1.17.