Create

Create

86M Downloads

Place "Train Station". Can not enter server. NullPointerException CompoundTag "nbt" is null

sekinon-maru9 opened this issue · 29 comments

commented

Describe the Bug

Excuse me for the DeepL translation.

The moment the Train Station block was place on the multi-server, the connection could not longer be maintained and an error display screen appeared.

Reproduction Steps

  1. Lay a railroad "Train Track".
  2. Place "Train Station".
  3. Displayed "Connection Lost".

Cannot be reproduced in single-play.

Expected Result

Displayed "Connection Lost".
Internal Exception: java.lang.NullPointerException: Cannot invoke "net.minecraft.nbt.CompoundTag.m_128437_(String, int)" because "nbt" is null

Screenshots and Videos

スクリーンショット 2024-01-27 155909

Crash Report or Log

no log error

Operating System

Windows 10

Mod Version

0.5.1f

Minecraft Version

1.19.2

Forge Version

43.2.8

Other Mods

Advancement Plaques [Forge] (by Grend_G)
AIOT Botania (by MelanX)
Almost Unified (by AlmostReliable)
AmbientSounds 5 (by CreativeMD)
Angel Block Renewed (by LaidBackSloth)
Another Furniture (by Starfish_Studios)
Apotheosis (by Shadows_of_Fire)
Apotheotic Additions (by Bryce792)
AppleSkin (by squeek502)
Architectury API (Fabric/Forge/NeoForge) (by shedaniel)
Armor Toughness Bar (by tfarecnim)
Armourer's Workshop (by RiskyKen)
Artifacts (by ochotonida)
AutoRegLib (by Vazkii)
Balm (Forge Edition) (by BlayTheNinth)
Better Advancements (by way2muchnoise)
Better Combat [Fabric & Forge] (by daedelus_dev)
BetterF3 (by cominixo)
BlockCarpentry (by PianoManu)
Blue Skies (by ModdingLegacy)
Bookshelf (by DarkhaxDev)
Botania (by Vazkii)
Builder's Delight (Forge) (by Tynoxs)
Building Wands (by nicguzzo)
Caelus API (Forge/NeoForge) (by TheIllusiveC4)
Carry On (by Tschipp)
Chipped (by terrariumearth)
ChoiceTheorem's Overhauled Village (by ChoiceTheorem)
Chunk-Pregenerator (by Speiger)
Citadel (by sbom_xela)
Client Tweaks (by BlayTheNinth)
Cloth Config API (Fabric/Forge/NeoForge) (by shedaniel)
Colds: Easy Paxel (Lite) (FORGE) (by Coldspell_Games)
Collective (by Serilum)
Colorful Hearts (by Terrails)
Comforts (Fabric/Forge/Quilt) (by TheIllusiveC4)
Companion 🐕 (Forge) (by Snownee)
Configured (by MrCrayfish)
ConnectedTexturesMod (by tterrag1098)
Controlling (by Jaredlll08)
Corail Woodcutter (by Corail_31)
CorgiLib (by Corgi_Taco)
Crash Utilities (by Darkere)
Create (by simibubi)
Create Blue Skies Compat (by celsiusqc)
Create Confectionery (by Furti_Two)
Create Deco (by talrey)
Create Enchantment Industry (by DragonsPlus)
Create Gourmet (by SilverGoId)
Create Mechanical Extruder (by oierbravo_mc)
Create Slice & Dice (by possible_triangle)
Create Stuff & Additions (by Furti_Two)
Create Utilities (Fabric/Forge) (by duquee___)
Create: Bells & Whistles (by sudolev)
Create: Design n' Decor (by MilkyFur)
Create: Extended Cogwheels (by Rabbitminers)
Create: Interiors (by sudolev)
Create: Power Loader (by Lysine)
Create: Steam 'n' Rails (by mattentosh)
CreativeCore (by CreativeMD)
CreeperHost Presents Chickens (by Official_CreeperHost)
Cultural Delights (by NCP_Bails)
Curios API (Forge/NeoForge) (by TheIllusiveC4)
Curious Lanterns (by Psilock1)
Decoration Delight: Refurbished (by InfernoSakai)
Decorative Blocks (by stohun)
Detected setBlock Be Gone (by CapezOnMyBack)
Diet (Fabric/Forge/Quilt) (by TheIllusiveC4)
Droplight (by BanzettaDev)
Dungeons Gear (by the_infamous_1)
Dungeons Libraries (by Patrigan)
Ecologics (by SameDifferent)
Effective (Forge) (by BottomTextDanny)
Effortless Building (by Requioss)
Elytra Slot (Fabric/Forge/Quilt) (by TheIllusiveC4)
Embeddium (by embeddedt)
Embeddium/Rubidium Dynamic Lights (by Anthxny)
Enchantment Descriptions (by DarkhaxDev)
EnderChests (by ShetiPhian)
Epic Samurai's - Forge (by VeroxUniverse)
Explorer's Compass (by Chaosyr)
Fantasy's Furniture (by ApexModder)
Farmer's Delight (by vectorwing)
Fast Leaf Decay (by olafskiii)
FastFurnace (by Shadows_of_Fire)
Fastload (by StockiesLad)
FastWorkbench (by Shadows_of_Fire)
FerriteCore (Forge) (by malte0811)
First-person Model (Forge/Fabric) (by tr7zw)
Flat Bedrock (Forge / Fabric) (by Sunekaer)
FPS Reducer (by bre2el)
FTB Backups 2 (by FTB)
FTB Chunks (Forge) (by FTB)
FTB Essentials (Forge & Fabric) (by FTB)
FTB Library (Forge) (by FTB)
FTB Teams (Forge) (by FTB)
FTB Ultimine (Forge) (by FTB)
Fusion (Connected Textures) (by SuperMartijn642)
GeckoLib (by Gecko)
GraveStone Mod (by henkelmax)
Hostile Mobs and Girls (HMaG) (by Mechalopa)
Iceberg [Forge] (by Grend_G)
Immersive Aircraft [Fabric/Forge] (by Conczin)
Integrated API (by CraisinLord)
Integrated Dungeons and Structures (by CraisinLord)
Integrated Stronghold (by CraisinLord)
Inventory Profiles Next (by mirinimi)
Iris Shaders (by coderbot)
Item Borders [Forge] (by Grend_G)
ItemPhysic Lite (by CreativeMD)
Jade Addons (Forge) (by Snownee)
Jade 🔍 (by Snownee)
JER Integration (by AlasDiablo)
JourneyMap (by techbrew)
Just Another Void Dimension (by UnRealDinnerbone)
Just Enough Items (JEI) (by mezz)
Just Enough Professions (JEP) (by Mrbysco)
Just Enough Resources (JER) (by way2muchnoise)
KleeSlabs (by BlayTheNinth)
Knaves' Needs (by KodoDenka)
Kotlin for Forge (by thedarkcolour)
Legendary Tooltips [Forge] (by Grend_G)
libIPN (by mirinimi)
Lootr (Forge & NeoForge) (by Noobanidus)
Macaw's Furniture (by sketch_macaw)
Macaw's Paintings (by sketch_macaw)
Macaw's Roofs (by sketch_macaw)
Max Health Fix (by DarkhaxDev)
MemoryLeakFix (by FX_PR0CESS)
MmmMmmMmmMmm (Target Dummy) (by MehVahdJukaar)
ModernFix (by embeddedt)
Moonlight Lib (by MehVahdJukaar)
MrCrayfish's Furniture Mod (by MrCrayfish)
Multipart Machines: Farming (by Grabolit)
Nature's Compass (by Chaosyr)
Neat (by Vazkii)
Neko's Enchanted Books (by Nekomaster1000)
NetherPortalFix (by BlayTheNinth)
Not Enough Animations (by tr7zw)
Not Enough Crashes (Forge) (by NatanFudge)
Observable (by tasgon)
Oh The Biomes You'll Go (by AOCAWOL)
Overloaded Armor Bar (by tfarecnim)
Patchouli (by Vazkii)
Placebo (by Shadows_of_Fire)
playerAnimator (by KosmX)
PolyLib (by Official_CreeperHost)
Polymorph (Fabric/Forge/Quilt) (by TheIllusiveC4)
Prism [Forge] (by Grend_G)
Psi (by Vazkii)
Puzzles Lib [Forge & Fabric] (by Fuzs)
Quark (by Vazkii)
Radiant Gear (Fabric/Forge/Quilt) (by TheIllusiveC4)
Rechiseled (by SuperMartijn642)
Rechiseled: Create (by SuperMartijn642)
Redstone Pen (by wilechaote)
Resourceful Lib (by ThatGravyBoat)
Rhino (by LatvianModder)
Saturn (by AbdElAziz333)
Scaffolding Drops Nearby (by Serilum)
Selectable Painting (by GeheimagentNr1)
ShetiPhianCore (by ShetiPhian)
Shulker Box Tooltip [Fabric/Forge] (by MisterPeModder)
Shutup Experimental Settings! (by Corgi_Taco)
Simple Storage Network (by Lothrazar)
Simply Swords [Fabric & Forge] (by sweenuss)
Skin Layers 3D (Fabric/Forge) (by tr7zw)
Smooth Boot (Reloaded) (by AbdElAziz333)
Sophisticated Backpacks (by P3pp3rF1y)
Sophisticated Core (by P3pp3rF1y)
Sophisticated Storage (by P3pp3rF1y)
Soul Bound Enchantment (by imoonday1008)
Sound Physics Remastered (by henkelmax)
spark (by Iucko)
Spice of Life: Apple Pie Edition (by Anthxny)
Spice of Life: Carrot Edition (by lordcazsius)
Spyglass Improvements: Zoom, Quick Access... [Fabric/Forge] (by Im_JC52)
Structure Gel API (by ModdingLegacy)
Stylish Effects (by Fuzs)
SuperMartijn642's Config Lib (by SuperMartijn642)
SuperMartijn642's Core Lib (by SuperMartijn642)
Supplementaries (by MehVahdJukaar)
Supplementaries Squared (by plantspookable)
TerraBlender (Forge) (by TheAdubbz)
TexTrue's Embeddium Options (by TexTrue)
The Twilight Forest (by Benimatic)
Time in a bottle standalone (by haoict)
TofuCraftReload (by sz0999312)
Torchmaster (by xalcon)
Trade Cycling (by henkelmax)
Trading Post [Forge & Fabric] (by Fuzs)
Traveler's Titles (Forge) (by YUNGNICKYOUNG)
Twilight's Flavors & Delight (by lcy0x1)
Untranslated Items (by bre2el)
Useful Slime (by MincraftEinstein)
Waterlogged Redstone (by The_Millman)
William Wythers' Expanded Ecosphere (by Cristelknight)
YUNG's API (Forge) (by YUNGNICKYOUNG)
YUNG's Better Dungeons (Forge) (by YUNGNICKYOUNG)
YUNG's Better Jungle Temples (Forge) (by YUNGNICKYOUNG)
YUNG's Better Mineshafts (Forge) (by YUNGNICKYOUNG)

Additional Context

No response

commented

A fix has been released for Create: Power Loader which should address this issue. Please update Power Loader to v1.5.0 or above.

commented

I've got the same issue on MC 1.19.2 with Forge 43.3.8 so I have no idea if it would be a Forge issue.

commented

Ran into this error also. The crash is local as it's not triggered by the server. I see prior mentions of Steam 'n' Rails being a potential culprit although I'm not 100% convinced. Steam 'n' Rails is at v1.5.3-forge-mc1.20.1. Create mod is at v1.20.1-0.5.1.f.

Server log simply shows this:

[08:50:58 INFO]: AylaCullen joined the game
[08:50:58 INFO]: Syncing config to AylaCullen
[08:50:58 INFO]: AylaCullen logged in with entity id ***** at ([world]-447.74142734228184, -53.0, -533.7710757430485)
[08:50:59 INFO]: AylaCullen lost connection: Disconnected
[08:50:59 INFO]: AylaCullen left the game
[08:51:00 WARN]: handleDisconnection() called twice
[08:51:07 INFO]: AylaCullen joined the game
[08:51:07 INFO]: Syncing config to AylaCullen
[08:51:07 INFO]: AylaCullen logged in with entity id ******* at ([world]-447.74142734228184, -53.0, -533.7710757430485)
[08:51:07 INFO]: AylaCullen lost connection: Disconnected
[08:51:07 INFO]: AylaCullen left the game
[08:51:52 INFO]: AylaCullen joined the game
[08:51:52 INFO]: Syncing config to AylaCullen
[08:51:52 INFO]: AylaCullen logged in with entity id ******* at ([world]-447.74142734228184, -53.0, -533.7710757430485)
[08:51:52 INFO]: AylaCullen lost connection: Disconnected
[08:51:52 INFO]: AylaCullen left the game

Client side log shows this:

[12Mar2024 08:51:53.457] [Render thread/INFO] [mixin/]: Renaming synthetic method lambda$init$0(Lnet/minecraft/client/gui/components/AbstractWidget;)V to md925467$lambda$init$0$0 in mixins/common/nochatreports.mixins.json:client.MixinChatOptionsScreen
[12Mar2024 08:54:46.518] [Render thread/ERROR] [net.minecraft.client.Minecraft/FATAL]: Reported exception thrown!
net.minecraft.ReportedException: Ticking screen
	at net.minecraft.client.gui.screens.Screen.m_96579_(Screen.java:444) ~[client-1.20.1-20230612.114412-srg.jar%23182!/:?]
	at net.minecraft.client.Minecraft.m_91398_(Minecraft.java:1784) ~[client-1.20.1-20230612.114412-srg.jar%23182!/:?]
	at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1112) ~[client-1.20.1-20230612.114412-srg.jar%23182!/:?]
	at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:718) ~[client-1.20.1-20230612.114412-srg.jar%23182!/:?]
	at net.minecraft.client.main.Main.main(Main.java:218) ~[1.20.1-1.20.1-47.1.100.jar:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.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:47.2]
	at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:114) ~[loader-47.2.2.jar:47.2]
	at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.runService(CommonClientLaunchHandler.java:24) ~[loader-47.2.2.jar:47.2]
	at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:108) ~[loader-47.2.2.jar:47.2]
	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?]
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?]
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?]
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?]
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?]
	at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?]
	at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?]
	at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?]
Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.network.PacketListener.m_7026_(net.minecraft.network.chat.Component)" because the return value of "net.minecraft.network.Connection.m_129538_()" is null
	at net.minecraft.network.Connection.m_129541_(Connection.java:432) ~[client-1.20.1-20230612.114412-srg.jar%23182!/:?]
	at net.minecraft.client.multiplayer.ServerStatusPinger.m_105453_(ServerStatusPinger.java:247) ~[client-1.20.1-20230612.114412-srg.jar%23182!/:?]
	at net.minecraft.client.gui.screens.multiplayer.JoinMultiplayerScreen.m_86600_(JoinMultiplayerScreen.java:144) ~[client-1.20.1-20230612.114412-srg.jar%23182!/:?]
	at net.minecraft.client.Minecraft.lambda$tick$42(Minecraft.java:1785) ~[client-1.20.1-20230612.114412-srg.jar%23182!/:?]
	at net.minecraft.client.gui.screens.Screen.m_96579_(Screen.java:437) ~[client-1.20.1-20230612.114412-srg.jar%23182!/:?]
	... 20 more
[12Mar2024 08:54:46.523] [Render thread/FATAL] [net.minecraftforge.common.ForgeMod/]: Preparing crash report with UUID 342b41b5-3184-465b-a981-53140425e936
[12Mar2024 08:54:46.526] [Render thread/FATAL] [net.minecraftforge.common.ForgeMod/]: Preparing crash report with UUID 96c5725b-5ce6-41ce-852e-7ccf7459c3fe

Looks the crash is from the chat component based on the client log. So I went looking into my mods and identified the most likely cause: No Chat Reports mod. I disabled that mod and then reloaded Minecraft and was able to successfully connect to the server with no trouble.

commented

A friend of mine has recently come across this bug after we updated some mods in our server, when Steam 'n' Rails previously ran without problems pior to this. Strange to see that this is still an issue months later!

commented

To add on to this I also have this problem on my server but oddly it only kicks certain players not all, I don't get kicked but everyone one else does, after a restart only one player gets kicked, nothing changed on either client.

Edit: Deleting Power loaders fixed it, the mention above my post, mentioned some conflict.

commented

Once again, without a log we nor steam n rails can do anything.

As I said, I have looked into all the logs but there is not even a slight information given, both on server and client logs.
You can also check the issue mentioned above your message as it contains valid logs.

But because of that, we will not find the issue. It could also be related to Forge, since my downgrade to 47.2.0 does work with the same mods. So it could be anything.

commented

Once again, without a log we nor steam n rails can do anything.

commented

For all those having this happen to them please try disabling create power loader and starting a new world and trying to reproduce this. (Do not load your normal world while power loader is disabled)

commented

I'm unsure if this implementation was meant to fix this issue but either way you forgot to add it to the 1.20 version of Steams n Rails. We had a player have this error again after updating to the mod's latest version (1.6.1), thankfully deleting power loaders fixed it.

commented

I'm unsure if this implementation was meant to fix this issue but either way you forgot to add it to the 1.20 version of Steams n Rails. We had a player have this error again after updating to the mod's latest version (1.6.1), thankfully deleting power loaders fixed it.

that change is unrelated to this

commented

closing as it's not a create issue

commented

I also disabled Steam and Rails and the error not occur.
There may be a way to fix this without disabling Steam and Rails, as it seems to be a complex combination of factors.

commented

It's likely not steam n rails, we don't touch tags stuff but I can't help more without a proper log, the last one shared here doesn't show any NPE's

commented

Thats the problem, it only applies to servers and its a disconnect with the error message, nothing is logged. It is really frustrating. I would love to just attach my IntelliJ to it, to check it but its a long time since i have done any java and not yet debugged an external Application. Any recommendations ?

Try reading https://www.jetbrains.com/help/idea/attach-to-process.html I haven't needed to attach a debugger to a external process yet so I sadly cannot be of much help with that

commented

But without source code i guess it could be a little hard. But what i can try again is running minecraft with logging set to debug via extra configuration, last time it hang when connecting to server and it took literally 10-15m to only open minecraft :D

commented

But without source code i guess it could be a little hard. But what i can try again is running minecraft with logging set to debug via extra configuration, last time it hang when connecting to server and it took literally 10-15m to only open minecraft :D

Can always try binary searching, start off with create + steam n rails and slowly add other mods in batches until you find the ones causing issues

commented

Well that is the problem, for example i added Diagonal Fences and i got disconnected, removing it causes to work. But would i instead remove other mods, it does work again. So it is a very weird case and to be honest, why the heck doesnt this internal exception doesnt get logged within minecraft xD

commented

Thats the problem, it only applies to servers and its a disconnect with the error message, nothing is logged. It is really frustrating.
I would love to just attach my IntelliJ to it, to check it but its a long time since i have done any java and not yet debugged an external Application. Any recommendations ?

commented

Hm downgrading to Forge 47.2.0 instad of using 47.2.19 seems to also fix the issue.
Could it be related to forge being forge ?

commented

No crash report was generated. There are no likely causes in the logs. The only clue is the image in the screenshot.

commented

we need the crash report

commented

I dont know, for example, i have x mods and add "Better Tags" it happens, but when i remove some other mods and let "Better Tags" stay it does work again, so i can't say what mod causes this issue.
I already tried for 5h today and i got no clue because nothing is logged sadly.

I added Connectivity now since it does have more logging about data being sent etc and it fixes some networking stuff so i hope i can resolve this a bit or at least see what might causes it.

commented

I do encounter the exact same issue running the same Create version but on 1.20.1 with Forge 47.2.19.
It does not get written within the Server logs (both latest and debug) and not within the client logs sadly.

Im frustrated, it's kind of random after a mod gets added to the pack for example, once the mod is removed it does work. But removing other mods and then adding the same Mod that might have caused it, it is funcitoning again so it can't be this mod.

commented

I do encounter the exact same issue running the same Create version but on 1.20.1 with Forge 47.2.19. It does not get written within the Server logs (both latest and debug) and not within the client logs sadly.

Im frustrated, it's kind of random after a mod gets added to the pack for example, once the mod is removed it does work. But removing other mods and then adding the same Mod that might have caused it, it is funcitoning again so it can't be this mod.

What mod is causing the bug?
Which mods are in conflict?
I have too many mods in my mod environment to check, so I need a reference.

commented

Please send latest.log

commented

I don't have any logs anymore, but there wasn't any hint regarding this error, neither in the server latest/debug.log nor in the client latest.log. I double checked them.
The only real clue is the picture given at the start of this ticket sadly which is kind of annoying.
I will try somehow forcing that error again but this could take a while since i have no clue what its causing.

commented

latest.log
That didn't take long :D

commented

Lads,
I think Ive figured it out, on my modpack I get the same crash, when I upgraded to the newest neoforge version and disabled steam and rails it worked for me :)

47.1.88 Also Works

commented

That might be it but i think independent from the Modloader.