sp614x / optifine

1.8k stars 418 forks source link

[Crash] Can't launch Optifine with Forge 1.18.2 - 40.1.54 or above #7009

Closed Lucreeper74 closed 2 years ago

Lucreeper74 commented 2 years ago

Description of Issue

I have already noticed when updating the Forge version of my modpack (required for some mods) that Optifine crashes my game when I launch a single player world. Then I quickly noticed that Optifine itself was the problem because I tested it on its own with different versions of forge. I couldn't run optifine only with 40.1.54 or higher.

Steps to Reproduce

  1. What do you do...
  2. ...to find this bug?

OptiFine Version

Optifine 1.18.2 - HD U H7 (Latest for 1.18.2)

Installation Method

Jar into Mods folder without any others mods.

Fabric/Forge Version

Issue with Forge 1.18.2 - 40.1.54 or Higher (I was in 40.1.67 for the crash report)

Log Files/Crash Reports

Crash report : https://pastebin.com/P3fRfUHZ Log : https://pastebin.com/EkaEsF6z

F3 Debug Screenshot

I can't launch singleplayer world so...

Additionnal

Thx u for reading my problem, and thanks in advance!

Okimo commented 2 years ago

To be exact latest Forge version that doesn't crash (in my case) is "40.1.57" after that its the same crash.

moninformateur commented 2 years ago

To be exact latest Forge version that doesn't crash (in my case) is "40.1.57" after that its the same crash.

Same here. Let's hope they'll update Optifine to work with those changes.

WebDragon commented 2 years ago

Can confirm and corroborate; am experiencing this myself with the current Direwolf20 1.18.2 pack,

https://pste.ch/enotejupil.rb crash log

forge-1.18.2-40.1.67-universal.jar
OptiFine_1.18.2_HD_U_H7

Game launches fine, but dies while opening any singleplayer world

HellishINC commented 2 years ago

Optifine is crashing because forge removed (or moved?) changed a method that it depends on.

java.lang.NoSuchMethodError: 'void net.minecraft.server.level.DistanceManager.addRegionTicket(net.minecraft.server.level.TicketType, net.minecraft.world.level.ChunkPos, int, java.lang.Object, boolean)'
    at net.minecraft.server.level.ServerChunkCache.addRegionTicket(ServerChunkCache.java:429) ~[client-1.18.2-20220404.173914-srg.jar%2361!/:?] {re:classloading,pl:accesstransformer:B}

Likely this is caused by this change:

 - 40.1.58 Backport: ForgeChunkManager ticking ticket fixes. (#8784)

from commit: https://github.com/MinecraftForge/MinecraftForge/commit/2070b77fd4f0121f248faf19c8cc110f52f99809

kingOf0 commented 2 years ago

image Actually 40.1.57 works. But 40.1.60 and 40.1.68 doesn't seem to work.

Okimo commented 2 years ago

Actually 40.1.57 works. But 40.1.60 and 40.1.68 doesn't seem to work.

As I said and other two before you confirmed :)

labradoe commented 2 years ago

Just went to start playing on 1.18.2 and discovered this issue. Hopefully this issue has been acknowledged and a fix is in the works.

SaltSouls commented 2 years ago

Yeah, same problem here. Really hoping this gets fixed, especially with all the recent issues with 1.19 as a whole, not just including the lack of big mods currently available for it.

Archasmiel commented 2 years ago

Same error, even if trying to launch only-Optifine: https://pastebin.com/jCeqn0FC https://pastebin.com/nSihVauL

HellishINC commented 2 years ago

"Me too"ing this issue does not contribute to the problem.

If you want to add your voice, add a reaction to the original (or other helpful) post.

All you're doing is spamming everyone here's inbox.

BlackEagle73 commented 2 years ago

Some new for possible patch ?

Okimo commented 2 years ago

Tbh its going to be ignored as every other bugs reports written here on github. As they are "working" right now on 1.19 and what's in previous versions they ignore. So they usually end up carrying old bugs with them too.

WebDragon commented 2 years ago

The annoying part of that is there are modpacks on 1.18.2 that we can no longer use Optifine for because of this. As well as there are going to be some people who don't want to move to 1.19 due to the ongoing kerfluffle over the whole reporting system.

labradoe commented 2 years ago

I made the switch over to Rubidium and Oculus. Not having any issues there and runs a bit better, imo. Good luck waiting for this one!

sp614x commented 2 years ago

Fixed in H8_pre1.

jvsdr commented 2 years ago

For future users don't have this issue... Just grab the preview version, and it works! PS: Keep update cause it's a preview version lol

image

AgentCPU0 commented 2 years ago

I tried the latest preview. My game still crashes

KitLoaf1 commented 1 year ago

Is there a version that works with Forge 40.1.79?

KillNagaThul commented 1 year ago

only OptiFine HD U H9 pre1 work with forge 40.1.79 other issues, you need to check each Mods installed... if you want to play with the latest version of forge you should consider replacing optifine with another mod, for example Oculus

WebDragon commented 1 year ago

the problem with that arises when a texturepack (Misa's Realistic) + BSL shaders are specifically tuned to work together with optifine in particular. The lack of a fix for this since July is particularly annoying.

AgentCPU0 commented 1 year ago

Why was this issue closed when it's very obvious it hasn't been fixed? Are the OptiFine devs just shrugging their shoulders and giving up? They know it's an isssue because people are reporting it