sp614x / optifine

1.81k stars 418 forks source link

[1.16.x] Hostile mobs appearing invisible and invulnerable. #5016

Closed dabulue closed 3 years ago

dabulue commented 4 years ago

https://github.com/sp614x/optifine/issues/4351

This exact issue is still in this mod and it makes the game unplayable with OptiFine. Stop closing issues that are not fixed.

Lythael commented 4 years ago

Yep its not fixed. It happens in 1.16.4 release and in 1.16.3 aswell (as i tried to downgrade to the version that supposedly "fixed" this) So far seen Piglins , Skeletons , Drowned going invisible untill i exit to main menu and re-enter.

This happens in vanilla game (no mods or shaders installed just Optifine)

EDIT: On a side note they can still be attacked and killed tho its very tricky so just restarting is better. But yea this should be fixed (as in actually fixed not just make a placebo claim that its fixed) cause its no small issue and its game breaking for hardcore play getting killed by something you can't even see or attack (usually)

EDIT 2: Ok this is getting ridiculous ... Invisible Creeper destroyed my crop farm today.

legendaryWalter commented 4 years ago

Happens in previous versions as well such as 1.16.1 and 1.15.2. It is very annoying. I can't even raid a bastion because of some invisible Piglin Brutes.

Lythael commented 4 years ago

Happens in previous versions as well such as 1.16.1 and 1.15.2. It is very annoying. I can't even raid a bastion because of some invisible Piglin Brutes.

Yea ;/ for the time being if you don't want to uninstall Optifine. Exit to menu and re-enter when you are near Bastion or transitioned between dimensions. Cause idk if consistent but i noticed this invisiblity bug happens after i travel between dimensions then there is a very high chance afterwards that i will encounter invisible mobs when traveling.

VirtualViolet commented 4 years ago

I've had the same issue. No other mods installed, just Optifine. Ran into an illager squad and only 2 of them were visible, at least one more was invisible (I ran from it and eventually ran into a creeper that exploded and killed it, lol). Also, there were a couple of cats in a village that were invisible for the longest time, which I eventually got to reappear somehow. I'm not sure what did it because I didn't know exactly where they were because they were running from me (I could hear them), but I disabled a few of the optimization settings before the first one reappeared. Now that I've chased it down and befriended it, it doesn't seem to be disappearing anymore. (Note: I have not yet changed dimensions on this world. Everything has been in the overworld.)

I'll update this if I get any more concrete information.

Lythael commented 4 years ago

I've had the same issue. No other mods installed, just Optifine. Ran into an illager squad and only 2 of them were visible, at least one more was invisible (I ran from it and eventually ran into a creeper that exploded and killed it, lol). Also, there were a couple of cats in a village that were invisible for the longest time, which I eventually got to reappear somehow. I'm not sure what did it because I didn't know exactly where they were because they were running from me (I could hear them), but I disabled a few of the optimization settings before the first one reappeared. Now that I've chased it down and befriended it, it doesn't seem to be disappearing anymore. (Note: I have not yet changed dimensions on this world. Everything has been in the overworld.)

I'll update this if I get any more concrete information.

As i read more and more through older posts about this issue i think it might be related to Dynamic Lighting setting. Having it off fixes the issue (apparently) but i am not sure i'll do a playthrough with it off and i will report if i notice invisible mobs again.

dabulue commented 4 years ago

I've had the same issue. No other mods installed, just Optifine. Ran into an illager squad and only 2 of them were visible, at least one more was invisible (I ran from it and eventually ran into a creeper that exploded and killed it, lol). Also, there were a couple of cats in a village that were invisible for the longest time, which I eventually got to reappear somehow. I'm not sure what did it because I didn't know exactly where they were because they were running from me (I could hear them), but I disabled a few of the optimization settings before the first one reappeared. Now that I've chased it down and befriended it, it doesn't seem to be disappearing anymore. (Note: I have not yet changed dimensions on this world. Everything has been in the overworld.) I'll update this if I get any more concrete information.

As i read more and more through older posts about this issue i think it might be related to Dynamic Lighting setting. Having it off fixes the issue (apparently) but i am not sure i'll do a playthrough with it off and i will report if i notice invisible mobs again.

Turning off dynamic lights doesn't fix it. I tried. It doesn't work.

Lythael commented 4 years ago

I've had the same issue. No other mods installed, just Optifine. Ran into an illager squad and only 2 of them were visible, at least one more was invisible (I ran from it and eventually ran into a creeper that exploded and killed it, lol). Also, there were a couple of cats in a village that were invisible for the longest time, which I eventually got to reappear somehow. I'm not sure what did it because I didn't know exactly where they were because they were running from me (I could hear them), but I disabled a few of the optimization settings before the first one reappeared. Now that I've chased it down and befriended it, it doesn't seem to be disappearing anymore. (Note: I have not yet changed dimensions on this world. Everything has been in the overworld.) I'll update this if I get any more concrete information.

As i read more and more through older posts about this issue i think it might be related to Dynamic Lighting setting. Having it off fixes the issue (apparently) but i am not sure i'll do a playthrough with it off and i will report if i notice invisible mobs again.

Turning off dynamic lights doesn't fix it. I tried. It doesn't work.

Oh .. bummer :(

Javrel commented 4 years ago

Im having this in 16.4, making my game unplayable I spent so long on a village to have a raid with invis witches n illagers screw it up

Siuolplex commented 4 years ago

Alright. Most likely this is a duplicate of #1892 . Do you guys mind moving the info you gathered about this over there? If any of you guys have a way to reproduce this the mod creator, Sp614x. Would appriciate it. Ill wait for a contirbutor to judge if this is a duplicate or not though. Also, when you guys are there you might wanna put in your specs.

BobBobilou commented 4 years ago

Yep its not fixed. It happens in 1.16.4 release and in 1.16.3 aswell (as i tried to downgrade to the version that supposedly "fixed" this) So far seen Piglins , Skeletons , Drowned going invisible untill i exit to main menu and re-enter.

This happens in vanilla game (no mods or shaders installed just Optifine)

EDIT: On a side note they can still be attacked and killed tho its very tricky so just restarting is better. But yea this should be fixed (as in actually fixed not just make a placebo claim that its fixed) cause its no small issue and its game breaking for hardcore play getting killed by something you can't even see or attack (usually)

EDIT 2: Ok this is getting ridiculous ... Invisible Creeper destroyed my crop farm today.

I have download optifine for the past 6 month and each new version that I try since had this bug. I play hardcore so this bug is really breaking the game. This is an huge issus and it really need to be fix. Also, I found out that if you use an sword and you punch an mob next to the invisible one you can hit it. Also, you can put it in fire by lighting the block below it. Please fix it this has made multiple month and not patch yet. Thanks

tallcoleman commented 3 years ago

Had this issue in 1.16.4 with a woodland mansion. As others have suggested, turning off dynamic lighting fixed it, and I was able to see many of the vindicators again.

Thought I was losing it taking damage to enemies I couldn't see...

NicoTheCinderace commented 3 years ago

I'm having the same issues as well, with occasional invisible Creepers and Zombies.

What's even causing this...?

dpill83 commented 3 years ago

I created a server running Drehmal: PRIMORDIAL map and Optifine is a requirement to use it. I'm getting complaints that some mobs are invisible. Advised users to close the game and relaunch it and the mobs appear.

Lythael commented 3 years ago

I created a server running Drehmal: PRIMORDIAL map and Optifine is a requirement to use it. I'm getting complaints that some mobs are invisible. Advised users to close the game and relaunch it and the mobs appear.

Yea tho you don't need to close the game just leave to main menu and re-enter the world it fixes that too. But same as exiting the game this method just temporarily fixes the issue.

lolcuslol commented 3 years ago

I have this same issue with creepers and husks but i ve also seen drowned turn invisible and im playing on 1.16.4

Teasy commented 3 years ago

Thought I'd take this new Minecraft version for a spin, but shaders (thank you Optifine creators!) are essential to make the experience more life-like! Within the first 15-30 minutes of getting wood, a shelter, some iron, and some crops, an invisible drowned with trident sneaks up on me in clear daylight (i'm sure he followed me after i went fishing) and before I realized what's going on, I'm dead! (2 hits!) xD And this invisible drowned is now, alongside various creepers and skellies continuously spawnkilling me ... xD I asked for a challenge, but I didn't expect the computer players to cheat! :P

EDIT: Restarting the game works only to a certain degree (version 1.16.4 with Optifine HD U G5) In some earlier versions (such as in 1.16.2) restarting the game does NOT make the mob visible! I'm guessing that the developer is not aware that the "invisible mob fix" in 1.16.1 (visible in changelog) does in fact not fix the issue.

If the mob leaves (or you leave) the chunk (before restarting), the mob will be invisible again (after restarting). This makes it impossible to, for example, beat an invisible trident drowned when respawning when the drowned is outside the respawn chunk. I can make screenshots, but it's kinda hard to show invisible mobs on a pic ;) (imagine a field of tridents :P)

MavG8ER commented 3 years ago

holy crap is this stupid bug still out i cant play very well without optifine like why have they not fixed it yet i had two bastions in a row with invisible mobs IM ACTUALLY GOING MENTAL CAUSE OF THIS

MavG8ER commented 3 years ago

6 MONTHS SINCE FIRST 1.16.4 OPTIFINE please for the love of god fix this bug

sp614x commented 3 years ago

Another round of testing triggered by #5183. Tested with identical settings, same version, same shaders, new world - no luck, all mobs visible. Made the drowned spawn particles in a wide radius to see them even if invisible, wandered in the ocean for half an hour - all drowned still visible. This may be hardware related, multi-core CPUs, cache synchronization or something similar. The #5183 is for 12x Ryzen 5 3600.

Lythael commented 3 years ago

Another round of testing triggered by #5183. Tested with identical settings, same version, same shaders, new world - no luck, all mobs visible. Made the drowned spawn particles in a wide radius to see them even if unvisible, wandered in the ocean for half an hour - all drowned still visible. This may be hardware related, multi-core CPUs, cache synchronization or something similar. The #5183 is for 12x Ryzen 5 3600.

I have a AMD A8-6600k it happens occassionally. (It's a quad core 3.9ghz) Very very rarely when just exploring Overworld. But the chance of this bug to happen increases after i transition in or out of the Nether. Bastion area is especially very prone to this invisibility glitch.

EDIT: Oh and it never happens with manually spawned mobs just natural spawns.

EDIT2: On hosted by me server i use to play coop with my friend this glitch doesn't seem to happen to me at all despite having Optifine active. Only in Single player.

sp614x commented 3 years ago

Here are 4 test versions based on pre10, with different changes that can help to reproduce or fix the bug.

Pre10a:

https://optifine.net/tmp/ver/OptiFine_1.16.4_HD_U_G6_pre10a.jar

Pre10b, pre10c and pre10d

https://optifine.net/tmp/ver/OptiFine_1.16.4_HD_U_G6_pre10b.jar https://optifine.net/tmp/ver/OptiFine_1.16.4_HD_U_G6_pre10c.jar https://optifine.net/tmp/ver/OptiFine_1.16.4_HD_U_G6_pre10d.jar

Start with pre10a and try to reproduce the bug. All mobs emit particles, so seeing particles without a mob = invisible mob. Changing to spectator mode will hide the terrain which helps to see all mobs in the nether.

When the bug is reliably reproducible, you can test with pre10b, pre10c and pre10d to see if the bug still exists.

Lythael commented 3 years ago

EDIT: Nevermind i messed up with the installation the first time. Installed it correctly now. I'll keep testing and see if i can reproduce the bug.

Lythael commented 3 years ago

When the bug is reliably reproducible, you can test with pre10b, pre10c and pre10d to see if the bug still exists.

Soo I have been at it for an hour. I cannot reproduce the bug in: OptiFine_1.16.4_HD_U_G6_pre10a I've been in and out of the Nether testing this with both shaders on and off, near bastion and in overworld after leaving nether etc.

It just refuses to happen on demand even in the hot spots when bug tends to happen more often than usually. Knowing my luck i wouldn't be surprised if i ran into it randomly later while casually playing and frequency of this bug happening near bastion was just pure coincidence.

This bug happens rarely at random it seems :/ I'll try testing some more i'll report back if it happens again.

Ruchian commented 3 years ago

Minecraft 1.16.4 Optifine version: OptiFine HD U G5 Modpack: All the mods 6 Dedicated server.

I encountered this problem several times. Invisible creeper, invisible drowned, invisible zombie Invisible Apotheosis boss mob....

Invisible mobs are not just invisible, they are not there for the player. They're there on the server side though and therefore blocks cannot be placed where they are They can however be suffocated. Sound events of course still play, but yeah... they are unselectable, untargetable, unhitable.

2021-01-06_08 08 18

Here is an invisible zombie I managed to trap in a hole...

The problem seems to occur more frequently when you travel a lot and when you have been online for a long time. (4+ hours) And yes I no-life. I am easily playing for over 8 hours. xd anyway, uh... this is very problematic. I realized it was Optifine causing this because it affects villagers as well, even when they are sleeping. Some just won't load in on the client, even when they are close by.

I am hoping you could fix this at some point because, its kinda risky in game.

sp614x commented 3 years ago

Another report also showed that invisible mobs don't exist for the client at all. New version pre10e - the mob particles are generated on the server thread and added on the client thread. https://optifine.net/tmp/ver/OptiFine_1.16.4_HD_U_G6_pre10e.jar Now the particles should appear even if the mob doesn't exist for the client. Mob particles without mob => invisible mob.

sp614x commented 3 years ago

Found one invisible mob:

image

How to reproduce:

Trying to reproduce it a second time doesn't work 😕.

Ruchian commented 3 years ago

sp614x, do you recommend me with this to take this hidden beta version and test it out? xd

I also wanted to note that the problem, once it starts becomes pretty frequent. I think it is related to them spawning, not just unloading. It is reproducable, but not in an exact manner of steps. The only hint I have is, chunk distance, (visibility) I noticed Optifine tries to unload entities in far away chunks and reloads them in when close. Sometimes this happens very, rediculously late, as in you need to stand on top of a bed before you see the villager laying in it suddenly appear. The other hint is not known entities (new ones, Then lastly, you need to have overloaded some kind of list of entities. It doesn't matter how many entities in a single place there were, although you will notice it sooner. All you need to have done is having seen many, many entities.

And yes I think without noticing some floating drops for example, items too become invisible. But the player will still pick these up, because the server handles this.

In other words, it could very well be the only mob around, and the only entity around the player, it is invisible, invulnerable, untargetable, etc.

You will encounter some of these hidden mobs at some point, its a dedicated server issue only, I am guessing since on a client server, I guess if it happens then. it never happened noticably for the player.

Anyway, that is all I have to share. Please test this, to confirm. xd

DungInACup commented 3 years ago

Just died to an invisible piglin while exploring a bastion in hardcore while using 1.16.4 OptiFine HD U G6 pre10.

Sarkos commented 3 years ago

This happens a lot in the Drehmal custom map, which has locations guarded by groups of illagers that do not despawn. Very often, 1 or 2 illagers out of the group will be invisible and untargetable.

Since other people have mentioned this bug occurring with piglins in bastions (which are pre-generated, non-despawning mobs), it seems likely that the bug only occurs with mobs that already existed in the chunk when the player arrived.

Lythael commented 3 years ago

This happens a lot in the Drehmal custom map, which has locations guarded by groups of illagers that do not despawn. Very often, 1 or 2 illagers out of the group will be invisible and untargetable.

Since other people have mentioned this bug occurring with piglins in bastions (which are pre-generated, non-despawning mobs), it seems likely that the bug only occurs with mobs that already existed in the chunk when the player arrived.

Not only cause i've seen random spawning Creepers go invisible too but not as common as pre-generated piglins.

KakashoLin commented 3 years ago

Okay, I am able to effectively repeat this multiple times. I noticed it happening again to my pet slime that I named yesterday. Two main things I did yesterday was going to the nether and working on a base there and going to a faraway biome for foxes. Testing today, going to the nether and back did not trigger the bug, but going to the far away biome, many chunks away triggered the bug. To make sure it was caused by this, I repeated the experiment three times, and each time the slime vanished but I could still hear it. And between each test, I saved and exited and reentered and the slime would always reappear. I attached the distance I traveled and the f3 report in case that shows something of interest.

*Note: I also updated ticket #5196 with this information as well and other information leading to this discovery.

2021-01-10_23 44 35

2021-01-10_23 51 44

xFusakeruna commented 3 years ago

This needs to be fixed! I had full prot IV and pretty much instadied losing 60 hours of progress `-´ https://medal.tv/clips/41430733/d1337VF3qLtH

KakashoLin commented 3 years ago

Checked and the issue is still present in the latest update that was released a few days ago, and the bug is still repeatable.

Lythael commented 3 years ago

Found several invisible Drowned while exploring today: https://i.imgur.com/JvJluyu.png One was throwing trident at me.

Only way to attack him was with ranged weapons. This was on the 1.16.5 Optifine release.

I hope i live to see the day that this issue will be finally pinned down and fixed once and for all :(

SkyeMors commented 3 years ago

I've encountered this bug with a few (invisible) Pillagers that were wandering around one of their towers while I was exploring, a world reload fixed them.

Not sure if related, but it appears tile entities also have a slight transparency issue, most notably cauldrons. It was mentioned in this thread or a sister thread that any texture with slight transparency or full transparency causes the entire texture to be just a hair transparent alongside the transparent part. I'll mess with my resource packs, as one of them adds a transparent portion to cauldrons, and edit with my results.

freduard commented 3 years ago

Wasn't aware of this issue until now when I lost my hardcore world to it. Didn't think to reload my world or anything either, this really fucking sucks.

Lythael commented 3 years ago

Still happens in OptiFine HD U G7 pre5 So i see you had no luck in figuring out how to fix this?

On a side note. Drowned near sunken ruins seems to be the most reliable way to reproduce this bug. It happens almost all the time near those and either i'm crazy or it happens way more often than in previous versions near those ruins.

joseywoermann commented 3 years ago

I have never encountered this issue on my system.

PeteCozens commented 3 years ago

Glad to hear that you're looking into this - thanks very much!

I get the occasional invisible spider (only red glow from eyes/mouth visible) and zombie (completely invisible) on 1.16.5-Optifine_HD_U_G6. I've no idea what activity might be causing them - there's no pattern I can identify as to when or why I encounter them.

PC Specs: AMD Ryzen 5 3600X 6-Core, 16GB RAM, Windows 10 Home, AMD Radeon RX 5500XT Graphics card. O/S and drivers all up-to-date. I've assigned 6GB RAM to Minecraft in the launcher, but this also happened when it was set to the default 2GB as well.

Options files as follows: options.txt optionsof.txt

SeaOfPixels commented 3 years ago

Game breaking, should be at the top of the priority list

Oakstar519 commented 3 years ago

I've gotten this bug a few times. I think the only thing in common between the mobs that went invisible was that they were persistent and it happened after loading/unloading chunks: the most recent two times were a named zombie and some pillagers from a raid.

PC specs: Intel i7 930 CPU, 24 GB RAM, Radeon R7 260X GPU, Windows 7 Ultimate. All drivers except the graphics driver are up to date, but updating the graphics driver doesn't fix the issue (and breaks other stuff.) Minecraft has 4GB of RAM allocated, but it's also happened with 2GB.

I've gotten this bug with normal OptiFine (at least once in 1.15.x and more than once in 1.16.x) as well as a custom Fabric pack with OptiFabric and a few vanilla-compatible mods. (I can provide a list, but my configuration changes so often that it probably wouldn't be accurate.)

optionsof.txt options.txt

Lythael commented 3 years ago

I get the occasional invisible spider (only red glow from eyes/mouth visible)

That's actually not a bug its intentional. Spiders sometimes inheret potion effects including invisibility. You can tell this is not bug cause these spiders display a hitbox and can be attacked by melee.

While actual glitched invisible mobs are completely invisible including effects they had on them and they don't display a hitbox and cannot be damaged by melee (only ranged works)

harmalom commented 3 years ago

In my case it usually happens with the Pillagers, especially with the Patrols, sometimes 1 or 2, rarely 3 of the group, others that are usually invisible are the zombies, but these are usually rarer.

I use Shaders ComplementaryShaders_3.10

Resource Pack Stoo's Deluxe Ressource Pack v1.10a ComplementaryResources 3.10 VanillaTweaks_r999741

Mods List https://pastebin.com/GGUw20Gd

JackDotJS commented 3 years ago

Game breaking, should be at the top of the priority list

this is why the issue is pinned on this repo

SeaOfPixels commented 3 years ago

Seems to be maybe be an issue with mobs that spawn in with structures. This also sometimes happens when you relog into a world.

SeaOfPixels commented 3 years ago

Also they're not just invisible, they're invincible to melee attacks. This is not just a visual glitch.

Oakstar519 commented 3 years ago

Seems to be maybe be an issue with mobs that spawn in with structures. This also sometimes happens when you relog into a world.

In my experience it's persistent mobs, which includes structure-spawned mobs.

dubif commented 3 years ago

It appears that this bug is related to the "smooth world" perfomance option, turning it ON makes the zombie in my iron farm disappear, if I turn it OFF and get far away from the farm and then come back the zombie appears once more. Invisible zombie in the image below, notice that I can hear it by the subtitle line "zombie groans". image

takinotomo commented 3 years ago

Hey guys just want to contribute to the matter~

It's just speculation but could it possibly be related to the "Chunk Updates" option under Performance Settings? The bug seems related to chunk loading, and I initially speculated it to be due to the Lazy Chunk Loading option but some users seem to encounter this on multiplayer too, so. Can anybody who can reproduce this bug consistently test it with Chunk Updates set at 5?

btw @sp614x if you have trouble reproducing the bug try brutes in bastion remnants I think it is the easiest way, since the bug is kind of random and there are multiple of them in a bastion remnant.

Thanks a lot everyone. Peace.

Lythael commented 3 years ago

It appears that this bug is related to the "smooth world" perfomance option, turning it ON makes the zombie in my iron farm disappear, if I turn it OFF and get far away from the farm and then come back the zombie appears once more. Invisible zombie in the image below, notice that I can hear it by the subtitle line "zombie groans".

I think you might be onto something. I turned off Smooth World after reading your comment 6 days ago and to this day i haven't noticed any Invisible Drowned or Bastion Piglins in newly loaded chunks so far while usually it was 99% chance of meeting at least one.