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

ArithmeticException: / by zero in ItemNetHandler #2645

Open
ccressent opened this issue Oct 22, 2024 · 0 comments
Open

ArithmeticException: / by zero in ItemNetHandler #2645

ccressent opened this issue Oct 22, 2024 · 0 comments
Labels
status: unverified Issue is unverified

Comments

@ccressent
Copy link

ccressent commented Oct 22, 2024

GregTech CEu Version

2.8.10-beta

Modpack Used

Nomifactory-CEu-1.7

Addons Installed

No response

Environment

Singleplayer

Side Crashed

Server

New Worlds

No

Steps to Reproduce

Unknown. I was not doing anything when this happened.

Crash Report

Full crash report here: crash-2024-10-21_16.06.51-server.txt.

Additional Information

I am not a Java developer, nor am I familiar with the inner workings of GregTech CEu, but the ArithmeticException comes from here: https://github.com/GregTechCEu/GregTech/blob/v2.8.10/src/main/java/gregtech/common/pipelike/itempipe/net/ItemNetHandler.java#L271

It seems to me that, maybe in extremely rare cases, transferredCopy.size() can be 0. The code should probably handle that.

@ccressent ccressent added the status: unverified Issue is unverified label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: unverified Issue is unverified
Projects
None yet
Development

No branches or pull requests

1 participant