Closed cecnull1 closed 5 months ago
我来帮你翻译一下
Let me translate: "In some extreme cases, this can lead to a NullPointerException error. When a specific nbt player's data is modified using IBE Editer (a module for NBT modifiers), a NullPointerException is thrown and the game crashes when the value of a key (prefixed with Latex) is the empty string. Is it considered to be exception handling?
Here's a series of logs:"
在某些极端情况下,可能会导致
NullPointerException
错误。 当使用IBE Editer(一个NBT修改器的模组)修改了特定的nbt玩家数据时,当某个键(前缀是Latex
的)的值为空字符串时,便会抛出NullPointerException
而游戏崩溃。 是否考虑要进行异常处理呢?这是一系列日志:
---- Minecraft Crash Report ---- // Don't be sad, have a hug! <3 Time: 2024/6/15 20:45 Description: Ticking player java.lang.NullPointerException: Cannot invoke "net.ltxprogrammer.changed.entity.variant.LatexVariant.getFormId()" because "progress.variant" is null at net.ltxprogrammer.changed.process.ProcessTransfur.tickPlayerTransfurProgress(ProcessTransfur.java:237) ~[Changed-m1.18.2-v0.13.1.jar%2364!/:v0.13.1] {re:mixin,re:classloading} at net.minecraft.world.entity.player.Player.handler$zme000$tickPre(Player.java:2722) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:firstperson.mixins.json:PlayerMixin,pl:mixin:APP:changed.mixins.json:entity.PlayerMixin,pl:mixin:A} at net.minecraft.world.entity.player.Player.m_8119_(Player.java) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:firstperson.mixins.json:PlayerMixin,pl:mixin:APP:changed.mixins.json:entity.PlayerMixin,pl:mixin:A} at net.minecraft.server.level.ServerPlayer.m_9240_(ServerPlayer.java:439) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:changed.mixins.json:entity.ServerPlayerMixin,pl:mixin:A} at net.minecraft.server.network.ServerGamePacketListenerImpl.m_9933_(ServerGamePacketListenerImpl.java:207) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-forge.mixins.json:bugfix.forge_vehicle_packets.ServerGamePacketListenerImplMixin,pl:mixin:A} at net.minecraft.network.Connection.m_129483_(Connection.java:245) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:classloading,re:mixin} at net.minecraft.server.network.ServerConnectionListener.m_9721_(ServerConnectionListener.java:143) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:classloading} at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:916) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:842) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:84) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:modernfix-common.mixins.json:perf.thread_priorities.IntegratedServerMixin,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:685) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:261) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at java.lang.Thread.run(Thread.java:1583) [?:?] {re:mixin} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Server thread Suspected Mod: Changed: Minecraft Mod (changed), Version: 0.13.1 Issue tracker URL: https://github.com/LtxProgrammer/Changed-Minecraft-Mod/issues at TRANSFORMER/changed@0.13.1/net.ltxprogrammer.changed.process.ProcessTransfur.tickPlayerTransfurProgress(ProcessTransfur.java:237) Stacktrace: at net.ltxprogrammer.changed.process.ProcessTransfur.tickPlayerTransfurProgress(ProcessTransfur.java:237) ~[Changed-m1.18.2-v0.13.1.jar%2364!/:v0.13.1] {re:mixin,re:classloading} at net.minecraft.world.entity.player.Player.handler$zme000$tickPre(Player.java:2722) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:firstperson.mixins.json:PlayerMixin,pl:mixin:APP:changed.mixins.json:entity.PlayerMixin,pl:mixin:A} at net.minecraft.world.entity.player.Player.m_8119_(Player.java) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:firstperson.mixins.json:PlayerMixin,pl:mixin:APP:changed.mixins.json:entity.PlayerMixin,pl:mixin:A} -- Player being ticked -- Details: Entity Type: minecraft:player (net.minecraft.server.level.ServerPlayer) Entity ID: 310 Entity Name: cecnull1 Entity's Exact location: 9.86, -60.00, 8.48 Entity's Block location: World: (9,-60,8), Section: (at 9,4,8 in 0,-4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511) Entity's Momentum: 0.00, -0.09, 0.00 Entity's Passengers: [] Entity's Vehicle: null Stacktrace: at net.minecraft.server.level.ServerPlayer.m_9240_(ServerPlayer.java:439) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:changed.mixins.json:entity.ServerPlayerMixin,pl:mixin:A} at net.minecraft.server.network.ServerGamePacketListenerImpl.m_9933_(ServerGamePacketListenerImpl.java:207) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-forge.mixins.json:bugfix.forge_vehicle_packets.ServerGamePacketListenerImplMixin,pl:mixin:A} at net.minecraft.network.Connection.m_129483_(Connection.java:245) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:classloading,re:mixin} at net.minecraft.server.network.ServerConnectionListener.m_9721_(ServerConnectionListener.java:143) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:classloading} at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:916) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:842) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:84) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:modernfix-common.mixins.json:perf.thread_priorities.IntegratedServerMixin,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:685) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:261) ~[client-1.18.2-20220404.173914-srg.jar%2374!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A} at java.lang.Thread.run(Thread.java:1583) [?:?] {re:mixin} -- System Details -- Details: Minecraft Version: 1.18.2 Minecraft Version ID: 1.18.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 21.0.1, Eclipse Adoptium Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Eclipse Adoptium Memory: 1477111376 bytes (1408 MiB) / 3175088128 bytes (3028 MiB) up to 5368709120 bytes (5120 MiB) CPUs: 4 Processor Vendor: GenuineIntel Processor Name: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz Identifier: Intel64 Family 6 Model 69 Stepping 1 Microarchitecture: Haswell (Client) Frequency (GHz): 2.59 Number of physical packages: 1 Number of physical CPUs: 2 Number of logical CPUs: 4 Graphics card #0 name: Intel(R) HD Graphics Family Graphics card #0 vendor: Intel Corporation (0x8086) Graphics card #0 VRAM (MB): 1024.00 Graphics card #0 deviceId: 0x0a16 Graphics card #0 versionInfo: DriverVersion=20.19.15.5171 Memory slot #0 capacity (MB): 8192.00 Memory slot #0 clockSpeed (GHz): 1.60 Memory slot #0 type: DDR3 Memory slot #1 capacity (MB): 8192.00 Memory slot #1 clockSpeed (GHz): 1.60 Memory slot #1 type: DDR3 Virtual memory max (MB): 19904.19 Virtual memory used (MB): 8590.20 Swap memory total (MB): 3595.00 Swap memory used (MB): 1009.55 JVM Flags: 6 total; -XX:+UseG1GC -XX:-UseAdaptiveSizePolicy -XX:-OmitStackTraceInFastThrow -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmn768m -Xmx5120m Server Running: true Player Count: 1 / 8; [ServerPlayer['cecnull1'/310, l='ServerLevel[新的世界]', x=9.86, y=-60.00, z=8.48]] Data Packs: mod:changed_addon, vanilla, mod:mixinextras (incompatible), mod:n_transfur_cg, mod:lazydfu (incompatible), mod:mcalecs_changed, mod:ferritecore (incompatible), mod:jei (incompatible), mod:firstperson (incompatible), mod:forge, mod:embeddium (incompatible), mod:embeddiumplus, mod:modernfix (incompatible), mod:cyclic, mod:changed_ice, mod:changed, mod:easylan, mod:mobbattle, mod:twilightforest (incompatible), mod:inventorypets (incompatible), mod:curios (incompatible), mod:nbt_ac, mod:ibeeditor (incompatible) World Generation: Experimental Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'forge'; Server brand changed to 'forge' ModLauncher: 9.1.3+9.1.3+main.9b69c82a ModLauncher launch target: forgeclient ModLauncher naming: srg ModLauncher services: mixin PLUGINSERVICE eventbus PLUGINSERVICE slf4jfixer PLUGINSERVICE object_holder_definalize PLUGINSERVICE runtime_enum_extender PLUGINSERVICE capability_token_subclass PLUGINSERVICE accesstransformer PLUGINSERVICE runtimedistcleaner PLUGINSERVICE mixin TRANSFORMATIONSERVICE fml TRANSFORMATIONSERVICE FML Language Providers: minecraft@1.0 lowcodefml@null javafml@null Mod List: client-1.18.2-20220404.173914-srg.jar |Minecraft |minecraft |1.18.2 |DONE |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f mixinextras-forge-0.3.5.jar |MixinExtras |mixinextras |0.3.5 |DONE |Manifest: NOSIGNATURE ChangedAddonPlus-v2.5.7.jar |Changed Addon Plus |changed_addon |2.5.7 |DONE |Manifest: NOSIGNATURE [怪物大乱斗] mobbattle-1.18.2-2.4.9-forge.jar |Mob Battle Mod |mobbattle |1.18.2-2.4.9 |DONE |Manifest: NOSIGNATURE sbsbbsbs.jar |N Transfur CG |n_transfur_cg |1.0.0 |DONE |Manifest: NOSIGNATURE [DFU载入优化] lazydfu-1.0-1.18+.jar |LazyDFU |lazydfu |0.1.3 |DONE |Manifest: NOSIGNATURE mcalecs_changed_addon-0.2b.jar |McAlec's Changed Addon |mcalecs_changed |0.2 |DONE |Manifest: NOSIGNATURE [铁氧体磁芯] ferritecore-4.2.2-forge.jar |Ferrite Core |ferritecore |4.2.2 |DONE |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 [JEI物品管理器] jei-1.18.2-forge-10.2.1.1006.jar |Just Enough Items |jei |10.2.1.1006 |DONE |Manifest: NOSIGNATURE [背包宠物] inventorypets-1.18.2-2.1.2.jar |Inventory Pets |inventorypets |2.1.2 |DONE |Manifest: NOSIGNATURE [更真实的第一人称模型] firstperson-forge-2.3.4-mc1.18.2.jar |FirstPerson |firstperson |2.3.4 |DONE |Manifest: NOSIGNATURE NBTac-FORGE-1.18.2-1.2.1.jar |NBT Autocomplete |nbt_ac |1.2.1 |DONE |Manifest: NOSIGNATURE forge-1.18.2-40.2.21-universal.jar |Forge |forge |40.2.21 |DONE |Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90 curios-forge-1.18.2-5.0.9.2.jar |Curios API |curios |1.18.2-5.0.9.2 |DONE |Manifest: NOSIGNATURE [暮色森林] twilightforest-1.18.2-4.1.1494-universal.ja|The Twilight Forest |twilightforest |4.1.1494 |DONE |Manifest: NOSIGNATURE embeddium-0.3.18+mc1.18.2.jar |Embeddium |embeddium |0.3.18+mc1.18.2 |DONE |Manifest: NOSIGNATURE embeddiumplus-1.18.2-v1.2.13.jar |Embeddium++ |embeddiumplus |1.2.13 |DONE |Manifest: NOSIGNATURE [现代化修复] modernfix-forge-5.17.0+mc1.18.2.jar |ModernFix |modernfix |5.17.0+mc1.18.2 |DONE |Manifest: NOSIGNATURE [循环] Cyclic-1.18.2-1.7.19.jar |Cyclic |cyclic |1.18.2-1.7.19 |DONE |Manifest: 1f:47:ac:b1:61:82:96:b8:47:19:16:d2:61:81:11:60:3a:06:4b:61:31:56:7d:44:31:1e:0c:6f:22:5b:4c:ed IBEEditor-1.18.2-2.2.0-forge.jar |IBE Editor |ibeeditor |2.2.0 |DONE |Manifest: NOSIGNATURE changedIce_1.18.2_v0.2.jar |Changed Ice |changed_ice |0.2 |DONE |Manifest: NOSIGNATURE Changed-m1.18.2-v0.13.1.jar |Changed: Minecraft Mod |changed |0.13.1 |DONE |Manifest: NOSIGNATURE [自定义LAN局域网联机服务器] EasyLAN-v1.2-[1.18.2].jar |EasyLAN |easylan |1.2 |DONE |Manifest: NOSIGNATURE Crash Report UUID: 767ed6b2-e49f-4f50-becf-23db513a2285 FML: 40.2 Forge: net.minecraftforge:40.2.21
(这是我第一次发的 issue )
在github提问题的时候最好是英语......
我不会英文很正常。
粗略的修改了一下,没问题了。
The registry resolved the saved ID as null, despite the registry having a fallback configured. Anyways, transfur progression was reworked in 0.14 to not include the TF variant. So this error wouldn't occur in the dev build.
但我是0.13.1版本,确实存在这个BUG。你提到0.14版本不会出这个问题,那我从哪下载呢? But I am version 0.13.1, and there is indeed this bug. You mentioned that version 0.14 won't have this problem, so where do I download it from?
但我是0.13.1版本,确实存在这个BUG。你提到0.14版本不会出这个问题,那我从哪下载呢?
But I am version 0.13.1, and there is indeed this bug. You mentioned that version 0.14 won't have this problem, so where do I download it from?
去我QQ群里领0.14: 749429350
Chinese 中文: 在某些极端情况下,可能会导致
NullPointerException
错误。 当使用IBE Editer(一个NBT修改器的模组)修改了特定的nbt玩家数据时,当某个键(前缀是Latex
的)的值为空字符串时,便会抛出NullPointerException
而游戏崩溃。 是否考虑要进行异常处理呢?English 英文: Let me translate: "In some extreme cases, this can lead to a NullPointerException error. When a specific nbt player's data is modified using IBE Editer (a module for NBT modifiers), a NullPointerException is thrown and the game crashes when the value of a key (prefixed with Latex) is the empty string. Is it considered to be exception handling?
log 日志 :
(这是我第一次发的 issue )