Fabricators-of-Create / Create

[Fabric Mod] Building Tools and Aesthetic Technology
MIT License
834 stars 188 forks source link

Fluid and redstone stops working in chunks using create #141

Closed mrsterner closed 2 years ago

mrsterner commented 2 years ago

Describe the Bug

Some create contraptions induce a chunk-wide bug making fluids and redstone stop updateing rendering them unusable in said chunkm this happens when you leave the chunk and re-enter it. After a while multiple chunks became like this, and only common denominator is those chunks contain create blocks. In attempts to find a specific create block to be the culprit, the only common create blocks in these chunks were Gearboxes, Shafts and Basins. Other than that it varied from chunk to chunk.

The screenshot views button not unpressing, lava and water failing to flow

Notable additions to the server is Lithium which might be involved

Create 0.4d fabric 1.18

Reproduction Steps

  1. Build static iron farm or something which doesnt involve a contraption
  2. Wait and unload/load chunks a few times
  3. restart server to fix the error temporarly ...

Expected Result

The expected result would be fluid flowing and buttons unpressed after pressed. The contraptions become overstressed when leaving a chunk also but that might be for another bug report

Screenshots and Videos

Untitled )

Crash Report or Log

.

Operating System

Windows 11

Mod Version

0.4.0c

Minecraft Version

1.18.1

Other Mods

Additional Context

It doesnt crash so there is nothing interesting in the log and its hard to replicate without spening time on a server

TropheusJ commented 2 years ago

Crash or not, a log could be useful.

michlbro commented 2 years ago

Crash or not, a log could be useful.

I am getting the same weird bug with digital and mrsterner. No warnings or errors are being displayed in the logs, nor it has to do with starlight or lithium (since they are both gone and bug still persists). It might be an issue with the amount of mods in one server. The easiest way to replicate this issue is to sleep in a bed while the chunk with create contraptions are unloaded then sleep near the chunk while it is loaded in. (Or using the nether portal like digital did) Edit: Tested the same world without any mods, just fabric, fabric api and create. The weird fluid bug still persists. However, I've managed to find this in the log while creating a server using my own pc (Exeraton cuts off the log):

[18:17:14] [main/WARN]: Error loading class: net/minecraft/class_5616 (java.lang.ClassNotFoundException: net/minecraft/class_5616)
[18:17:14] [main/WARN]: @Mixin target net.minecraft.class_5616 was not found registrate-fabric.mixins.json:accessor.BlockEntityRenderersAccessor
[18:17:17] [main/WARN]: @Inject(@At("INVOKE")) Shift.BY=3 on fabric-lifecycle-events-v1.mixins.json:server.WorldChunkMixin::handler$zek000$onLoadBlockEntity exceeds the maximum allowed value: 0. Increase the value of maxShiftBy to suppress this warning.
[18:17:19] [main/WARN]: Configuration file .\config\create-common.toml is not correct. Correcting

Full log: latest.log

mrsterner commented 2 years ago

We have boiled it down to Basins, baisins screw tps and chunks completely no basin removal: https://spark.lucko.me/V45onkWMS7 after one basin removal: https://spark.lucko.me/ZfgHaG6eC5 after everyone online removed theirs: https://spark.lucko.me/iu9nL8D3OA

TropheusJ commented 2 years ago

related issues: upstream, another forge

TropheusJ commented 2 years ago

I've added a possible solution here, please try with this build.

armuell commented 2 years ago

Using the build linked in the comment directly above this one on a dedicated server seems to have fixed it. I was able to place a basin in a chunk attached to a windmill as well as flowing water with no issues. I moved away from the chunks so they would be unloaded and slept in a bed (also I entered/left the nether) and returned and the water was flowing just fine. I also logged off and back on with no issues. Also there was nothing in the logs.

TropheusJ commented 2 years ago

Perfect. @mrsterner, @KonouChan, and @digitaltrucker please test as well.

mrsterner commented 2 years ago

This seems to have fixed the issues indeed https://spark.lucko.me/Cb1W57E8sD

michlbro commented 2 years ago

Ok perfect, this build has fixed the weird fluid and overstressed issues. Did a few tests and nothing shows in the logs. All works fine.👍

digitaltrucker commented 2 years ago

We have boiled it down to Basins, baisins screw tps and chunks completely no basin removal: https://spark.lucko.me/V45onkWMS7 after one basin removal: https://spark.lucko.me/ZfgHaG6eC5 after everyone online removed theirs: https://spark.lucko.me/iu9nL8D3OA

That can't be the source of the problem in my world. I had no basins when the problem occurred. Also, mine is a single-player world.

TropheusJ commented 2 years ago

some other blocks may have been affected as well, just basins were most apparent. please try anyway.

digitaltrucker commented 2 years ago

I hate to admit it, but I have no clue how to build from source. I've just been playing with the posted builds and demonstrating my usual knack for finding obscure bugs.

TropheusJ commented 2 years ago

latest build here

digitaltrucker commented 2 years ago

Seems to be working fine so far.

TropheusJ commented 2 years ago

perfect. reopen if it reappears.