- Your Terraria Device
- Galaxy S10e
- Mobile OS
- Android 10
It appears that a few projectiles which make use of the ai[] fields to target stuff (Players, NPCs, other Projectiles) aren't properly safeguarded. If somehow the ai[] field used by the projectile has a malformed entity index (somehow being a non-integer value like 0.2 for some rare cases, being greater than 200 or less than 0), it can cause the mobile client to crash.
On PC, this simply throws an IndexOutOfArray exception and doesn't crash the game, since it has a try-catch block around entity updates in each entity update loop, and ignoreErrors in Main is set to true.
I had this happen to me with the Mechanical Piranha from the Piranha Gun specifically (from someone else in multiplayer), but while finding the source of the issue, I've also noticed this could be an issue for the Vampire Heal (from Vampire Knives), the Spirit Heal from the Spectre Armor (Hood) set, the Sharknado Bolt from Duke Fishron, and a good few others that use ai[] fields to target or reference entities. This shouldn't ever happen in normal gameplay. I hope this report wouldn't be considered invalid if it should never happen normally, but I'm still shooting my shot, since crashes in general are bad to have around.
On PC, this simply throws an IndexOutOfArray exception and doesn't crash the game, since it has a try-catch block around entity updates in each entity update loop, and ignoreErrors in Main is set to true.
I had this happen to me with the Mechanical Piranha from the Piranha Gun specifically (from someone else in multiplayer), but while finding the source of the issue, I've also noticed this could be an issue for the Vampire Heal (from Vampire Knives), the Spirit Heal from the Spectre Armor (Hood) set, the Sharknado Bolt from Duke Fishron, and a good few others that use ai[] fields to target or reference entities. This shouldn't ever happen in normal gameplay. I hope this report wouldn't be considered invalid if it should never happen normally, but I'm still shooting my shot, since crashes in general are bad to have around.