SolvedMinecraftForge Apple Silicon Mac GLFW error on startup

Minecraft Version: 1.16.4

Forge Version: all versions from 35.1.4 to 35.1.13, as well as 35.0.0


Steps to Reproduce:

  1. Simply install Forge with the vanilla minecraft launcher through Rosetta, or create a new blank forge instance in MultiMC, running either natively (with this guide) or also through Rosetta.
  2. Launch the game.

Description of issue:

Upon launch of any 1.16.4 version with Forge installed, using native or Intel LWJGL, a GLFW error causes the game to crash:

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

Some say they have fixed this error using the argument -Dfml.earlyprogresswindow=false, but for me and several others, adding the argument just causes the GLFW error to display in a popup window, and the error in the log is mostly the same:

[17:14:59] [Render thread/ERROR] [mojang/GLX]: GLFW error collected during initialization: GLFW error during init: [0x10008]6123248856
[17:15:29] [Render thread/WARN] [minecraft/Main]: Failed to create window: 
net.minecraft.client.MainWindow$GlException: GLFW error 65544: Cocoa: Failed to find service port for display

This does not happen in Vanilla, and I have also observed it in many forge 1.15.2 versions. I have also observed that the instance will very rarely launch successfully. I have no good explanation for this, and it's extremely inconsistent, but for some reason, sometimes it just decides it will launch fine, and in these cases the game will be perfectly playable.

In the instances I have been able to launch it, it has generally been on a new launch of MultiMC, which makes me wonder if this has something to do with GLFW initializing before forge; if it runs as a separate background process, it becomes a race to see which one inits first, and if you keep trying to launch the same instance, the code for GLFW is cached or something. Just a complete guess, I don't know how Forge uses GLFW internally.

32 Answers

✔️Accepted Answer

fyi, this is not a bug in macOS, but rather a deprecation of an entire API layer that no longer works on Apple Silicon. A correct patch has been merged to glfw master.

The patch supplied above (early null return) shouldn't have any bad side effects though, and is fine as a stop gap imho.

Other Answers:

A fix for the Failed to find service port for display error has been merged to the 3.3-stable branch of GLFW and I'm hoping to have 3.3.3 out next week.

It seems to be a bug in upstream macOS. I've removed the failing call in glfw and forge works fine.

I've built a version of glfw with the failing function just returning null (sdirkwinkel/glfw@310d5c3)

you cat get the lib here:

I'm able to run forge modpacks with this. FPS are quite good.

Related Issues:

MinecraftForge Apple Silicon Mac GLFW error on startup
fyi this is not a bug in macOS but rather a deprecation of an entire API layer that no longer works ...
MinecraftForge Recipes with damaged ingredients are broken
Did a little bit of debugging CompoundIngredient#getValidItemStacksPacked is annotated with @SideOnl...
pgjdbc org.postgresql.jdbc.PgConnection.createClob() is not yet implemented
@mkpaz The property hibernate.jdbc.lob.non_contextual_creation works you just need to use it like th...
springfox @ApiModelProperty throwing NumberFormatException if example value is not set
Hi everybody I solved this issue removing old swagger version (1.5.20) and add new one In pom.xml ...
elasticsearch es crashes with "Native controller process has stopped - no new native processes can be started"
@martin-g Did you find it out? having the same issue Update: setting: - discovery.type=single-node s...
retrofit Kotlin & @Body
You can still use Map just suppress its wildcardness with @JvmSuppressWildcards ...
dbeaver "invalid privatekey" connecting through SSH tunnel
Run this on your key to convert it to RSA private key Helped me ssh-keygen -p -m PEM -f ~/.ssh/id_rs...
RxJava How to keep an Observable alive after onError?
The pattern for this abersnaze is referring to is (swallowing all errors (I'm learning reactive) My ...
junit5 java.lang.NoSuchMethodError: org.junit.platform.commons.util.ReflectionUtils.tryToLoadClass Migrating to 5.4.0
Fixed by replacing: with: JDK: 11 Spring Boot: 2.1.2.RELEASE JUnit: 5.4.0 Maven: 3.6.0 Surefire: 3.0...
flutter intellij Can't wrap widget list with new widget assist by Alt+Enter
@wisit-phusi I thought you may disable Dart Quick Assists (Alt+Enter) from IDE To make sure please o...
idea gitignore All files are marked as ignored
All right fix has been released with v3.1.2 Now it has to be accepted by the Jetbrains team. ...
capacitor FileReader API not firing
You can try this. Description of the problem: In my project I'm trying to read and convert a Blob do...
springfox Swagger ui stuck on unable to infer base url
I had the same problem using Spring Boot 2.0.0.M4 + Spring Security This solved my issue: I don't kn...
springfox Issue when using Swagger latest version 2.9.2 with Spring boot 2.2.0
Added this to dependency and it worked for me. Hi ...
generator jhipster Uncaught Error: Module build failed: Error: ENOENT: no such file or directory, scandir '**\node_modules\node-sass\vendor'
@lancurtis run npm rebuild node-sass Hi There was an error occured in my chrome on windows 10 x64 wh...
cordova android Build errors about drawable since upgrading to v8.0.0
Hello all ! This error also appears when I do release build after upgrading to cordva-android@8.0.0 ...
Android Iconics Execution failed for task ':app:mergeExtDexDebug'.
Hi I solved the same issue by setting multiDexEnabled true in /android/app/build.gradle like: androi...
elasticsearch Red Cluster State: failed to obtain in-memory shard lock
It looks like there was a primary with no replicas allocated to the node when it got disconnected fr...
docker maven plugin No plugin found for prefix 'docker' in the current project and in the plugin groups
in maven :settings.xml add Running 'mvn docker:build -DdockerImageTags=ci-$JOB_BASE_NAME-$BUILD_NUMB...
dbeaver Postgres connection error
@lcustodio on the SSL page set SSL mode: require and either leave the SSL Factory blank or use the o...
webdrivermanager session not created: This version of ChromeDriver only supports Chrome version 75
I got this working I started getting this error sometime recently in my own code base ...
vscode java Warning: Classpath is incomplete. Only syntax errors will be reported.
Yes I opened a folder that contains a pom.xml file it did not show this warning again I think the wa...
capacitor iOS xcode Project - No such module found ‘Capacitor’
@vi354258 make sure you are opening the Xcode Workspace (App.xcworkspace instead of App.xcodeproj) ...
spring cloud netflix Eureka client shutting down unexpectedly after registering with Eureka server
I got the same problem I resolved it by adding this dependency: My service app-name shuts down unexp...
cordova android Support new Android App Bundle package format
@jfoclpf I got it working on circle ci The steps are: 4 - Upload app.aab to google play. ...
uCrop FileUtils NumberFormatException
This is not a complete solution just nothing will happen But I think users should be able to open fi...
okhttp Android O StrictMode: Untagged socket detected
there would be negligible value to having such a tag Suppose a dev team sets penaltyDeath() for all ...
dbeaver Create a PPA for updating dbeaver under ubuntu
First DBeaver CE PPA is here: Usage: I...
spring boot Maven-failsafe-plugin fails to execute integration tests
A workaround is to configure a classifier for the repackaged jar This allows Failsafe to use the ori...
testcontainers java "Can not connect to Ryuk" on macOS with Docker for Mac
Docker for Mac was released yesterday pushing this issue into the stable version ...
RxJava 3.x: Potential migration/compatibility issues
After careful considerations of all target environments (Android/Desktop/Server) as well as any futu...
mapstruct Mapstruct + lombock failed compilation
Whoever stumbles across this issue now with IntelliJ 2020.3: In my case I could resolve the issue by...
react native iap IOS check if autorenewal subscription is still active
Here is the function I am using that works on both Android and iOS properly sorting on iOS to ensure...
graphql code generator [TypeScript Resolvers] Apollo Server resolvers types mismatch
For anyone wondering where to put the useIndexSignature: true my codegen.yml looks like this (see th...
mockito There is a issue, after I downgrade the Mockito version, it disappeared
Confirmed upgrading to 2.0.0-beta.5 does solve the problem I had to do this for both powermock-api-m...
androidannotations Could not find AndroidManifest.xml file using generation folder
@mihaiAdascalitei Thanks for your solution A little bit improvement. Android build fails with this e...
vscode java The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted.
Thank you for giving me the setting I was able to figure out what was going wrong...
springfox Swagger-UI authorization headers stopped being sent in 2.8.0
A lot of the examples posted here and in the Springfox documentation felt too complicated for our us...
springfox Springfox swagger-ui.html not loading using version 3.0.0-SNAPSHOT
In spring boot it works by simply adding this In our project we are using 3.0.0-SNAPSHOT of swagger ...
thymeleaf How to reload templates without restarting the spring boot application?
I found from the tutorial here:
vscode java Openjdk is being treated as invalid JDK on vscode for linux
Hi @tarun0 I had a similar issue on Ubuntu 19.10 Installing openjdk-11-jdk explicitly fixed it ...
docker maven plugin Maven-Docker Build cannot create docker image
For me the issue was Capital letter in image name while building the Image For example following plu...
dbeaver dbeaver 6.3.4 on macOS 10.15.3 Catalina fails to open with message "Failed to create the Java Virtual Machine."
@jesimone57 As you mentioned there is a problem when DBeaver runs on adoptopjtjdk 11.0.6 In my case ...
mapstruct Kotlin data classes and mapstruct
@gildor In most cases we want to avoid mutability (especially on DTO layer): Related to #1298 and #7...
elasticsearch Unrecognized VM option 'UseConcMarkSweepGC' on OpenJDK 15
I encountered the same problem (CentOS 7 elasticsearch 7.9.2) I made some research and found this el...
ray [Dashboard] OSError: [Errno 99] error while attempting to bind on address ('::1', 8265, 0, 0): cannot assign requested address
I had the exact same error Solved it by adding ray.init(webui_host='') at the beginning of ...
spring boot Ensure all properties map nicely to yaml
I think I finally understand the issue here A sample would have been very useful As would have inclu...
dbeaver Failed to create java virtual machine .
Was able to get Dbeaver to start with an installation of Oracle JDK 8 update 202 on my Mac in /Libra...
selenium Selenium 3.4.0 Unable to find matching capabilities
@AutomatedTester actually for me it's exactly that driver = webdriver.Firefox() issue. ...