Skip to content

MDK Broken on Aarch64 Devices #421

@MorningSage

Description

@MorningSage

I run Asahi Linux which is Aarch64. It would appear that lwjgl x64 is being loaded regardless of architecture which would cause a crash on systems that are not x64. This is not an issue doing dev work on Fabric.

Attempting to generate a template for 26.1.2 and run with no modifications to the project results in the following:

8:02:50 PM: Executing ':net.neoforged.devlaunch.Main.main()'…

Calculating task graph as no cached configuration is available for tasks: :net.neoforged.devlaunch.Main.main()
> Task :generateModMetadata UP-TO-DATE
> Task :createMinecraftArtifacts UP-TO-DATE
> Task :processResources
> Task :compileJava
> Task :classes
Connected to the target VM, address: 'localhost:38439', transport: 'socket'
Disconnected from the target VM, address: 'localhost:38439', transport: 'socket'

> Task :net.neoforged.devlaunch.Main.main() FAILED
[20:02:57] [main/INFO] [ne.ne.fm.st.Entrypoint/]: JVM Uptime at startup: 107ms
[20:02:57] [main/INFO] [ne.ne.fm.lo.FMLLoader/]: Starting FancyModLoader version 11.0.13 (CLIENT in DEV)
[20:02:57] [main/INFO] [ne.ne.fm.lo.FMLLoader/]: Game directory: /home/user/IdeaProjects/MDK-26.1.2-ModDevGradle/run
[20:02:57] [main/DEBUG] [ne.ne.fm.lo.FMLPaths/CORE]: Path GAMEDIR is /home/user/IdeaProjects/MDK-26.1.2-ModDevGradle/run
[20:02:57] [main/DEBUG] [ne.ne.fm.lo.FMLPaths/CORE]: Path JIJ_CACHEDIR is /home/user/IdeaProjects/MDK-26.1.2-ModDevGradle/run/.cache/jij
[20:02:57] [main/DEBUG] [ne.ne.fm.lo.FMLPaths/CORE]: Path MODSDIR is /home/user/IdeaProjects/MDK-26.1.2-ModDevGradle/run/mods
[20:02:57] [main/DEBUG] [ne.ne.fm.lo.FMLPaths/CORE]: Path CONFIGDIR is /home/user/IdeaProjects/MDK-26.1.2-ModDevGradle/run/config
[20:02:57] [main/DEBUG] [ne.ne.fm.lo.FMLPaths/CORE]: Path FMLCONFIG is /home/user/IdeaProjects/MDK-26.1.2-ModDevGradle/run/config/fml.toml
[20:02:57] [main/DEBUG] [ne.ne.fm.lo.EarlyServiceDiscovery/]: /home/user/.gradle/caches/modules-2/files-2.1/net.neoforged.fancymodloader/loader/11.0.13/c9c89eaf35535990110088224d188748d81eaecf/loader-11.0.13.jar contains early service net.neoforged.neoforgespi.locating.IModFileReader
[20:02:57] [ForkJoinPool.commonPool-worker-3/DEBUG] [ne.ne.fm.lo.EarlyServiceDiscovery/]: /home/user/.gradle/caches/modules-2/files-2.1/net.neoforged.fancymodloader/earlydisplay/11.0.13/491a1bedecb33802fa118cae384b60f91f6f0241/earlydisplay-11.0.13.jar contains early service net.neoforged.neoforgespi.earlywindow.ImmediateWindowProvider
[20:02:57] [main/DEBUG] [ne.ne.fm.lo.mo.ModFile/LOADING]: Loading mod file /home/user/.gradle/caches/modules-2/files-2.1/net.neoforged.fancymodloader/loader/11.0.13/c9c89eaf35535990110088224d188748d81eaecf/loader-11.0.13.jar with languages []
[20:02:57] [ForkJoinPool.commonPool-worker-3/DEBUG] [ne.ne.fm.lo.mo.ModFile/LOADING]: Loading mod file /home/user/.gradle/caches/modules-2/files-2.1/net.neoforged.fancymodloader/earlydisplay/11.0.13/491a1bedecb33802fa118cae384b60f91f6f0241/earlydisplay-11.0.13.jar with languages []
[20:02:57] [main/INFO] [ne.ne.fm.lo.EarlyServiceDiscovery/]: Found 2 early service jars (out of 93) in 14ms
[20:02:57] [main/INFO] [ne.ne.fm.lo.FMLLoader/]: Loading FML Early Services:
[20:02:57] [main/INFO] [ne.ne.fm.lo.FMLLoader/]:  - /home/user/.gradle/caches/modules-2/files-2.1/net.neoforged.fancymodloader/loader/11.0.13/c9c89eaf35535990110088224d188748d81eaecf/loader-11.0.13.jar
[20:02:57] [main/INFO] [ne.ne.fm.lo.FMLLoader/]:  - /home/user/.gradle/caches/modules-2/files-2.1/net.neoforged.fancymodloader/earlydisplay/11.0.13/491a1bedecb33802fa118cae384b60f91f6f0241/earlydisplay-11.0.13.jar
[20:02:57] [main/DEBUG] [ne.ne.fm.ut.ServiceLoaderUtil/CORE]: Found 0 implementations of GraphicsBootstrapper:
[20:02:57] [main/INFO] [ne.ne.fm.lo.ImmediateWindowHandler/]: Loading ImmediateWindowProvider fmlearlywindow
[20:02:57] [main/DEBUG] [ne.ne.fm.ut.ServiceLoaderUtil/CORE]: Found 1 implementations of ImmediateWindowProvider:
[20:02:57] [main/DEBUG] [ne.ne.fm.ut.ServiceLoaderUtil/CORE]: 	net.neoforged.fml.earlydisplay.DisplayWindow from /home/user/.gradle/caches/modules-2/files-2.1/net.neoforged.fancymodloader/earlydisplay/11.0.13/491a1bedecb33802fa118cae384b60f91f6f0241/earlydisplay-11.0.13.jar
[20:02:57] [main/DEBUG] [ne.ne.fm.ea.th.ThemeLoader/]: Loading built-in theme default
[20:02:57] [main/INFO] [ne.ne.fm.lo.FMLLoader/]: Closing FML Loader 2a65bb85
[20:02:57] [main/INFO] [ne.ne.fm.ModLoader/]: Clearing ModLoader

[Incubating] Problems report is available at: file:///home/user/IdeaProjects/MDK-26.1.2-ModDevGradle/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/9.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
5 actionable tasks: 3 executed, 2 up-to-date
Configuration cache entry stored.
2026-04-28T00:02:56.900661345Z main WARN Advanced terminal features are not available in this environment
[LWJGL] Platform/architecture mismatch detected for module: org.lwjgl
	JVM platform:		Linux aarch64 25.0.2
		OpenJDK 64-Bit Server VM v25.0.2+10-LTS by Azul Systems, Inc.
	Platform available on classpath:
		linux/x64
[LWJGL] Failed to load a library. Possible solutions:
	a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
	b) Add the JAR that contains the shared library to the classpath.
[LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.util.concurrent.ScheduledFuture.get(long, java.util.concurrent.TimeUnit)" because "this.rendererFuture" is null
	at net.neoforged.fml.earlydisplay.DisplayWindow.takeOverGlfwWindow(DisplayWindow.java:473)
	at net.neoforged.fml.earlydisplay.DisplayWindow.displayFatalErrorAndExit(DisplayWindow.java:561)
	at net.neoforged.fml.loading.ImmediateWindowHandler.displayFatalErrorAndExit(ImmediateWindowHandler.java:101)
	at net.neoforged.fml.startup.FatalErrorReporting.reportFatalError(FatalErrorReporting.java:80)
	at net.neoforged.fml.startup.FatalErrorReporting.reportFatalError(FatalErrorReporting.java:53)
	at net.neoforged.fml.startup.Client.main(Client.java:21)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at net.neoforged.devlaunch.Main.main(Main.java:57)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':net.neoforged.devlaunch.Main.main()'.
> Process 'command '/home/user/.jdks/azul-25.0.2/bin/java'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.

BUILD FAILED in 6s
8:02:57 PM: Execution finished ':net.neoforged.devlaunch.Main.main()'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions