copygirl / BetterStorage

A Minecraft mod aimed at offering more storage options.
http://copy.mcft.net/mc/BetterStorage/
MIT License
58 stars 33 forks source link

Client crash when placing backpack #209

Closed Kimball1 closed 10 years ago

Kimball1 commented 10 years ago

Using latest build. Client crashes as soon as a player sneak-rightclick to place a backpack he is wearing.

tested on SMP as well as in Singleplayer, same result.

copygirl commented 10 years ago

Can't reproduce this on my end, can you include the crash log?

Kimball1 commented 10 years ago

Sure, as it looks only a few players have this issue. But we´re all using the exact same Mods and all those are installed on the server aswell, alltho it happens in singleplayer aswell as i said.

java.lang.NullPointerException: Unexpected error
    at codechicken.nei.DefaultHighlightHandler.handleTextData(DefaultHighlightHandler.java:33)
    at codechicken.nei.api.ItemInfo.getText(ItemInfo.java:488)
    at codechicken.nei.HUDRenderer.renderOverlay(HUDRenderer.java:55)
    at codechicken.nei.ClientHandler.tickEvent(ClientHandler.java:161)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_18_ClientHandler_tickEvent_RenderTickEvent.invoke(.dynamic)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:51)
    at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:122)
    at cpw.mods.fml.common.FMLCommonHandler.onRenderTickEnd(FMLCommonHandler.java:339)
    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:947)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:835)
    at net.minecraft.client.main.Main.main(SourceFile:103)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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 codechicken.nei.DefaultHighlightHandler.handleTextData(DefaultHighlightHandler.java:33)
    at codechicken.nei.api.ItemInfo.getText(ItemInfo.java:488)
    at codechicken.nei.HUDRenderer.renderOverlay(HUDRenderer.java:55)
    at codechicken.nei.ClientHandler.tickEvent(ClientHandler.java:161)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_18_ClientHandler_tickEvent_RenderTickEvent.invoke(.dynamic)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:51)
    at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:122)

-- Affected level --
Details:
    Level name: MpServer
    All players: 1 total; [EntityClientPlayerMP['GodlikeLoOser'/15, l='MpServer', x=580,16, y=23,66, z=1283,17]]
    Chunk stats: MultiplayerChunkCache: 225, 234
    Level seed: 0
    Level generator: ID 00 - default, ver 1. Features enabled: false
    Level generator options: 
    Level spawn location: World: (-9,73,28), Chunk: (at 7,4,12 in -1,1; contains blocks -16,0,16 to -1,255,31), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Level time: 17054936 game time, 18341384 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: survival (ID 0). Hardcore: false. Cheats: false
    Forced entities: 14 total; [EntityIronGolem['Iron Golem'/47, l='MpServer', x=572,94, y=22,00, z=1279,38], EntityItemFrame['entity.ItemFrame.name'/16, l='MpServer', x=589,50, y=22,50, z=1280,06], EntityItemFrame['entity.ItemFrame.name'/17, l='MpServer', x=588,50, y=22,50, z=1280,06], EntityItemFrame['entity.ItemFrame.name'/18, l='MpServer', x=581,50, y=22,50, z=1280,06], EntityItemFrame['entity.ItemFrame.name'/19, l='MpServer', x=582,50, y=22,50, z=1280,06], EntityBat['Bat'/51, l='MpServer', x=583,25, y=30,00, z=1267,49], EntityClientPlayerMP['GodlikeLoOser'/15, l='MpServer', x=580,16, y=23,66, z=1283,17], EntityWitch['Witch'/52, l='MpServer', x=590,56, y=34,50, z=1278,88], EntityItem['item.item.sulphur'/340, l='MpServer', x=581,72, y=28,74, z=1266,27], EntityWitch['Witch'/21, l='MpServer', x=590,31, y=34,50, z=1288,69], EntityWitch['Witch'/54, l='MpServer', x=591,49, y=34,50, z=1282,31], EntityWitch['Witch'/55, l='MpServer', x=598,16, y=34,50, z=1278,63], EntityWitch['Witch'/56, l='MpServer', x=592,94, y=34,50, z=1288,50], EntityWaypointContainer['unknown'/62, l='MpServer', x=0,00, y=0,00, z=0,00]]
    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:368)
    at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2383)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:864)
    at net.minecraft.client.main.Main.main(SourceFile:103)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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.2
    Operating System: Windows 7 (amd64) version 6.1
    Java Version: 1.8.0_05, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 162073952 bytes (154 MB) / 757071872 bytes (722 MB) up to 954728448 bytes (910 MB)
    JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G
    AABB Pool Size: 968 (54208 bytes; 0 MB) allocated, 561 (31416 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
    FML: MCP v9.03 FML v7.2.217.1147 Minecraft Forge 10.12.2.1147 Optifine OptiFine_1.7.2_HD_U_D1 19 mods loaded, 19 mods active
    mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    FML{7.2.217.1147} [Forge Mod Loader] (forge-1.7.2-10.12.2.1147.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    Forge{10.12.2.1147} [Minecraft Forge] (forge-1.7.2-10.12.2.1147.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    CodeChickenCore{1.0.1.7} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    NotEnoughItems{1.0.2.14} [Not Enough Items] (NotEnoughItems-1.7.2-1.0.2.14-universal.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    DamageIndicatorsMod{3.1.2} [Damage Indicators] ([1.7.2]DamageIndicatorsMod-3.1.2.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    betterstorage{0.9.1.105-dev} [BetterStorage] (BetterStorage-1.7.2-0.9.1.105-dev.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    MapWriter{2.1.1} [MapWriter] (MapWriter-1.7.2-2.1.1.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    mccapesextra{1.7.2a} [MCCapes Extra] (MCCapesExtra_1.7.2a.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    ForgeMultipart{1.1.0.289} [Forge Multipart] (ForgeMultipart-1.7.2-1.1.0.289-universal.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    ProjRed|Core{4.4.3.42} [ProjectRed] (ProjectRed-Base-1.7.2-4.4.3.42.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    ProjRed|Integration{4.4.3.42} [ProjectRed-Integration] (ProjectRed-Integration-1.7.2-4.4.3.42.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    ProjRed|Transmission{4.4.3.42} [ProjectRed-Transmission] (ProjectRed-Integration-1.7.2-4.4.3.42.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    ProjRed|Expansion{4.4.3.42} [ProjectRed-Expansion] (ProjectRed-Mechanical-1.7.2-4.4.3.42.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    ProjRed|Transportation{4.4.3.42} [ProjectRed-Transportation] (ProjectRed-Mechanical-1.7.2-4.4.3.42.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    voxelmap{1.7.2} [VoxelMap] (voxelmap-1.7.2-1.0.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    zoommod{1.2} [ZoomMod] (ZoomMod[1.7.2][1.2][Forge].jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    McMultipart{1.1.0.289} [Minecraft Multipart Plugin] (ForgeMultipart-1.7.2-1.1.0.289-universal.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    ForgeMicroblock{1.1.0.289} [Forge Microblocks] (ForgeMultipart-1.7.2-1.1.0.289-universal.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
    Launched Version: 1.7.2-Forge10.12.2.1147
    LWJGL: 2.9.0
    OpenGL: GeForce GTS 250/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: []
    Current Language: English (UK)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 1732 (96992 bytes; 0 MB) allocated, 67 (3752 bytes; 0 MB) used
    Anisotropic Filtering: Off (1)
copygirl commented 10 years ago

This seems to be NEI related. It doesn't handle Block.getPickBlock returning null very well. Could be fixed on BetterStorage's end, but it might be something ChickenBones wants to look into as well. If you want to prevent the error from happening, disable the thing that displays the block you're looking at on the HUD (might be Waila).

Kimball1 commented 10 years ago

Thanks, that did the trick actually and was the reason only a few of us had that problem. Besides it wasnt even Waile ( alltho it made the game crash-on-startup in the first place, removed it ) it was the normal "showblock" configuration of NEI itself, however we toggled it off, now it works just fine, thanks a bunch for the very fast reply !