Launcher icon indicating copy to clipboard operation
Launcher copied to clipboard

OptiFine 1.8.9 w/ Forge Crashes when launching on MultiMC

Open ghost opened this issue 6 years ago • 23 comments

System Information

MultiMC version: 0.6.11

Operating System: macOS Catalina 10.15.6

Summary of the issue or suggestion: 1.8.9 OptiFine crashes with Forge version 11.15.1.2318 (latest version)

What should happen: Instance should launch normally with OptiFine and Forge installed.

Steps to reproduce the issue (Add more if needed):

  1. Install latest version of Forge

  2. Install OptiFine 1.8.9 in Loader mods

  3. Launch the instance

  4. Crash

Suspected cause:


Logs/Screenshots: https://paste.ee/p/MCQI9

Additional Info:

ghost avatar Aug 28 '20 19:08 ghost

This seems to be similar to #3250. Please try the workaround suggested by @Janrupf and report back whether it worked.
Related issues: #3173 #3270 #3253
In some of those, changing the java version seemingly helped. Also try reload and download all in the version page.

QuImUfu avatar Sep 01 '20 08:09 QuImUfu

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'

This may only be applicable to LWJGL 3, but try using -XstartOnFirstThread.

jamierocks avatar Sep 03 '20 17:09 jamierocks

So, I used -XstartOnFirstThread and also tried to reload and download all in the versions page, but it still crashes.

https://paste.ee/p/wIbIS Screenshot 2020-09-03 at 19 02 53 Screenshot 2020-09-03 at 19 03 04

I am using the latest version of Java and I have yet to try and downgrade the version of it

ghost avatar Sep 03 '20 18:09 ghost

~~You need to keep the checkbox Java Arguments checked. Please also upload a log with the checkbox enabled and the arguments in the text field!~~

Didn't see the log link, sorry

Janrupf avatar Sep 04 '20 15:09 Janrupf

I'm assuming the flag was set globally, as it was definitely enabled in the log.

[-XstartOnFirstThread, -Xdock:icon=icon.png, -Xdock:name="MultiMC: 1.8.9", -Xms512m, -Xmx1024m, -Duser.language=en]

jamierocks avatar Sep 04 '20 15:09 jamierocks

~You need to keep the checkbox Java Arguments checked. Please also upload a log with the checkbox enabled and the arguments in the text field!~

Didn't see the log link, sorry

https://paste.ee/p/SPqKP I kept the checkbox 'Java Arguments' checked but it still crashed.

ghost avatar Sep 04 '20 16:09 ghost

Well, that is at least another error, so some progress. I have seen this error before, but I don't know where. You could try downgrading your Java version to 8.61 (or something like that).

For reference, the error now causing the crash is glGenLists returned an ID of 0 for a count of 1, GL error (0): No error code reported

Janrupf avatar Sep 04 '20 17:09 Janrupf

Well, that is at least another error, so some progress. I have seen this error before, but I don't know where. You could try downgrading your Java version to 8.61 (or something like that).

For reference, the error now causing the crash is glGenLists returned an ID of 0 for a count of 1, GL error (0): No error code reported

Do I have to uninstall my latest Java version or could I just keep both versions and use the older version for only 1.8.9?

ghost avatar Sep 04 '20 18:09 ghost

Do I have to uninstall my latest Java version or could I just keep both versions and use the older version for only 1.8.9?

If you configure MultiMC correctly, you can keep the old version. When you launch with it, upload a new log please.

Janrupf avatar Sep 04 '20 18:09 Janrupf

Do I have to uninstall my latest Java version or could I just keep both versions and use the older version for only 1.8.9?

If you configure MultiMC correctly, you can keep the old version. When you launch with it, upload a new log please.

Ok, where do I download the older Java version?

Edit: I would also appreciate it if you could tell me which older Java version I should download.

ghost avatar Sep 04 '20 18:09 ghost

I also tested out if installing OptiFine 1.8.9 + Forge on the normal launcher would crash, it launched normally with no issues, with the latest java version.

ghost avatar Sep 05 '20 13:09 ghost

Can you try to find out which launch arguments the official launcher uses? Maybe something differs there. Another possibility would be that the official launcher runs Minecraft on the GPU, and somehow MultiMC manages to run it on the CPU? (Not sure if this is even possible on a MAC)

Janrupf avatar Sep 05 '20 13:09 Janrupf

Can you try to find out which launch arguments the official launcher uses? Maybe something differs there. Another possibility would be that the official launcher runs Minecraft on the GPU, and somehow MultiMC manages to run it on the CPU? (Not sure if this is even possible on a MAC)

-Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

ghost avatar Sep 05 '20 13:09 ghost

This is what happens when I try to run 1.8.9 Optifine + Forge, on MultiMC, with the Java Arguments as -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M https://paste.ee/p/XA4Pj

ghost avatar Sep 05 '20 13:09 ghost

You now need to add back the -XstartOnFirstThread

Janrupf avatar Sep 05 '20 14:09 Janrupf

I have the same issue.

SoCuul avatar Sep 05 '20 21:09 SoCuul

You now need to add back the -XstartOnFirstThread

Do I add the -XstartOnFirstThread with -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M?

Or do I remove -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M and add -XstartOnFirstThread'?

ghost avatar Sep 06 '20 17:09 ghost

Yes

Janrupf avatar Sep 06 '20 18:09 Janrupf

Just adding my experience in : Using a Mac on 10.15.6, Minecraft 1.12.2, forge-1.12.2-14.23.5.2854, OptiFine_1.12.2_HD_U_F5.jar

Using MultiMC with Optifine: Crash Using Mojang's Launcher with Optifine: Works

I also tried adding the -XstartOnFirstThread in MultiMC, which it allowed it to keep working up until the Sound Manager was loaded, then it crashed.

darchitectlp avatar Sep 07 '20 06:09 darchitectlp

Hey I found a solution (at least for me)!!

Use the Zulu build of OpenJDK and set the Java path to /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/bin/java after install.

At least for me, the -XstartOnFirstThread was not necessary, but you may need to try for yourself.

adamthedog avatar Sep 08 '20 21:09 adamthedog