Mod not marked as client-sided, causing server crash.
etzabo opened this issue · 1 comments
Minecraft Version
1.20.1
Oculus Version
1.7.0
Rubidium / Embeddium Version
0.3.20
Operating System
Ubuntu Server
What is your GPU?
No GPU
Java Version
Java 17 (Zulu, amd64)
Reproduction Steps
- Install Oculus on a server
- Run the server
- Crashes
Crash Report file and latest.log
---- Minecraft Crash Report ----
// My bad.
Time: 2024-06-19 15:55:56
Description: Mod loading error has occurred
java.lang.Exception: Mod Loading has failed
at net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:60) ~[forge-1.20.1-47.1.106-universal.jar%23152!/:?] {re:classloading}
at net.minecraftforge.server.loading.ServerModLoader.load(ServerModLoader.java:37) ~[forge-1.20.1-47.1.106-universal.jar%23152!/:?] {re:classloading}
at net.minecraft.server.Main.main(Main.java:125) ~[server-1.20.1-20230612.114412-srg.jar%23147!/:?] {re:mixin,re:classloading,pl:mixin:A}
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) ~[?:?] {}
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] {}
at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:126) ~[loader-47.2.2.jar%2351!/:47.2] {}
at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.serverService(CommonLaunchHandler.java:118) ~[loader-47.2.2.jar%2351!/:47.2] {}
at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.runService(CommonServerLaunchHandler.java:26) ~[loader-47.2.2.jar%2351!/:47.2] {}
at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:108) ~[loader-47.2.2.jar%2351!/:47.2] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {}
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: main
Stacktrace:
at net.minecraftforge.fml.loading.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:57) ~[loader-47.2.2.jar%2351!/:47.2] {}
-- MOD oculus --
Details:
Mod File: /data/mods/oculus-mc1.20.1-1.7.0.jar
Failure message: Oculus (oculus) has failed to load correctly
java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screens/Screen for invalid dist DEDICATED_SERVER
Mod Version: 1.7.0
Mod Issue URL: https://github.com/Asek3/Oculus/issues
Exception message: java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screens/Screen for invalid dist DEDICATED_SERVER
Stacktrace:
at net.minecraftforge.fml.loading.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:57) ~[loader-47.2.2.jar%2351!/:47.2] {}
at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.10.jar:?] {}
at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?] {}
at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.10.jar:?] {}
at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?] {}
at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.10.jar:?] {}
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?] {}
at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:?] {re:mixin}
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) ~[?:?] {re:mixin}
at java.lang.Class.getConstructor0(Unknown Source) ~[?:?] {re:mixin}
at java.lang.Class.getDeclaredConstructor(Unknown Source) ~[?:?] {re:mixin}
at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:75) ~[language-java-47.2.2.jar%23149!/:47.2] {}
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$10(ModContainer.java:123) ~[core-47.2.2.jar%23148!/:47.2] {}
at java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source) ~[?:?] {}
at java.util.concurrent.CompletableFuture$AsyncRun.exec(Unknown Source) ~[?:?] {}
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[?:?] {}
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) ~[?:?] {}
at java.util.concurrent.ForkJoinPool.scan(Unknown Source) ~[?:?] {re:computing_frames}
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) ~[?:?] {re:computing_frames}
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) ~[?:?] {}
-- System Details --
Details:
Minecraft Version: 1.20.1
Minecraft Version ID: 1.20.1
Operating System: Linux (amd64) version 5.4.0-105-generic
Java Version: 21.0.3, Eclipse Adoptium
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Eclipse Adoptium
Memory: 3261069312 bytes (3109 MiB) / 4294967296 bytes (4096 MiB) up to 4294967296 bytes (4096 MiB)
CPUs: 4
Processor Vendor: AuthenticAMD
Processor Name: AMD EPYC 7282 16-Core Processor
Identifier: AuthenticAMD Family 23 Model 49 Stepping 0
Microarchitecture: Zen 2
Frequency (GHz): -0.00
Number of physical packages: 1
Number of physical CPUs: 4
Number of logical CPUs: 4
Graphics card #0 name: unknown
Graphics card #0 vendor: unknown
Graphics card #0 VRAM (MB): 0.00
Graphics card #0 deviceId: unknown
Graphics card #0 versionInfo: unknown
Virtual memory max (MB): 2970.60
Virtual memory used (MB): 3050.66
Swap memory total (MB): 0.00
Swap memory used (MB): 0.00
JVM Flags: 2 total; -Xmx4G -Xms4G
ModLauncher: 10.0.9+10.0.9+main.dcd20f30
ModLauncher launch target: forgeserver
ModLauncher naming: srg
ModLauncher services:
mixin-0.8.5.jar mixin PLUGINSERVICE
eventbus-6.0.5.jar eventbus PLUGINSERVICE
loader-47.2.2.jar slf4jfixer PLUGINSERVICE
loader-47.2.2.jar object_holder_definalize PLUGINSERVICE
loader-47.2.2.jar runtime_enum_extender PLUGINSERVICE
loader-47.2.2.jar capability_token_subclass PLUGINSERVICE
accesstransformers-8.0.4.jar accesstransformer PLUGINSERVICE
loader-47.2.2.jar runtimedistcleaner PLUGINSERVICE
modlauncher-10.0.9.jar mixin TRANSFORMATIONSERVICE
modlauncher-10.0.9.jar fml TRANSFORMATIONSERVICE
FML Language Providers:
[email protected]
[email protected]
[email protected]
Mod List:
server-1.20.1-20230612.114412-srg.jar |Minecraft |minecraft |1.20.1 |COMMON_SET|Manifest: NOSIGNATURE
emi-1.1.7+1.20.1+forge.jar |EMI |emi |1.1.7+1.20.1+forge |COMMON_SET|Manifest: NOSIGNATURE
createbigcannons-forge-1.20.1-0.5.4.jar |Create Big Cannons |createbigcannons |0.5.4-nightly-8b9cea|COMMON_SET|Manifest: NOSIGNATURE
Chunky-1.3.146.jar |Chunky |chunky |1.3.146 |COMMON_SET|Manifest: NOSIGNATURE
jei-1.20.1-forge-15.3.0.8.jar |Just Enough Items |jei |15.3.0.8 |COMMON_SET|Manifest: NOSIGNATURE
EMIEnchants-forge-1.19.2-1.0.0.jar |EMI Enchants |emienchants |1.0.0 |COMMON_SET|Manifest: NOSIGNATURE
notenoughanimations-forge-1.7.4-mc1.20.1.jar |NotEnoughAnimations |notenoughanimations |1.7.4 |COMMON_SET|Manifest: NOSIGNATURE
flywheel-forge-1.20.1-0.6.10-7.jar |Flywheel |flywheel |0.6.10-7 |COMMON_SET|Manifest: NOSIGNATURE
create-1.20.1-0.5.1.f.jar |Create |create |0.5.1.f |COMMON_SET|Manifest: NOSIGNATURE
ritchiesprojectilelib-1.0.0-369e88d+1.20.1-forge.j|Ritchie's Projectile Library |ritchiesprojectilelib |1.0.0-369e88d+1.20.1|COMMON_SET|Manifest: NOSIGNATURE
badpackets-forge-0.4.2.jar |Bad Packets |badpackets |0.4.2 |COMMON_SET|Manifest: NOSIGNATURE
emi_loot-0.6.5+1.20.1+forge.jar |EMI Loot |emi_loot |0.6.5+1.20.1+forge |COMMON_SET|Manifest: NOSIGNATURE
entityculling-forge-1.6.6-mc1.20.1.jar |EntityCulling |entityculling |1.6.6 |COMMON_SET|Manifest: NOSIGNATURE
mixinextras-forge-0.3.6.jar |MixinExtras |mixinextras |0.3.6 |COMMON_SET|Manifest: NOSIGNATURE
emitrades-forge-1.2.1+mc1.20.1.jar |EMI Trades |emitrades |1.2.1+mc1.20.1 |COMMON_SET|Manifest: NOSIGNATURE
ImmediatelyFast-Forge-1.2.18+1.20.4.jar |ImmediatelyFast |immediatelyfast |1.2.18+1.20.4 |COMMON_SET|Manifest: NOSIGNATURE
create_dragon_lib-1.20.1-1.4.3.jar |Create: Dragon Lib |create_dragon_lib |1.4.3 |COMMON_SET|Manifest: NOSIGNATURE
ferritecore-6.0.1-forge.jar |Ferrite Core |ferritecore |6.0.1 |COMMON_SET|Manifest: 41:ce:50:66:d1:a0:05:ce:a1:0e:02:85:9b:46:64:e0:bf:2e:cf:60:30:9a:fe:0c:27:e0:63:66:9a:84:ce:8a
emiffect-forge-1.1.2+mc1.20.1.jar |EMIffect |emiffect |1.1.2+mc1.20.1 |COMMON_SET|Manifest: NOSIGNATURE
Steam_Rails-1.6.4+forge-mc1.20.1.jar |Create: Steam 'n' Rails |railways |1.6.4+forge-mc1.20.1|COMMON_SET|Manifest: NOSIGNATURE
DistantHorizons-2.1.0-a-1.20.1.jar |Distant Horizons |distanthorizons |2.1.0-a |COMMON_SET|Manifest: NOSIGNATURE
memoryleakfix-forge-1.17+-1.1.5.jar |Memory Leak Fix |memoryleakfix |1.1.5 |COMMON_SET|Manifest: NOSIGNATURE
interiors-0.5.3+forge-mc1.20.1.jar |Create: Interiors |interiors |0.5.3+forge-mc1.20.1|COMMON_SET|Manifest: NOSIGNATURE
forge-1.20.1-47.1.106-universal.jar |NeoForge |forge |47.1.106 |COMMON_SET|Manifest: NOSIGNATURE
appleskin-forge-mc1.20.1-2.5.1.jar |AppleSkin |appleskin |2.5.1+mc1.20.1 |COMMON_SET|Manifest: NOSIGNATURE
embeddium-0.3.20+mc1.20.1.jar |Embeddium |embeddium |0.3.20+mc1.20.1 |COMMON_SET|Manifest: NOSIGNATURE
oculus-mc1.20.1-1.7.0.jar |Oculus |oculus |1.7.0 |ERROR |Manifest: NOSIGNATURE
create_enchantment_industry-1.20.1-for-create-0.5.|Create Enchantment Industry |create_enchantment_industry |1.2.9.d |COMMON_SET|Manifest: NOSIGNATURE
Crash Report UUID: 5fda0bae-aa70-4c30-8a93-275966f07243
FML: 47.1
NeoForge: net.neoforged:47.1.106[15:55:56] [main/ERROR] [minecraft/Main]: Failed to start the minecraft server
net.minecraftforge.fml.LoadingFailedException: Loading errors encountered: [
Oculus (oculus) has failed to load correctly
§7java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screens/Screen for invalid dist DEDICATED_SERVER
]
at net.minecraftforge.fml.ModLoader.waitForTransition(ModLoader.java:246) ~[core-47.2.2.jar%23148!/:47.2] {}
at net.minecraftforge.fml.ModLoader.lambda$dispatchAndHandleError$20(ModLoader.java:210) ~[core-47.2.2.jar%23148!/:47.2] {}
at java.util.Optional.ifPresent(Unknown Source) ~[?:?] {re:mixin}
at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:210) ~[core-47.2.2.jar%23148!/:47.2] {}
at net.minecraftforge.fml.ModLoader.lambda$gatherAndInitializeMods$13(ModLoader.java:183) ~[core-47.2.2.jar%23148!/:47.2] {}
at java.lang.Iterable.forEach(Unknown Source) ~[?:?] {re:mixin}
at net.minecraftforge.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:183) ~[core-47.2.2.jar%23148!/:47.2] {}
at net.minecraftforge.server.loading.ServerModLoader.load(ServerModLoader.java:30) ~[forge-1.20.1-47.1.106-universal.jar%23152!/:?] {re:classloading}
at net.minecraft.server.Main.main(Main.java:125) ~[server-1.20.1-20230612.114412-srg.jar%23147!/:?] {re:mixin,re:classloading,pl:mixin:A}
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) ~[?:?] {}
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] {}
at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:126) ~[loader-47.2.2.jar%2351!/:47.2] {}
at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.serverService(CommonLaunchHandler.java:118) ~[loader-47.2.2.jar%2351!/:47.2] {}
at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.runService(CommonServerLaunchHandler.java:26) ~[loader-47.2.2.jar%2351!/:47.2] {}
at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:108) ~[loader-47.2.2.jar%2351!/:47.2] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar%2358!/:?] {}
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {}
Additional context
Fix should be pretty simple. Just mark the mod as client side only so that servers don't try to load it.