squeek502 / SpiceOfLife

A Minecraft mod that encourages dietary variety through diminishing returns
The Unlicense
23 stars 26 forks source link

Game crash when adding juice (Harvestcraft) in lunchbag #33

Closed Protheus closed 10 years ago

Protheus commented 10 years ago

Game crashed and exut when adding juices in the lunchbag (6 slot)

---- Minecraft Crash Report ---- // I let you down. Sorry :(

Time: 9/23/14 8:14 AM Description: Updating screen events

java.lang.NullPointerException: Updating screen events at squeek.spiceoflife.items.ItemFoodContainer.getOrInitBaseTag(ItemFoodContainer.java:90) at squeek.spiceoflife.items.ItemFoodContainer.getInventoryTag(ItemFoodContainer.java:103) at squeek.spiceoflife.inventory.FoodContainerInventory.onInventoryChanged(FoodContainerInventory.java:35) at squeek.spiceoflife.inventory.NBTInventory.func_70296_d(NBTInventory.java:179) at squeek.spiceoflife.inventory.NBTInventory.func_70299_a(NBTInventory.java:146) at net.minecraft.inventory.Slot.func_75215_d(Slot.java:77) at squeek.spiceoflife.inventory.ContainerGeneric.func_75135_a(ContainerGeneric.java:237) at squeek.spiceoflife.inventory.ContainerGeneric.func_82846_b(ContainerGeneric.java:128) at net.minecraft.inventory.Container.func_75144_a(SourceFile:193) at squeek.spiceoflife.inventory.ContainerGeneric.func_75144_a(ContainerGeneric.java:261) at net.minecraft.client.multiplayer.PlayerControllerMP.func_78753_a(PlayerControllerMP.java:419) at codechicken.nei.guihook.GuiContainerManager.handleSlotClick(GuiContainerManager.java:537) at net.minecraft.client.gui.inventory.GuiContainer.func_146984_a(GuiContainer.java:636) at net.minecraft.client.gui.inventory.GuiContainer.public_func_146984_a(GuiContainer.java) at codechicken.nei.guihook.DefaultSlotClickHandler.callHandleMouseClick(DefaultSlotClickHandler.java) at codechicken.nei.guihook.DefaultSlotClickHandler.handleSlotClick(DefaultSlotClickHandler.java:17) at codechicken.nei.guihook.GuiContainerManager.handleMouseClick(GuiContainerManager.java:465) at net.minecraft.client.gui.inventory.GuiContainer.managerHandleMouseClick(GuiContainer.java) at net.minecraft.client.gui.inventory.GuiContainer.func_73864_a(GuiContainer.java:392) at net.minecraft.client.gui.GuiScreen.func_146274_d(GuiScreen.java:296) at net.minecraft.client.gui.inventory.GuiContainer.func_146274_d(GuiContainer.java) at net.minecraft.client.gui.GuiScreen.func_146269_k(GuiScreen.java:268) at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1629) at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:962) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

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

-- Head -- Stacktrace: at squeek.spiceoflife.items.ItemFoodContainer.getOrInitBaseTag(ItemFoodContainer.java:90) at squeek.spiceoflife.items.ItemFoodContainer.getInventoryTag(ItemFoodContainer.java:103) at squeek.spiceoflife.inventory.FoodContainerInventory.onInventoryChanged(FoodContainerInventory.java:35) at squeek.spiceoflife.inventory.NBTInventory.func_70296_d(NBTInventory.java:179) at squeek.spiceoflife.inventory.NBTInventory.func_70299_a(NBTInventory.java:146) at net.minecraft.inventory.Slot.func_75215_d(Slot.java:77) at squeek.spiceoflife.inventory.ContainerGeneric.func_75135_a(ContainerGeneric.java:237) at squeek.spiceoflife.inventory.ContainerGeneric.func_82846_b(ContainerGeneric.java:128) at net.minecraft.inventory.Container.func_75144_a(SourceFile:193) at squeek.spiceoflife.inventory.ContainerGeneric.func_75144_a(ContainerGeneric.java:261) at net.minecraft.client.multiplayer.PlayerControllerMP.func_78753_a(PlayerControllerMP.java:419) at codechicken.nei.guihook.GuiContainerManager.handleSlotClick(GuiContainerManager.java:537) at net.minecraft.client.gui.inventory.GuiContainer.func_146984_a(GuiContainer.java:636) at net.minecraft.client.gui.inventory.GuiContainer.public_func_146984_a(GuiContainer.java) at codechicken.nei.guihook.DefaultSlotClickHandler.callHandleMouseClick(DefaultSlotClickHandler.java) at codechicken.nei.guihook.DefaultSlotClickHandler.handleSlotClick(DefaultSlotClickHandler.java:17) at codechicken.nei.guihook.GuiContainerManager.handleMouseClick(GuiContainerManager.java:465) at net.minecraft.client.gui.inventory.GuiContainer.managerHandleMouseClick(GuiContainer.java) at net.minecraft.client.gui.inventory.GuiContainer.func_73864_a(GuiContainer.java:392) at net.minecraft.client.gui.GuiScreen.func_146274_d(GuiScreen.java:296) at net.minecraft.client.gui.inventory.GuiContainer.func_146274_d(GuiContainer.java) at net.minecraft.client.gui.GuiScreen.func_146269_k(GuiScreen.java:268)

-- Affected screen -- Details: Screen name: squeek.spiceoflife.gui.GuiFoodContainer

-- Affected level -- Details: Level name: MpServer All players: 1 total; [GCEntityClientPlayerMP[''/69, l='MpServer', x=-84.97, y=5.62, z=-126.53]] Chunk stats: MultiplayerChunkCache: 169, 169 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: World: (-91,4,-121), Chunk: (at 5,0,7 in -6,-8; contains blocks -96,0,-128 to -81,255,-113), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1) Level time: 12837 game time, 30092 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 118 total; [EntityHat['unknown'/232945, l='MpServer', x=-146.22, y=4.00, z=-198.59], EntityHat['unknown'/275576, l='MpServer', x=-160.50, y=4.00, z=-55.22], EntityHat['unknown'/275577, l='MpServer', x=-136.44, y=4.00, z=-173.72], EntityHat['unknown'/275578, l='MpServer', x=-137.47, y=4.00, z=-169.56], EntityHat['unknown'/232940, l='MpServer', x=-23.34, y=4.00, z=-51.69], EntityHat['unknown'/275579, l='MpServer', x=-23.34, y=4.00, z=-51.69], EntityHat['unknown'/275580, l='MpServer', x=-146.22, y=4.00, z=-198.59], EntityHat['unknown'/232938, l='MpServer', x=-137.47, y=4.00, z=-169.56], EntityHat['unknown'/232933, l='MpServer', x=-136.50, y=4.00, z=-173.66], EntityHat['unknown'/198794, l='MpServer', x=-23.34, y=4.00, z=-51.69], EntityHat['unknown'/232924, l='MpServer', x=-160.50, y=4.00, z=-55.22], EntityHat['unknown'/198795, l='MpServer', x=-146.22, y=4.00, z=-198.59], EntityCow['Cow'/94974, l='MpServer', x=-158.50, y=4.00, z=-56.50], EntityHat['unknown'/198792, l='MpServer', x=-136.50, y=4.00, z=-173.66], EntityCow['Cow'/94975, l='MpServer', x=-157.31, y=4.00, z=-62.78], EntityHat['unknown'/198793, l='MpServer', x=-137.47, y=4.00, z=-169.56], EntityWaypointContainer['unknown'/15340, l='MpServer', x=0.00, y=0.00, z=0.00], EntityHat['unknown'/176496, l='MpServer', x=-84.97, y=5.62, z=-126.53], EntityHat['unknown'/198790, l='MpServer', x=-160.50, y=4.00, z=-55.22], EntityHat['unknown'/219191, l='MpServer', x=-160.50, y=4.00, z=-55.22], EntityHat['unknown'/219193, l='MpServer', x=-137.47, y=4.00, z=-169.56], EntityHat['unknown'/219192, l='MpServer', x=-136.50, y=4.00, z=-173.66], EntityHat['unknown'/219195, l='MpServer', x=-146.22, y=4.00, z=-198.59], EntityItem['item.item.egg'/1619625, l='MpServer', x=-141.44, y=4.13, z=-170.44], EntityTrail['unknown'/176241, l='MpServer', x=-84.97, y=5.62, z=-126.53], EntityHat['unknown'/219194, l='MpServer', x=-23.34, y=4.00, z=-51.69], GCEntityClientPlayerMP[''/69, l='MpServer', x=-84.97, y=5.62, z=-126.53], EntityItem['item.item.egg'/1549610, l='MpServer', x=-107.09, y=4.13, z=-93.50], EntityItem['item.item.egg'/1106606, l='MpServer', x=-125.03, y=4.13, z=-178.69], EntityItem['item.item.egg'/1372615, l='MpServer', x=-130.81, y=4.13, z=-172.13], EntityItem['item.item.egg'/1508430, l='MpServer', x=-138.88, y=4.13, z=-174.88], EntitySheep['Sheep'/95044, l='MpServer', x=-153.50, y=4.00, z=-194.50], EntityHat['unknown'/262073, l='MpServer', x=-160.50, y=4.00, z=-55.22], EntitySheep['Sheep'/95045, l='MpServer', x=-152.50, y=4.00, z=-191.50], EntityHat['unknown'/262074, l='MpServer', x=-136.50, y=4.00, z=-173.66], EntitySheep['Sheep'/95046, l='MpServer', x=-158.03, y=4.00, z=-193.94], EntityHat['unknown'/262075, l='MpServer', x=-137.47, y=4.00, z=-169.56], EntityHat['unknown'/262076, l='MpServer', x=-23.34, y=4.00, z=-51.69], EntityCow['Cow'/95040, l='MpServer', x=-146.50, y=4.00, z=-197.03], EntityHat['unknown'/262077, l='MpServer', x=-146.22, y=4.00, z=-198.59], EntityCow['Cow'/95041, l='MpServer', x=-144.81, y=4.00, z=-200.50], EntityCow['Cow'/95042, l='MpServer', x=-149.81, y=4.00, z=-202.13], EntitySheep['Sheep'/95043, l='MpServer', x=-151.22, y=4.00, z=-201.84], EntityItem['item.item.egg'/1045409, l='MpServer', x=-136.63, y=4.13, z=-175.56], EntityItem['item.item.egg'/1338280, l='MpServer', x=-131.44, y=4.13, z=-170.47], EntityHat['unknown'/269582, l='MpServer', x=-146.22, y=4.00, z=-198.59], EntityHat['unknown'/269581, l='MpServer', x=-23.34, y=4.00, z=-51.69], EntityHat['unknown'/269580, l='MpServer', x=-137.47, y=4.00, z=-169.56], EntityHat['unknown'/269579, l='MpServer', x=-136.50, y=4.00, z=-173.66], EntityHat['unknown'/269578, l='MpServer', x=-160.50, y=4.00, z=-55.22], EntityHat['unknown'/212760, l='MpServer', x=-146.22, y=4.00, z=-198.59], EntityHat['unknown'/212759, l='MpServer', x=-23.34, y=4.00, z=-51.69], EntityHat['unknown'/212758, l='MpServer', x=-137.47, y=4.00, z=-169.56], EntityHat['unknown'/212757, l='MpServer', x=-136.50, y=4.00, z=-173.66], EntityHat['unknown'/212756, l='MpServer', x=-160.50, y=4.00, z=-55.22], EntityItem['item.item.egg'/1291933, l='MpServer', x=-138.16, y=4.13, z=-171.72], EntityCow['Cow'/94976, l='MpServer', x=-155.28, y=4.00, z=-59.47], EntityCow['Cow'/94977, l='MpServer', x=-155.28, y=4.00, z=-57.28], EntityHat['unknown'/259701, l='MpServer', x=-146.22, y=4.00, z=-198.59], EntityChicken['Chicken'/94978, l='MpServer', x=-162.50, y=4.00, z=-52.50], EntityHat['unknown'/259700, l='MpServer', x=-23.34, y=4.00, z=-51.69], EntityChicken['Chicken'/94979, l='MpServer', x=-160.50, y=4.00, z=-51.50], EntityHat['unknown'/259699, l='MpServer', x=-137.47, y=4.00, z=-169.56], EntityChicken['Chicken'/94980, l='MpServer', x=-158.50, y=4.00, z=-48.50], EntityHat['unknown'/259698, l='MpServer', x=-136.50, y=4.00, z=-173.66], EntityHat['unknown'/259697, l='MpServer', x=-160.50, y=4.00, z=-55.22], EntitySheep['Sheep'/94982, l='MpServer', x=-160.50, y=4.00, z=-55.22], EntitySheep['Sheep'/94983, l='MpServer', x=-160.50, y=4.00, z=-56.81], EntitySheep['Sheep'/94984, l='MpServer', x=-157.94, y=4.00, z=-60.03], EntityHat['unknown'/199986, l='MpServer', x=-146.22, y=4.00, z=-198.59], EntityHat['unknown'/202121, l='MpServer', x=-160.50, y=4.00, z=-55.22], EntitySheep['Sheep'/94985, l='MpServer', x=-155.41, y=4.00, z=-60.91], EntityHat['unknown'/199984, l='MpServer', x=-137.47, y=4.00, z=-169.56], EntityHat['unknown'/202123, l='MpServer', x=-137.47, y=4.00, z=-169.56], EntityHat['unknown'/199985, l='MpServer', x=-23.34, y=4.00, z=-51.69], EntityHat['unknown'/202122, l='MpServer', x=-136.50, y=4.00, z=-173.66], EntityHat['unknown'/202125, l='MpServer', x=-146.22, y=4.00, z=-198.59], EntityHat['unknown'/202124, l='MpServer', x=-23.34, y=4.00, z=-51.69], EntityHat['unknown'/199983, l='MpServer', x=-136.50, y=4.00, z=-173.66], EntityHat['unknown'/199982, l='MpServer', x=-114.50, y=4.00, z=-90.50], EntityCow['Cow'/94999, l='MpServer', x=-118.78, y=4.00, z=-95.50], EntityHat['unknown'/199981, l='MpServer', x=-160.50, y=4.00, z=-55.22], EntityItem['item.item.egg'/1587380, l='MpServer', x=-113.25, y=4.13, z=-93.63], EntityItem['item.item.egg'/1331239, l='MpServer', x=-102.38, y=4.13, z=-85.25], EntityCow['Cow'/94998, l='MpServer', x=-118.22, y=4.00, z=-90.22], EntityCow['Cow'/95001, l='MpServer', x=-115.13, y=4.00, z=-93.84], EntityCow['Cow'/95000, l='MpServer', x=-117.59, y=4.00, z=-95.63], EntityChicken['Chicken'/95003, l='MpServer', x=-112.50, y=4.00, z=-93.50], EntityChicken['Chicken'/95002, l='MpServer', x=-111.50, y=4.00, z=-91.50], EntityChicken['Chicken'/95005, l='MpServer', x=-105.50, y=4.00, z=-93.50], EntityChicken['Chicken'/95004, l='MpServer', x=-101.59, y=4.00, z=-84.59], EntityPig['Pig'/95007, l='MpServer', x=-113.50, y=4.00, z=-88.50], EntityPig['Pig'/95006, l='MpServer', x=-114.50, y=4.00, z=-90.50], EntityChicken['Chicken'/95011, l='MpServer', x=-139.50, y=4.00, z=-170.50], EntityItem['item.item.egg'/1199103, l='MpServer', x=-113.81, y=4.13, z=-90.84], EntityPig['Pig'/95008, l='MpServer', x=-118.50, y=4.00, z=-86.50], EntityPig['Pig'/95009, l='MpServer', x=-116.03, y=4.00, z=-76.97], EntityChicken['Chicken'/95014, l='MpServer', x=-124.53, y=4.00, z=-179.47], EntityHorse['Horse'/95015, l='MpServer', x=-133.56, y=4.00, z=-169.97], EntityChicken['Chicken'/95012, l='MpServer', x=-136.28, y=4.00, z=-170.19], EntityChicken['Chicken'/95013, l='MpServer', x=-132.34, y=4.00, z=-171.66], EntityChicken['Chicken'/95019, l='MpServer', x=-130.56, y=4.00, z=-170.53], EntityHorse['Horse'/95016, l='MpServer', x=-137.75, y=4.00, z=-172.59], EntityChicken['Chicken'/95022, l='MpServer', x=-137.50, y=4.00, z=-175.50], EntityChicken['Chicken'/95020, l='MpServer', x=-136.44, y=4.00, z=-173.72], EntityChicken['Chicken'/95021, l='MpServer', x=-137.47, y=4.00, z=-169.56], EntityPig['Pig'/95027, l='MpServer', x=-25.50, y=4.00, z=-48.50], EntityPig['Pig'/95030, l='MpServer', x=-26.09, y=4.00, z=-52.16], EntityPig['Pig'/95029, l='MpServer', x=-25.03, y=4.00, z=-50.88], EntityPig['Pig'/95028, l='MpServer', x=-23.34, y=4.00, z=-51.69], EntityCow['Cow'/95035, l='MpServer', x=-146.22, y=4.00, z=-198.59], EntityChicken['Chicken'/95034, l='MpServer', x=-34.38, y=4.00, z=-47.44], EntityChicken['Chicken'/95033, l='MpServer', x=-29.50, y=4.00, z=-49.50], EntityCow['Cow'/95039, l='MpServer', x=-147.81, y=4.00, z=-199.81], EntityCow['Cow'/95038, l='MpServer', x=-143.50, y=4.00, z=-193.50], EntityCow['Cow'/95037, l='MpServer', x=-138.50, y=4.00, z=-197.50], EntityItem['item.item.egg'/973321, l='MpServer', x=-136.56, y=4.13, z=-168.84], EntityCow['Cow'/95036, l='MpServer', x=-143.22, y=4.00, z=-200.50]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:373) at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2433) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:908) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Mac OS X (x86_64) version 10.9.4 Java Version: 1.7.0_67, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 1106457872 bytes (1055 MB) / 3207593984 bytes (3059 MB) up to 3207593984 bytes (3059 MB) Mod Pack: Unknown / None LiteLoader Mods: 1 loaded mod(s)

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: [Soartex.zip]
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
Protheus commented 10 years ago

Versions used: FML 1208

squeek502 commented 10 years ago

Not sure how to reproduce this; it's not the juice that caused the crash, it was that the client couldn't find the lunch box in your inventory when it tried to add the juice to it for whatever reason.

I can try to protect against the crash, but it won't address the cause of it...

Does this crash happen consistently for you?

Protheus commented 10 years ago

Will try in 30 min then i will be back at my desk

Protheus commented 10 years ago

When I'm in survival mode and no cheats active and place the items in de box or bag either with drag and drop or shift click it works fine.

When in NEI I have cheat/creative enabled and drag and drop either the juice or again shift-click it in the box or bag the game crashes.

If I add a minecraft vanila food, apple bread it works fine and the juice does't crash the game

Protheus commented 10 years ago

tried again with a new world - flat, spawn in a lunch box and apples. no cheat active and in survival and when I place the apples in the box the game crashed again...

http://pastebin.com/ZifnN9y3

squeek502 commented 10 years ago

Try v1.2.1 and see if you still have this issue.

Protheus commented 10 years ago

sweet as that one works perfect ! :) now if you do not mind I have diminishing returns so I need to get some food.

keep up the good work man/woman :)