[Bug Report] Optifine crash
Description of Issue
For a long time there were no issues, but since 2 days I can't play anymore with Optifine. Minecraft starts lagging (maximum of 6 fps) and after a few seconds it crashes. Updated all graphic drivers but the issue still persists.
Steps to Reproduce
- Login to a server (no issues)
- Go to a different gamemode (issues start)
- FPS drops to max. 10 fps, after some time (5-60 sec) the game crashes
OptiFine Version
OptiFine HD U I7 pre2
Installation Method
Standalone installer
Log Files/Crash Reports
Log file: https://pastebin.com/s65Mv1eF Crash report: https://pastebin.com/d6h1JeDu
F3 Debug Screenshot
Screenshot taken 2s before a crash
Prior Testing
If you've installed standalone:
- Does this happen in Vanilla without OptiFine? With Vanilla this doesn't happen
Additional Information
.
Do you have a GPU? In the F3 screenshot you are using the integrated gpu. The log is saying that it's running out of memory, which would cause the low FPS and crash
I do indeed have a Nvidia GPU. My thoughts were that is was running on the GPU already, but apparently it's not 🤔 Any idea how to enforce this setting?
But besides that, it's still strange that it's running out of memory. Minecraft was the only thing I had open
If you have the Microsoft Store version of the Minecraft launcher then follow these instructions:
- Download and install a separate JDK like Adoptium: https://adoptium.net/temurin/archive/
- Open Settings -> System -> Display.
- Scroll to "Graphics/Graphics settings."
- Press Browse.
- Browse to
C:\Program Files\Eclipse Adoptium\jdk-17.0.10.x-hotspot\bin\javaw.exeand hit add. - Press Options and select High Performance.
- Open the Minecraft Launcher and go to the installations tab.
- Press the three dots on your installation and press edit.
- Press more options.
- Press browse under Java Executable.
- Browse to
C:\Program Files\Eclipse Adoptium\jdk-17.0.10.x-hotspot\bin\javaw.exeand press open. - Press save.
If you have the old Minecraft launcher then follow these instructions:
- Open Settings -> System -> Display
- Scroll to "Graphics/Graphics settings."
- Press Browse.
- Add Minecraft's Java under
C:\Program Files (x86)\Minecraft Launcher\runtime\java-runtime-gamma\windows-x64\java-runtime-gamma\bin\javaw.exe - Press Options and select "High Performance."
Thanks for this information. I've done all steps 12 steps, and it looks like it now runs on my Nvidia GPU. The fps still drops, only change is that it didn't crash.
Try disabling Smooth FPS (settings -> video settings -> performance.) Since you are on a laptop, you may have power saving mode enabled which would cause the low FPS. It usually can be disabled in the graphics driver panel and choosing which program should run in power saving mode. (Probably need to disable it for javaw.exe)
Disabling smooth FPS doesn't change anything. In the Graphics driver program I've selected the javaw.exe also as high performance (same as in windows settings).
In addition to this I do think I found the root cause and am able to replicate it in a new void world:
- No issues in a void world
- Make a big WE selection (>1000 blocks)
- Run this command:
//set blue_stained_glass,light_blue_stained_glass,white_stained_glass - Game starts lagging/crashing
Try disabling connected textures. Having so much glass would probably make rendering slow
Hi, sorry for the delayed response. Was not able to test this before.
Disabling connected textures did not solve my issue.
Does it work with other blocks, not stained glass?
Resetting video settings could help: Options -> Video Settings -> Other -> Reset Video Settings
Does it work with other blocks, not stained glass?
With any other block it seems file, but as soon as there is a pattern with more multiple colors it's starts to lagg. The more different colored stained glass, the worst it is.
Resetting video settings could help: Options -> Video Settings -> Other -> Reset Video Settings
Resetting reduce the lagg a little bit, but it's still around 10fps