Applied Energistics 2

Applied Energistics 2

156M Downloads

Using a crafting card in ME Interface with the config slots freezes all ME Systems on the server

yorii opened this issue · 9 comments

commented

Describe the bug
Something causes all ME Systems to freeze up when trying to use a crafting card in an ME Interface for automatic stockpiling and autocraft ordering of specified items.

To Reproduce
ME Interface with crafting card, a storage bus attached to it, and any items which have a corresponding pattern elsewhere in the system loaded into the Config slots.

Expected behavior
ME Interface holds the amount of items specified in config slots, orders autocrafting when the amount is below the configured value.

Additional context
Does not produce anything in any log output, server still runs fine, no player can access any of their ME storage as long as the ME Interface has the Crafting Card/Config Slots configured like this.

Environment
All of Fabric modpack 2.4.4
MC 1.16.4 + AE2 8.1.0-alpha.12 (Fabric)

commented

Bug persists in Fabric v8.4.0-alpha.2

commented

Fabric 1.16 is not supported anymore, this is probably fixed in 1.17.

commented

(The crafting card-interface stocking structure may be linked to the freeze. although I can't get it to work in a local server, on the multiplayer server it may be related)
(So far I'm still having no luck on replicating, This may be linked to a setup from another server member)
(Edit: using the word terminal instead of interface incorrectly)
I may have a similar issue but I have not been able to connect it to anything as of yet on an open server, I'll try to recreate on a local server also.
Same modpack, however the server has been updated to the 2.5.4 version (the issue still persists)
Some descriptions of whats happening to me:

1.When logging in after a while it will work for around a minute.

2.At some point, taking an item out, will visually cause the type of item (number of items is irrelevant) to disappear, I can continue in this manner, other items are still visible. Note once this effect starts to occur all auto crafting/interface recipes will stop working (I can click to craft up untill the start button which shows the recipe is available, but clicking yeilds no effect or change on UI)

3.After the above point has begun to occur, leaving and re-entering the terminal (or any terminal on the system) will result in no items being available (visually, it is similar to not having any storage in the system, bright UI - indicating power - but nothing there). At this point items can still be deposited (given there is space in storage drives) however there is no representation of deposited items; items can not be removed from the system through a terminal in this stage (Import/Export buses and other peripherals will still work).

4.Leaving the terminal to shuffle the ME drive disks (or break and replace the ME drive) will cause the issue to revert back to stage 2 (indicated at the start of each paragraph) upon re-enering the terminal.

If I collect more evidence/experimentation I will upload it here, I'll try and get a short video to describe what's occuring. unfortunately I have yet to replicate on a local server (although I haven't tried extensively yet).
Each separate ME system seems to go through this progression but stage 1 will only occur when you initially log into the server.
As this is a multiplayer server I am unable to isolate any constructs that may cause this issue if it is an effect serverwide (which is likely as creating a new ME system with no extra peripherals also recieves these issues and other people have been reporting this.

If this is not the same issue as the post author let me know and I'll move it to a new thread.

commented

So I have encountered the same/similar issue and posted my finding in this issue TeamAOF/All-of-Fabric-3#256 in there I've also attached video showing the issue and a world download to a local copy of a world where the issue can be reproduced.
I'm also running the All of Fabric modpack on version 2.5.4 which is running appliedenergistics2-fabric-8.1.0-alpha.13

The issue I'm experiencing for sure seems to have something to do with the quantity/fullness of the storage.

I've also been able to replicate it in a single player world with just AE2 (appliedenergistics2-fabric-8.1.0-alpha.13) and Roughly enough items (RoughlyEnoughItems-5.8.10) and Fabric API (fabric-api-0.28.4+1.16)

Demonstration of the issue when storage bus is connected.
https://user-images.githubusercontent.com/4357216/103247971-a93d7f80-4960-11eb-922b-686ce4962840.mp4
and showing the result when it's disconnected
https://user-images.githubusercontent.com/4357216/103247980-b5c1d800-4960-11eb-8243-391de72d00c0.mp4

Here's the world for I'm using to produce the issue, without All of Fabric modpack.
TestWorld.zip

commented

To add some information on this it looks like it's not just crafting cards doing it but also buses.
An easy setup to reproduce this issue is this :
https://cdn.discordapp.com/attachments/577535257356664845/796401439773687888/unknown.png

  • A cell (I used creative for convenience)
  • A terminal (can be crafting, pattern or normal terminal, they all break)
  • Some drives in a ME drive
  • An export bus to some kind of inventory

Everything is fine until you configure the export bus with an item. As soon as it starts exporting the terminal shows empty.

commented

I believe I have figured out a reliable way to produce this bug.
To Reproduce
The issue seems to be between AE2 for fabric and REI. Ensure you have both of those mods running on a world, single player or multi player.

Create a system that can auto craft an item. The minimum requirements would be this system here:

image

Ensure that the ME Interface connected to the storage bus is set up to auto-craft, and the Storage Bus is able to show the items contained in the Interface in the Terminal, as seen here:

image

Now that the system is set up, it is possible to cause all ME systems to fail.

  1. Make sure that the ME Interface can use a Crafting CPU to fill itself.
  2. Enter an ME Crafting Terminal, or an ME Pattern Terminal.
  3. Using REI, find a recipe and click "Move Items" to attempt to craft any item.
  4. If the items do not move to fill the Crafting Table on the Terminal, you have successfully caused the bug and rendered all ME systems unusable..
  5. Any change to an ME Systems item count will cause any attached Terminal to fail to display the contents of the System.

Exceptions to the bug:

  1. Exporting items with a Bus will still pull items from the system.
  2. Items can still be inserted to the system in some circumstances, such as through an ME chest.
  3. An Export Bus with a Crafting Card pushing into a chest will not cause this issue, even if the chest has a Storage Bus attached.
  4. If the Storage Bus is not configured to display the items in the attached Interface, this bug will not occur.
  5. This bug does not impact Portable Cells.

Some things to note about this bug:

  1. Without REI, it is not possible to cause this bug. Minecraft's recipe book does not appear on the terminals in any circumstance, but I imagine that if they did, this bug would occur without REI. This is a hypothesis, and is untested.
  2. This bug is resolved (in most circumstances) by removing the offending Interface from the network and restarting the server.
  3. In some circumstances the world will stop ticking upon a restart, preventing saving and requiring a client restart if playing in single player, or a hard server reboot.
  4. This bug affects all players on a server, across all ME systems. Once any system is updated, said system will stop rendering to Terminals.
  5. Even if the storage bus and interface are attached to isolated systems, the bug can still occur.
  6. This bug does not occur on Forge.

I have attached the world to this comment as a zip, as well as uploaded a crash log here:
https://gist.github.com/coolsa/d109cc2828eebab0ec59edd5c85865f6
AE24839.zip

commented

Hm... gimme an hour or two and I'll try replicating it on a local server.

commented

I tested this with this setup, and cannot repro your problem:
grafik

Setup:

  • Interface next to the MAC has a pattern for "crafting table"
  • Interface next to the storage bus stocks crafting tables
  • I can access and extract crafting tables from the terminal attached to the storage bus

I cannot observe anything out of the ordinary otherwise.

commented

bug still exists on fabric v8.3.0-alpha.3