Jump to content

java.lang.IllegalStateException: GLFW error before init: [0x10008]Cocoa: Failed to find service port for display


Lulu24151

Recommended Posts

  • 1 month later...
On 7/21/2021 at 8:04 AM, thelameONE said:

i fixed it put in

-Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32 -Dfml.earlyprogresswindow=falseM

hi I have a Macbook pro m1 and forge 1.15.2. your arguments work perfect for me. thank you from Russia.

Link to comment
Share on other sites

  • 2 weeks later...

I have a m1 MacBook Air.

I've found the following things fix the error:

1. just try launching again a couple of times.  sometimes it goes away on its own.

2. switch to a lower version of forge.

3. Switch to a higher version of forge.

4. add the -Dfml.earlyprogresswindow=false argument

 

One of those always works for me.  Note I am not a code person and this is just from Trial and Error XD  

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...
On 7/21/2021 at 7:04 AM, thelameONE said:

i fixed it put in

-Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32 -Dfml.earlyprogresswindow=falseM

This seems to work but it crashes if I increase the ram. I wanted to use 4 of 8G.. any fixes for that?

Link to comment
Share on other sites

  • 4 weeks later...

Hello,

me too forge-1.16.5-36.2.21 does not work it hangs at the time of "completed deep scan of forge-1.16.5-36.2.21-universal.jar"
and the game crashes and puts:

Error the game has stopped working
and below it puts:

The game crashed whilst initializing game
Error: java.lang.IllegalStateException: GLFW error before init: [0x10008]Cocoa: Failed to find service port for display
Exit Code: 255

and the crash report is:

----Minecraft Crash Report----
// On the bright side, I bought you a teddy bear!

Time: 22.02.22 18:09
Description: Initializing game

java.lang.IllegalStateException: GLFW error before init: [0x10008]Cocoa: Failed to find service port for display
at com.mojang.blaze3d.platform.GLX.func_229879_lam_(SourceFile:64) ~[?:?] {re:classloading}
at net.minecraft.client.MainWindow.func_211162_a(MainWindow.java:131)~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at com.mojang.blaze3d.platform.GLX._initGlfw(SourceFile:63) ~[?:?] {re:classloading}
at com.mojang.blaze3d.systems.RenderSystem.initBackendSystem(SourceFile:1060) ~[?:?] {re:classloading}
at net.minecraft.client.Minecraft.<init>(Minecraft.java:416) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:149) ~[1.16.5-forge-36.2.21.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_74] {}
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_74] {}
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_74] {}
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_74] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) ~[forge-1.16.5-36.2.21.jar:36.2] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {}


A detailed walkthrough of the error, its code path and all known details is as follows:
-------------------------------------------------- -------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
at com.mojang.blaze3d.platform.GLX.func_229879_lam_(SourceFile:64) ~[?:?] {re:classloading}
at net.minecraft.client.MainWindow.func_211162_a(MainWindow.java:131)~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at com.mojang.blaze3d.platform.GLX._initGlfw(SourceFile:63) ~[?:?] {re:classloading}
at com.mojang.blaze3d.systems.RenderSystem.initBackendSystem(SourceFile:1060) ~[?:?] {re:classloading}
at net.minecraft.client.Minecraft.<init>(Minecraft.java:416) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:149) ~[1.16.5-forge-36.2.21.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_74] {}
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_74] {}
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_74] {}
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_74] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) ~[forge-1.16.5-36.2.21.jar:36.2] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {}


-- System Details --
Details:
Minecraft Version: 1.16.5
Minecraft Version ID: 1.16.5
Operating System: Mac OS X (x86_64) version 10.16
Java Version: 1.8.0_74, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 1407526200 bytes (1342 MB) / 2080374784 bytes (1984 MB) up to 2147483648 bytes (2048 MB)
CPUs: 8
JVM Flags: 9 total; -Xss1M -XX:+IgnoreUnrecognizedVMOptions -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Launched Version: 1.16.5-forge-36.2.21
Backend library

thank you very much (and sorry for the translator, I'm French) :-)

Link to comment
Share on other sites

  • 1 month later...
  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.