-
-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macOS] GLFW error 65548: Cocoa: Regular windows do not have icons on macOS #695
Comments
This change in behavior was introduced with glfw/glfw@9a87c2a. When Minecraft is updated to use LWJGL 3.3.0, they'll have to either ignore the LWJGL provides lightweight bindings and the policy is to not mess with the implementation of the native libraries, except in rare cases (e.g. when a serious bug fix takes too long to be merged upstream). This is not such a case. |
If I may ask, what exactly is the issue stopping GLFW from being able to use that feature on macOS? And would a fix be able to be implemented from something like a launcher and not only by messing with the actual LWJGL or Minecraft code? |
Windows do not have icons on macOS, applications do. Icons go into bundles and afaik there's no API to define them programmatically.
I don't think so. |
I have some more expansive questions regarding this issue, but I don't want to continue them here, where might I ask those? |
Go ahead. What's your question? |
All I’m trying to do is run Minecraft on the Apple Silicon macs that use ARM based processors.
Lunar Client is native for Apple Silicon, runs on the latest version of macOS, and runs versions as old as 1.8, so they’ve bypassed this issue somehow but I don’t know how. I’m guessing the solution would be fixing older Minecraft versions to use LWJGL 3, or compile (and modify) older versions of LWJGL for Apple Silicon, both of which I don’t know how to do. I’m open to suggestions, solutions, or just information on how to execute the two proposed solutions. Also I can repost this on the forum if it’s too much for here. |
I believe a Java Agent can work to intercept calls to GLFW, and silently handle the errors with the agent. I don't know how Lunar does it, though. |
I’ll look into that, thank you! |
MacOS Cocoa Hot FixSpecify GLFW Library use via a location path using Prism Launcher |
This is the error: GLFW error 65548: Cocoa: Regular windows do not have icons on macOS. Please make sure you have up-to-date drivers (see aka.ms/mcdriver for instructions). Fix from minerllabs#659 (comment) See more info LWJGL/lwjgl3#695
Version
3.3.0 (nightly)
Platform
macOS arm64
JDK
Zulu OpenJDK 11.0.13
Module
GLFW
Bug description
I compiled and bundled together nightly jars into one fat jar and used that with
Minecraft 1.16.5
. The game wouldn't launch with errorGLFW error 65548: Cocoa: Regular windows do not have icons on macOS
. So I went to code and commented out everything insideglfwSetWindowIcon
,nglfwSetWindowIcon
, madeglfwSetWindowIconifyCallback
return null, andnglfwSetWindowIconifyCallback
return 0. After this, game launches successfully and works great.Decision should be made whether this is a bug that should be fixed in lwjgl3 or it's responsibility of library users to not even call said procedures when running under macos. But it would clearly make many apps automatically compatible without touching their code, if those procedures were just made NOPs in macos library builds.
Stacktrace or crash log output
GLFW error 65548: Cocoa: Regular windows do not have icons on macOS
The text was updated successfully, but these errors were encountered: