GlacieTeam / Glacie-Release

Glacie Release
11 stars 1 forks source link

Eating food crashes the server #2

Open Caldron47 opened 10 months ago

Caldron47 commented 10 months ago

When a player is eating an item that's only 1 left in the inventory, the server crashes and this error appears on the console 08:54:57 ERROR [LiteLoader] Event Callback Failed! 08:54:57 ERROR [LiteLoader] Uncaught Exception Detected! 08:54:57 ERROR [LiteLoader] In Event: PlayerEatEvent I tried with 1.20.41 and 1.20.51 clients and both can cause the same issue.

Glacie version: 1.1.0-Beta2 Crash Log: trace_2024-01-11_09-08-12.log Minidump: minidump_2024-01-11_09-08-12.dmp

Caldron47 commented 10 months ago

I found that items such as milk bucket, stews, and potions that leave another item when eaten (bucket, bowl, glass bottle) do not cause crash

KobeBryant114514 commented 10 months ago

When a player is eating an item that's only 1 left in the inventory, the server crashes and this error appears on the console 08:54:57 ERROR [LiteLoader] Event Callback Failed! 08:54:57 ERROR [LiteLoader] Uncaught Exception Detected! 08:54:57 ERROR [LiteLoader] In Event: PlayerEatEvent I tried with 1.20.41 and 1.20.51 clients and both can cause the same issue.

Glacie version: 1.1.0-Beta2 Crash Log: trace_2024-01-11_09-08-12.log Minidump: minidump_2024-01-11_09-08-12.dmp

Are these food items vanilla items?

Siori51 commented 10 months ago

Are these food items vanilla items?

Both add-ons and vanilla items can cause crashes, except those that leave other items behind when consumed (milk bucket, potion, etc.)

Caldron47 commented 10 months ago

When a player is eating an item that's only 1 left in the inventory, the server crashes and this error appears on the console 08:54:57 ERROR [LiteLoader] Event Callback Failed! 08:54:57 ERROR [LiteLoader] Uncaught Exception Detected! 08:54:57 ERROR [LiteLoader] In Event: PlayerEatEvent I tried with 1.20.41 and 1.20.51 clients and both can cause the same issue. Glacie version: 1.1.0-Beta2 Crash Log: trace_2024-01-11_09-08-12.log Minidump: minidump_2024-01-11_09-08-12.dmp

Are these food items vanilla items?

As Siori replied, vanilla and custom items are affected

KobeBryant114514 commented 10 months ago

@Caldron47 @Hosiyume @Siori51

Try beta3 please.

If these issue still exists, please reopen this issue again.

Caldron47 commented 10 months ago

@Caldron47 @Hosiyume @Siori51

Try beta3 please.

If these issue still exists, please reopen this issue again.

The crash still occurs. i'm using the beta3 and it is the only plugin i use

KobeBryant114514 commented 10 months ago

@Caldron47 @Hosiyume @Siori51 Try beta3 please. If these issue still exists, please reopen this issue again.

The crash still occurs. i'm using the beta3 and it is the only plugin i use

Any Addons?

I can not reproduce the bug

Siori51 commented 10 months ago

Trying to reproduce it without the add-on results in a lot of errors but not a crash, as long as any plugin uses the onEat trigger. image

Caldron47 commented 10 months ago

@Caldron47 @Hosiyume @Siori51 Try beta3 please. If these issue still exists, please reopen this issue again.

The crash still occurs. i'm using the beta3 and it is the only plugin i use

Any Addons?

I can not reproduce the bug

chatranks template without anti-spam.zip

i was using 2 addons. but the first one doesn't crash. after adding this one which has scripts in it, the crash occurs

ye111566 commented 10 months ago

it is not the fault of mcaddon! it occurs when you eat the item which is in the case that it turns into nothing