Closed mirraj2 closed 2 months ago
Hey @mirraj2,
GLFW is not compatible with AWT on macOS. They both need to claim the main thread event loop and, depending on which is initialized first, one breaks the other. LWJGL offers alternative bindings for loading fonts (stb_truetype, freetype, harfbuzz) and images (stb_image, KTX).
LWJGL also ships an alternative GLFW implementation, which handles all windowing system events asynchronously. It can be enabled by setting GLFW_LIBRARY_NAME
to glfw_async
(or with -Dorg.lwjgl.glfw.libname=glfw_async
). You may have better luck with that if you cannot avoid AWT.
thank you @Spasi
Version
3.3.3
Platform
macOS arm64
JDK
JDK 11
Module
LWJGL
Bug description
new java.awt.Font("Arial", java.awt.Font.PLAIN, 14).toString();
Actual: the window does not close. As a matter of fact, the game loop has stopped running entirely because glfwPollEvents() is blocking forever
Expected: I expect that I should be able to load AWT classes without everything dying.
Stacktrace or crash log output
No response