gnembon / fabric-carpet

Fabric Carpet
MIT License
1.71k stars 271 forks source link

When trying to spawn fake players the game crashes. #1952

Open OmARRR-LANG opened 2 months ago

OmARRR-LANG commented 2 months ago

For some reason the game just crashes after I try to spawn a player. Like it crashes immediately. I run at 1.21 and here is the crash log:

Picked up _JAVA_OPTIONS: [08:34:13] [main/INFO]: Loading Minecraft 1.21 with Fabric Loader 0.15.11 [08:34:14] [main/INFO]: Loading 5 mods:

Time: 2024-07-17 08:35:49 Description: Exception in server tick loop

java.lang.NoSuchMethodError: 'void com.mojang.authlib.GameProfileRepository.findProfilesByNames(java.lang.String[], com.mojang.authlib.ProfileLookupCallback)' at net.minecraft.class_3312.method_14509(class_3312.java:95) at net.minecraft.class_3312.method_14515(class_3312.java:150) at carpet.commands.PlayerCommand.cantSpawn(PlayerCommand.java:198) at carpet.commands.PlayerCommand.spawn(PlayerCommand.java:250) at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) at net.minecraft.class_8865.method_54416(class_8865.java:29) at net.minecraft.class_8865.execute(class_8865.java:13) at net.minecraft.class_8856.method_54405(class_8856.java:8) at net.minecraft.class_8847.method_54388(class_8847.java:8) at net.minecraft.class_8854.method_54390(class_8854.java:107) at net.minecraft.class_2170.method_54313(class_2170.java:379) at net.minecraft.class_2170.method_9249(class_2170.java:309) at net.minecraft.class_3244.method_58590(class_3244.java:1319) at net.minecraft.class_3244.method_44356(class_3244.java:1307) at net.minecraft.class_3738.run(class_3738.java:18) at net.minecraft.class_1255.method_18859(class_1255.java:162) at net.minecraft.class_4093.method_18859(class_4093.java:23) at net.minecraft.server.MinecraftServer.method_24306(MinecraftServer.java:864) at net.minecraft.server.MinecraftServer.method_18859(MinecraftServer.java:173) at net.minecraft.class_1255.method_16075(class_1255.java:136) at net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:846) at net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:840) at net.minecraft.class_1255.method_5383(class_1255.java:121) at net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:814) at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:702) at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:281) at java.base/java.lang.Thread.run(Thread.java:1583)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- System Details -- Details: Minecraft Version: 1.21 Minecraft Version ID: 1.21 Operating System: Windows 11 (amd64) version 10.0 Java Version: 21.0.3, Microsoft Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft Memory: 7585398784 bytes (7234 MiB) / 10427039744 bytes (9944 MiB) up to 13958643712 bytes (13312 MiB) CPUs: 12 Processor Vendor: AuthenticAMD Processor Name: AMD Ryzen 5 2600X Six-Core Processor
Identifier: AuthenticAMD Family 23 Model 8 Stepping 2 Microarchitecture: Zen+ Frequency (GHz): 3.59 Number of physical packages: 1 Number of physical CPUs: 6 Number of logical CPUs: 12 Graphics card #0 name: NVIDIA GeForce GTX 1660 Ti Graphics card #0 vendor: NVIDIA Graphics card #0 VRAM (MiB): 6144.00 Graphics card #0 deviceId: VideoController1 Graphics card #0 versionInfo: 32.0.15.5599 Memory slot #0 capacity (MiB): 8192.00 Memory slot #0 clockSpeed (GHz): 3.00 Memory slot #0 type: DDR4 Memory slot #1 capacity (MiB): 8192.00 Memory slot #1 clockSpeed (GHz): 3.00 Memory slot #1 type: DDR4 Virtual memory max (MiB): 28081.88 Virtual memory used (MiB): 19758.64 Swap memory total (MiB): 11776.00 Swap memory used (MiB): 401.42 Space in storage for jna.tmpdir (MiB): available: 778418.00, total: 976654.00 Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): available: 778418.00, total: 976654.00 Space in storage for io.netty.native.workdir (MiB): available: 778418.00, total: 976654.00 Space in storage for java.io.tmpdir (MiB): available: 778418.00, total: 976654.00 Space in storage for workdir (MiB): available: 778418.00, total: 976654.00 JVM Flags: 12 total; -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:-ZUncommit -XX:ZCollectionInterval=5 -XX:ZAllocationSpikeTolerance=2.0 -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -XX:+DisableExplicitGC -Xms5105M -Xmx13312M -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss2M Server Running: true Player Count: 1 / 8; [class_3222['OmarCrab'/17, l='ServerLevel[ITS ME]', x=-24.23, y=68.00, z=21.45]] Active Data Packs: vanilla Available Data Packs: bundle, trade_rebalance, vanilla Enabled Feature Flags: minecraft:vanilla World Generation: Stable World Seed: 0 Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fabric'; Server brand changed to 'fabric' Launched Version: Fabric 1.21 [08:35:49] [Server thread/INFO]: Stopping server [08:35:49] [Server thread/INFO]: Saving players

@!@# Game crashed! Crash report saved to: #@!@# C:\Users\OmarM\AppData\Roaming.tlauncher\legacy\Minecraft\game\home\Fabric 1.21\crash-reports\crash-2024-07-17_08.35.49-server.txt

also I suspect it may be from the client.

abwmocc commented 1 month ago

I'm having the same issue as you,my server version is 1.20.4.When I try to spawn a new fake player,there is a chance that the server will crash.The error message on the server is that it takes too long to execute 1tick like yours.This question has been bothering me and I don't know how to settle.I installed the carpet extend "carpet-tis-addition" to make the fake player have the bot_ prefix.I also installed "gugle-carpet-addition" to open fake players' inventory.Are you in the same situation as me?Have you solved this problem?Thanks.