Skip to content

[1.21.9] Game hangs when calling java.awt.Desktop::isDesktopSupported #365

@Fuzss

Description

@Fuzss

Minecraft Version: 1.21.9

NeoForge Version: 21.9.11-beta

Logs: latest.log

Steps to Reproduce:

  1. Add a call to java.awt.Desktop.isDesktopSupported()
  2. Infinite hang when the method is invoked

Description of issue:
The game hangs, there is no crash. The log shows nothing.

Can easily be reproduced using the NeoForge examplemod template.

This is happening on macOS, might behave differently on other systems.

Works fine on Fabric, also hasn't been an issue on NeoForge in the past (<1.21.9).

Edits:
By works fine on Fabric I was referring to the fact that the game does not hang and is able to call Desktop::isDesktopSupported without issues. The method however does return false (at least for my system).

Also turns out this has been an issue before on NeoForge, I was now able to reproduce it on 1.21.8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions