Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-214198

GL Cocoa Error loading realm on M1 Mac

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.16.5
    • None
    • macOS Big Sur (11.1), Mac mini (M1, 2020), single external display. Running Minecraft 1.16.5.
    • Community Consensus
    • (Unassigned)

      Loading up Minecraft 1.16.5 and attempting to enter a realm, the app hangs indefinitely on the "Connecting to realm" screen.

      Reviewing the logs finds the following entries (several lines not part of the bug but are included for context):

      [12:22:57] [Render thread/INFO]: Backend library: LWJGL version 3.2.1 build 12
      [12:22:58] [Render thread/ERROR]: GLFW error collected during initialization: GLFW error during init: [0x10008]13092654480
      [12:23:01] [Render thread/INFO]: Reloading ResourceManager: Default

      <Some logs snipped for brevity>

      [12:23:14] MCO Compatability Checker #1/INFO: Realms is available for this user
      [12:23:15] [Realms Texture Downloader/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
      [12:28:40] [Render thread/ERROR]: ########## GL ERROR ##########
      [12:28:40] [Render thread/ERROR]: @ Render
      [12:28:40] [Render thread/ERROR]: 65544: Cocoa: Failed to find service port for display
      [12:30:39] [Render thread/ERROR]: ########## GL ERROR ##########
      [12:30:39] [Render thread/ERROR]: @ Render
      [12:30:39] [Render thread/ERROR]: 65544: Cocoa: Failed to find service port for display
      [12:30:40] [Render thread/ERROR]: ########## GL ERROR ##########
      [12:30:40] [Render thread/ERROR]: @ Render
      [12:30:40] [Render thread/ERROR]: 65544: Cocoa: Failed to find service port for display
      [12:35:27] [Render thread/ERROR]: ########## GL ERROR ##########
      [12:35:27] [Render thread/ERROR]: @ Render
      [12:35:27] [Render thread/ERROR]: 65544: Cocoa: Failed to find service port for display
      [12:40:02] [Render thread/ERROR]: ########## GL ERROR ##########
      [12:40:02] [Render thread/ERROR]: @ Render
      [12:40:02] [Render thread/ERROR]: 65544: Cocoa: Failed to find service port for display
      [12:40:07] [Render thread/INFO]: Stopping!

      This appears to be an issue discussed extensively here:

      https://github.com/MinecraftForge/MinecraftForge/issues/7558

      Resulting in a patch/workaround here:

      https://github.com/glfw/glfw/pull/1833

      It's not clear to me how related these are, and whether this upstream fix needs to be included in a patch for 1.16.5.

            Unassigned Unassigned
            natekitch Nathan Kitchen
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: