Résolu Crash NPE Code Source Minecraft
-
Voici le fameux crash
Cela arrive lorsqu’on tripote les accessoires de Flan’s Mod
–-- Minecraft Crash Report ----
// I’m sorry, Dave.Time: 19/12/15 10:00
Description: Ticking entityjava.lang.NullPointerException: Ticking entity
at net.minecraft.nbt.NBTTagCompound.func_74737_b(NBTTagCompound.java:345)
at net.minecraft.item.ItemStack.func_77946_l(ItemStack.java:396)
at net.minecraft.inventory.Container.func_75142_b(Container.java:141)
at net.minecraft.entity.player.EntityPlayerMP.func_70071_h_(EntityPlayerMP.java:311)
at net.minecraft.world.World.func_72866_a(World.java:2629)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:837)
at net.minecraft.world.World.func_72870_g(World.java:2581)
at net.minecraft.world.World.func_72939_s(World.java:2405)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:669)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:954)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:431)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:809)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:669)
at java.lang.Thread.run(Thread.java:745)A detailed walkthrough of the error, its code path and all known details is as follows:
– Head –
Stacktrace:
at net.minecraft.nbt.NBTTagCompound.func_74737_b(NBTTagCompound.java:345)
at net.minecraft.item.ItemStack.func_77946_l(ItemStack.java:396)
at net.minecraft.inventory.Container.func_75142_b(Container.java:141)
at net.minecraft.entity.player.EntityPlayerMP.func_70071_h_(EntityPlayerMP.java:311)
at net.minecraft.world.World.func_72866_a(World.java:2629)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:837)
at net.minecraft.world.World.func_72870_g(World.java:2581)– Entity being ticked –
Details:
Entity Type: null (net.minecraft.entity.player.EntityPlayerMP)
Entity ID: 185765
Entity Name: cosmos
Entity’s Exact location: -4364,12, 29,00, -3212,02
Entity’s Block location: World: (-4365,29,-3213), Chunk: (at 3,1,3 in -273,-201; contains blocks -4368,0,-3216 to -4353,255,-3201), Region: (-9,-7; contains chunks -288,-224 to -257,-193, blocks -4608,0,-3584 to -4097,255,-3073)
Entity’s Momentum: 0,00, -0,08, 0,00
Stacktrace:
at net.minecraft.world.World.func_72939_s(World.java:2405)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:669)– Affected level –
Details:
Level name: AltisCraft
All players: 15 total; [EntityPlayerMP[‘ArtemGaming’/174595, l=‘AltisCraft’, x=-8457,59, y=39,00, z=-3680,78](ArtemGaming at -8457.590498409854,39.0,-3680.7809953168035), EntityPlayerMP[‘neotromm’/177393, l=‘AltisCraft’, x=-8643,63, y=21,00, z=-3165,51](neotromm at -8643.631129416166,21.0,-3165.511354239658), EntityPlayerMP[‘DrtsA’/179836, l=‘AltisCraft’, x=-8334,03, y=64,00, z=-3985,48](DrtsA at -8334.030383298013,64.0,-3985.4772752699773), EntityPlayerMP[‘Mrdadadou’/182108, l=‘AltisCraft’, x=-8585,87, y=18,00, z=-3514,11](Mrdadadou at -8585.865447011562,18.0,-3514.109863996487), EntityPlayerMP[‘delicious76’/184085, l=‘AltisCraft’, x=-8715,37, y=16,00, z=-3044,69](delicious76 at -8715.36776924101,16.0,-3044.69163014488), EntityPlayerMP[‘YoLoSwAg83’/185246, l=‘AltisCraft’, x=-8407,75, y=33,00, z=-3703,49](YoLoSwAg83 at -8407.751600591057,33.0,-3703.494308215033), EntityPlayerMP[‘cosmos’/185765, l=‘AltisCraft’, x=-4364,12, y=29,00, z=-3212,02](cosmos at -4364.118044377483,29.0,-3212.0159585761326), EntityPlayerMP[‘irise3’/187141, l=‘AltisCraft’, x=-2449,30, y=92,00, z=-7925,14](irise3 at -2449.300000011921,92.0,-7925.137499988079), EntityPlayerMP[‘ItsTriTiX’/187225, l=‘AltisCraft’, x=-8505,66, y=33,00, z=-3743,49](ItsTriTiX at -8505.660983924168,33.0,-3743.489989582368), EntityPlayerMP[‘jas14’/187282, l=‘AltisCraft’, x=-7676,85, y=169,00, z=-2561,23](jas14 at -7676.854420717736,169.0,-2561.2256648434645), EntityPlayerMP[‘Darkmachine67’/187695, l=‘AltisCraft’, x=-3445,69, y=7,00, z=-2856,71](Darkmachine67 at -3445.6856358194505,7.0,-2856.7077253292196), EntityPlayerMP[‘Spiiry24’/187776, l=‘AltisCraft’, x=-8392,30, y=47,00, z=-3935,70](Spiiry24 at -8392.300000011921,47.0,-3935.699999988079), EntityPlayerMP[‘Elfevirus’/187867, l=‘AltisCraft’, x=-7610,94, y=95,00, z=-4804,09](Elfevirus at -7610.944359060889,95.0,-4804.089914580513), EntityPlayerMP[‘max56650’/190372, l=‘AltisCraft’, x=-1579,55, y=61,00, z=-8439,32](max56650 at -1579.5492126030274,61.0,-8439.323016481543), EntityPlayerMP[‘Yanis’/190552, l=‘AltisCraft’, x=1,33, y=100,25, z=0,98](Yanis at 1.3330913216605196,100.24918707874468,0.9846964076767741)]
Chunk stats: ServerChunkCache: 5078 Drop: 0
Level seed: 27594263
Level generator: ID 02 - largeBiomes, ver 0. Features enabled: false
Level generator options:
Level spawn location: World: (0,99,0), Chunk: (at 0,6,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 367024456 game time, 379852395 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 61994 (now: false), thunder time: 143917 (now: false)
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:954)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:431)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:809)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:669)
at java.lang.Thread.run(Thread.java:745)– System Details –
Details:
Minecraft Version: 1.7.10
KCauldron Version: pw.prok:KCauldron:1.7.10-1492.155
Operating System: Linux (amd64) version 3.14.32-xxxx-std-ipv6-64-hz1000
Java Version: 1.8.0_60, Oracle Corporation
Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 904102600 bytes (862 MB) / 1491542016 bytes (1422 MB) up to 6227755008 bytes (5939 MB)
JVM Flags: 20 total; -Xincgc -XX:+UseParNewGC -XX:MaxPermSize=256M -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1 -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -Xnoclassgc -Xoss4M -Xss4M -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=90 -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=4 -XX:+AggressiveOpts -Xmx6144M -Xms512M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 103
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1492 12 mods loaded, 12 mods active
States: ‘U’ = Unloaded ‘L’ = Loaded ‘C’ = Constructed ‘H’ = Pre-initialized ‘I’ = Initialized ‘J’ = Post-initialized ‘A’ = Available ‘D’ = Disabled ‘E’ = Errored
UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (OpenMod-Prov2.jar)
UCHIJAAAA Forge{10.13.4.1492} [Minecraft Forge] (OpenMod-Prov2.jar)
UCHIJAAAA kimagine{0.1} [KImagine] (minecraft.jar)
UCHIJAAAA CarpentersBlocks{0.0.1 Beta} [AltisCraft.fr] (AltisCraft.fr.jar)
UCHIJAAAA flansmod{@VERSION@} [Flan’s Mod] (AltisCraft.fr.jar)
UCHIJAAAA thirstmod{1.8.14} [Thirst Mod] (AltisCraft.fr.jar)
UCHIJAAAA t4pro{1.0.1} [Project] (AltisCraft.fr.jar)
UCHIJAAAA altiscraft.MODID{1.0.0} [AltisCraft.fr] (AltisCraft.fr.jar)
UCHIJAAAA Backpack{2.0.1} [Backpack] (backpack-2.0.1-1.7.x.jar)
UCHIJAAAA Dynmap{2.2-143} [Dynmap] (Dynmap-2.2-forge-1.7.10.jar)
UCHIJAAAA gvc{0.6.1} [�aGliby’s�f Voice Chat Mod] (GlibysVC-1.7.10-0.6.1.jar)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 15 / 250; [EntityPlayerMP[‘ArtemGaming’/174595, l=‘AltisCraft’, x=-8457,59, y=39,00, z=-3680,78](ArtemGaming at -8457.590498409854,39.0,-3680.7809953168035), EntityPlayerMP[‘neotromm’/177393, l=‘AltisCraft’, x=-8643,63, y=21,00, z=-3165,51](neotromm at -8643.631129416166,21.0,-3165.511354239658), EntityPlayerMP[‘DrtsA’/179836, l=‘AltisCraft’, x=-8334,03, y=64,00, z=-3985,48](DrtsA at -8334.030383298013,64.0,-3985.4772752699773), EntityPlayerMP[‘Mrdadadou’/182108, l=‘AltisCraft’, x=-8585,87, y=18,00, z=-3514,11](Mrdadadou at -8585.865447011562,18.0,-3514.109863996487), EntityPlayerMP[‘delicious76’/184085, l=‘AltisCraft’, x=-8715,37, y=16,00, z=-3044,69](delicious76 at -8715.36776924101,16.0,-3044.69163014488), EntityPlayerMP[‘YoLoSwAg83’/185246, l=‘AltisCraft’, x=-8407,75, y=33,00, z=-3703,49](YoLoSwAg83 at -8407.751600591057,33.0,-3703.494308215033), EntityPlayerMP[‘cosmos’/185765, l=‘AltisCraft’, x=-4364,12, y=29,00, z=-3212,02](cosmos at -4364.118044377483,29.0,-3212.0159585761326), EntityPlayerMP[‘irise3’/187141, l=‘AltisCraft’, x=-2449,30, y=92,00, z=-7925,14](irise3 at -2449.300000011921,92.0,-7925.137499988079), EntityPlayerMP[‘ItsTriTiX’/187225, l=‘AltisCraft’, x=-8505,66, y=33,00, z=-3743,49](ItsTriTiX at -8505.660983924168,33.0,-3743.489989582368), EntityPlayerMP[‘jas14’/187282, l=‘AltisCraft’, x=-7676,85, y=169,00, z=-2561,23](jas14 at -7676.854420717736,169.0,-2561.2256648434645), EntityPlayerMP[‘Darkmachine67’/187695, l=‘AltisCraft’, x=-3445,69, y=7,00, z=-2856,71](Darkmachine67 at -3445.6856358194505,7.0,-2856.7077253292196), EntityPlayerMP[‘Spiiry24’/187776, l=‘AltisCraft’, x=-8392,30, y=47,00, z=-3935,70](Spiiry24 at -8392.300000011921,47.0,-3935.699999988079), EntityPlayerMP[‘Elfevirus’/187867, l=‘AltisCraft’, x=-7610,94, y=95,00, z=-4804,09](Elfevirus at -7610.944359060889,95.0,-4804.089914580513), EntityPlayerMP[‘max56650’/190372, l=‘AltisCraft’, x=-1579,55, y=61,00, z=-8439,32](max56650 at -1579.5492126030274,61.0,-8439.323016481543), EntityPlayerMP[‘Yanis’/190552, l=‘AltisCraft’, x=1,33, y=100,25, z=0,98](Yanis at 1.3330913216605196,100.24918707874468,0.9846964076767741)]
Is Modded: Definitely; Server brand changed to ‘kcauldron,cauldron,craftbukkit,mcpc,fml,forge’
Type: Dedicated Server (map_server.txt)Des idées de comment résoudre ça ?
-
Salut,
Il y a un NPE sur un tag nbt d’un item. Ça arrive quand tu as quel item en main/ dans l’inventaire ? -
Ca arrive lorsque j’ai un ItemGun de Flansmod dans la main et que je le met dans la table de personnalisation d’arme (l’arme n’est pas chargé) et alors le serveur plante, en pensant programmation sans avoir vu le code derrière je pense que ça pourrait venir du fait que sans avoir recharger le NBT Tag ne s’est pas initialisé, ce que je vais alors devoir changer dans le code ^^:D