Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Placing Oven Crashes Game #120

Open
5 tasks done
LeavesOfJupiter opened this issue Aug 23, 2024 · 5 comments
Open
5 tasks done

[Bug]: Placing Oven Crashes Game #120

LeavesOfJupiter opened this issue Aug 23, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@LeavesOfJupiter
Copy link

Bug Description

Attempting to place an oven crashes both single and multiplayer servers. It results in this error:
[Render thread/ERROR]: Unreported exception thrown! java.lang.IllegalStateException: Invalid block entity handcrafted:oven //

Bug does not appear to affect other items. It effects both singleplayer and multiplayer

How to Reproduce?

  1. Install latest fabric on client (0.102.1+1.21.1)
  2. Install Handcrafted 4.02
  3. Run game and open world
  4. Craft or somehow acquire oven block
  5. Attempt to place block
  6. Switch to console after game crash

Expected Behavior

Expected behavior was for block to place.

Version

4.0.2

Mod Loader Version

0.102+1.21.1

Mod Loader

Fabric

Logs or additional context

Appears to use exit 255 specifically when attempting to render block. Below is the full log

[12:56:42] [Render thread/ERROR]: Unreported exception thrown! java.lang.IllegalStateException: Invalid block entity handcrafted:oven // earth.terrarium.handcrafted.common.blockentities.OvenBlockEntity state at class_2338{x=-37, y=125, z=53}, got Block{handcrafted:oven}[facing=west,lit=false] at net.minecraft.class_2586.method_61175(class_2586.java:57) ~[client-intermediary.jar:?] at net.minecraft.class_2586.<init>(class_2586.java:51) ~[client-intermediary.jar:?] at net.minecraft.class_2624.<init>(class_2624.java:33) ~[client-intermediary.jar:?] at net.minecraft.class_2609.<init>(class_2609.java:132) ~[client-intermediary.jar:?] at net.minecraft.class_3723.<init>(class_3723.java:14) ~[client-intermediary.jar:?] at earth.terrarium.handcrafted.common.blockentities.OvenBlockEntity.<init>(OvenBlockEntity.java:12) ~[handcrafted-fabric-1.21.1-4.0.2.jar:?] at earth.terrarium.handcrafted.common.blocks.misc.OvenBlock.method_10123(OvenBlock.java:21) ~[handcrafted-fabric-1.21.1-4.0.2.jar:?] at net.minecraft.class_2818.method_12010(class_2818.java:286) ~[client-intermediary.jar:?] at net.minecraft.class_1937.method_30092(class_1937.java:232) ~[client-intermediary.jar:?] at net.minecraft.class_638.method_30092(class_638.java:160) ~[client-intermediary.jar:?] at net.minecraft.class_1937.method_8652(class_1937.java:217) ~[client-intermediary.jar:?] at net.minecraft.class_1747.method_7708(class_1747.java:153) ~[client-intermediary.jar:?] at net.minecraft.class_1747.method_7712(class_1747.java:76) ~[client-intermediary.jar:?] at net.minecraft.class_1747.method_7884(class_1747.java:46) ~[client-intermediary.jar:?] at net.minecraft.class_1799.method_7981(class_1799.java:373) ~[client-intermediary.jar:?] at net.minecraft.class_636.method_41934(class_636.java:363) ~[client-intermediary.jar:?] at net.minecraft.class_636.method_41933(class_636.java:318) ~[client-intermediary.jar:?] at net.minecraft.class_636.method_41931(class_636.java:279) ~[client-intermediary.jar:?] at net.minecraft.class_636.method_2896(class_636.java:317) ~[client-intermediary.jar:?] at net.minecraft.class_310.method_1583(class_310.java:1852) ~[client-intermediary.jar:?] at net.minecraft.class_310.method_1508(class_310.java:2111) ~[client-intermediary.jar:?] at net.minecraft.class_310.method_1574(class_310.java:1938) ~[client-intermediary.jar:?] at net.minecraft.class_310.method_1523(class_310.java:1246) ~[client-intermediary.jar:?] at net.minecraft.class_310.method_1514(class_310.java:882) [client-intermediary.jar:?] at net.minecraft.client.main.Main.main(Main.java:256) [client-intermediary.jar:?] at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) [fabric-loader-0.16.2.jar:?] at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.16.2.jar:?] at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.16.2.jar:?] at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100) [NewLaunch.jar:?] at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) [NewLaunch.jar:?] at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) [NewLaunch.jar:?]

Code of Conduct

  • I have searched the issue tracker and confirmed that the issue has not been reported
  • I have checked the FAQ (if one is present) and my issue is not listed
  • I have verified that I am using the latest version of the mod
  • I have verified that I have installed all the required dependencies for the mod
  • I have verified that I do not have Optifine installed. We will close issues if we detect Optifine is in your pack. We cannot fix Optifine issues. Please do not report issues with Optifine present.
@LeavesOfJupiter LeavesOfJupiter added the bug Something isn't working label Aug 23, 2024
@tylacine
Copy link

This is also an issue I am having. My crash log if it's any help
crash-2024-08-26_22.54.33-client.txt

@Istealideas
Copy link

yeah its also happening to me too

@Shad0wMana
Copy link

I'm having this issue as of the day I'm writing this. I've also confirmed I don't have optifine and I've compared my log with yours and its the same

@chimericdream
Copy link

I came across this issue after running into the same error message in my own mod. It appears that Mojang added some block entity validation in 1.21.1 that essentially required me to create my own copy of the vanilla one I was using. In my case, it was a barrel, but I suspect the same fix will apply here. The down side is the fact that any blocks previously placed will need to be broken and placed again. There might be a better solution involving mixins or something, but I'm not sure.

@willogeny
Copy link

I just encountered this exact same issue with the oven. I am playing in a modded 1.21.1 server and the oven crashes the game. The server continued to function but gave this message:

[20:08:50] [Netty Server IO #8/ERROR]: Exception occurred in netty pipeline
java.net.SocketException: Connection reset
        at java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:401) ~[?:?]
        at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:434) ~[?:?]
        at io.netty.buffer.PooledByteBuf.setBytes(PooledByteBuf.java:254) ~[netty-buffer-4.1.97.Final.jar:?]
        at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132) ~[netty-buffer-4.1.97.Final.jar:?]
        at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:357) ~[netty-transport-4.1.97.Final.jar:?]
        at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:151) ~[netty-transport-4.1.97.Final.jar:?]
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) ~[netty-transport-4.1.97.Final.jar:?]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[netty-transport-4.1.97.Final.jar:?]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[netty-transport-4.1.97.Final.jar:?]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[netty-transport-4.1.97.Final.jar:?]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.97.Final.jar:?]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.97.Final.jar:?]
        at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants