Vexatos / Computronics

A ComputerCraft/OpenComputers addon mod.
125 stars 51 forks source link

Phosphor warning for Colorful Lamp #336

Open xJon opened 4 months ago

xJon commented 4 months ago
[Server thread/WARN] [Phosphor]: Something (likely another mod) has attempted to modify the world's state from the wrong thread!
This is *bad practice* and can cause severe issues in your game. Phosphor has done as best as it can to mitigate this violation, but it may negatively impact performance or introduce stalls.
In a future release, this violation may result in a hard crash instead of the current soft warning. You should report this issue to our issue tracker with the following stacktrace information.
(If you are aware you have misbehaving mods and cannot resolve this issue, you can safely disable this warning by setting `enable_illegal_thread_access_warnings` to `false` in Phosphor's configuration file for the time being.)
java.lang.IllegalAccessException: World is owned by 'Client thread' (ID: 1), but was accessed from thread 'Server thread' (ID: 20855)
    at me.jellysquid.mods.phosphor.mod.world.lighting.LightingEngine.acquireLock(LightingEngine.java:214) [LightingEngine.class:?]
    at me.jellysquid.mods.phosphor.mod.world.lighting.LightingEngine.scheduleLightUpdate(LightingEngine.java:138) [LightingEngine.class:?]
    at net.minecraft.world.World.handler$bae000$checkLightFor(World.java:7605) [amu.class:?]
    at net.minecraft.world.World.checkLightFor(World.java) [amu.class:?]
    at net.minecraft.world.World.checkLight(World.java:2785) [amu.class:?]
    at net.minecraft.world.World.setBlockState(World.java:355) [amu.class:?]
    at net.minecraft.world.World.setBlockState(World.java:425) [amu.class:?]
    at pl.asie.computronics.tile.TileColorfulLamp.setLightValue(TileColorfulLamp.java:86) [TileColorfulLamp.class:?]
    at pl.asie.computronics.tile.TileColorfulLamp$1.run(TileColorfulLamp.java:63) [TileColorfulLamp$1.class:?]
    at pl.asie.computronics.util.event.ServerTickHandler.onServerTick(ServerTickHandler.java:30) [ServerTickHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_2328_ServerTickHandler_onServerTick_ServerTickEvent.invoke(.dynamic) [?:?]
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) [EventBus.class:?]
    at net.minecraftforge.fml.common.FMLCommonHandler.onPreServerTick(FMLCommonHandler.java:279) [FMLCommonHandler.class:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:657) [MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:185) [chd.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:1817) [MinecraftServer.class:?]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]