#getPeekAmount() fails on shulkers.

34 messages · Page 1 of 1 (latest)

echo hinge
#

I didn't know this bug existed until I went to an end city and immediately crashed, and the reason was "java.lang.StackOverflowError: Ticking entity" it was trying to get peek amount of a shulker over and over and failed everytime leading to a 'StackOverflow' (I guess. don't really know what that is). I tried surrounding it with try and catch using mixins, but than realised that I didn't know shit about mixins so it would be great if someone were to helped me.

its at net.minecraft.entity.mob.ShulkerEntity:
The code:
private int getPeekAmount() { return (Byte)this.dataTracker.get(PEEK_AMOUNT); }
Thanks!

#

Short version: I need to surround:
private int getPeekAmount() { return (Byte)this.dataTracker.get(PEEK_AMOUNT); }
with try and catch using a mixin.

#

it's in net.minecraft.entity.mob.ShulkerEntity

echo hinge
#

StackOverflow error when i see a shulker

abstract ferry
#

That's your problem, not your intent

echo hinge
#

i dont understand

abstract ferry
#

What are you trying to accomplish

echo hinge
#

i was wanting to surround return (Byte)this.dataTracker.get(PEEK_AMOUNT); with try and catch but that wouldn't really work i realised

abstract ferry
#

I meant, what are you trying to do

#

In words

#

Without thinking of a possible solution

echo hinge
#

alright let me try

#

i.. need to not get the StackOverflow error?

#

don't leave please

#

thats's the crash report if needed

#

hello?

#

bro left 💀

abstract ferry
#

That's not what I meant

abstract ferry
echo hinge
#

i didn't really change anything it's probably a problem from a mod. even if it was a bug of my code i dont really know when this bug accured because i never was near a shulker (plus i'm not really doing something related to shulkers or even entites)

abstract ferry
echo hinge
#

let me see

#

it looked like a nullpointer execption for a sec so i thought try and catch would do thr trick but i later realised it wouldn't work

#

i have a lot of mods but render related: c2me, bobby indium, sodium, fastanim, videotape, nvidium, lazydfu. i realised it is probably an issue with ViaFabricPlus because the server was on 1.20.5 and i was on 1.20.4

#

maybe a translating error

#

was there any changes with shulkers or entity data in 1.20.5?

abstract ferry
#

!!binarysearch

patent jackalBOT
#

A binary search can be used to quickly find a specific mod causing trouble, which can be especially useful when logs don't give a conclusive answer to your issue.

Start by removing or disabling half of your mods, then test if the problem still occurs. If it does, remove half of the remaining mods and test again. If it doesn't, add back half of the mods you just removed.

Keep in mind you don't have to stick strictly to halves each time, and may have to enable some library mods like Fabric API out of order.

By repeating this on an increasingly smaller set of mods, you'll find the problematic mod within a few iterations.

abstract ferry
#

@echo hinge