Inventory-Tweaks / inventory-tweaks

Client mod for Minecraft
http://inventory-tweaks.readthedocs.org/
Other
268 stars 108 forks source link

Client crash when changing key configuration #392

Open LemADEC opened 8 years ago

LemADEC commented 8 years ago

Using Forge 1.10.2-12.18.1.2077 and InventoryTweaks-1.61-58, client crashes when changing keyboard controls:

---- Minecraft Crash Report ----

WARNING: coremods are present:
  BetterFoliageLoader (BetterFoliage-MC1.10-2.1.0.jar)
  StreamsCoreMod (Streams-1.9.4-0.2.1.jar)
  AppleCore (AppleCore-mc1.10.2-2.0.1.jar)
  FarseekCoreMod (Farseek-1.9.4-1.1.jar)
  LoadingPlugin (ResourceLoader-MC1.9.4-1.5.1.jar)
  LoadingPlugin (Quark-r1.0-52.jar)
  LoadingPlugin (ChunkAnimator-MC1.9.4-1.2.jar)
  FMLPlugin (InventoryTweaks-1.61-58.jar)
  LoadingHook (Mekanism-1.10.2-9.2.0.292.jar)
  ShetiPhian-ASM (shetiphiancore-1.10.0-3.3.0.jar)
  EnderCorePlugin (EnderCore-1.10.2-0.4.1.54-beta.jar)
  dsurroundcore_unofficial (DynamicSurroundingsUnofficial-1.10.2-3.0.6.1BETA.jar)
Contact their authors BEFORE contacting forge

// You're mean.

Time: 9/12/16 10:32 PM
Description: Unexpected error

java.lang.IndexOutOfBoundsException
    at java.nio.Buffer.checkIndex(Unknown Source)
    at java.nio.DirectByteBuffer.get(Unknown Source)
    at org.lwjgl.input.Keyboard.isKeyDown(Keyboard.java:407)
    at invtweaks.InvTweaks.isSortingShortcutDown(InvTweaks.java:971)
    at invtweaks.InvTweaks.onTick(InvTweaks.java:510)
    at invtweaks.InvTweaks.onTickInGUI(InvTweaks.java:210)
    at invtweaks.forge.ClientProxy.onTick(ClientProxy.java:63)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_679_ClientProxy_onTick_ClientTickEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:72)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:168)
    at net.minecraftforge.fml.common.FMLCommonHandler.onPreClientTick(FMLCommonHandler.java:339)
    at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1650)
    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1055)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371)
    at net.minecraft.client.main.Main.main(SourceFile:124)
    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:135)
    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 --
Thread: Client thread
Stacktrace:
    at java.nio.Buffer.checkIndex(Unknown Source)
    at java.nio.DirectByteBuffer.get(Unknown Source)
    at org.lwjgl.input.Keyboard.isKeyDown(Keyboard.java:407)
    at invtweaks.InvTweaks.isSortingShortcutDown(InvTweaks.java:971)
    at invtweaks.InvTweaks.onTick(InvTweaks.java:510)
    at invtweaks.InvTweaks.onTickInGUI(InvTweaks.java:210)
    at invtweaks.forge.ClientProxy.onTick(ClientProxy.java:63)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_679_ClientProxy_onTick_ClientTickEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:72)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:168)
    at net.minecraftforge.fml.common.FMLCommonHandler.onPreClientTick(FMLCommonHandler.java:339)

-- Affected level --
Details:
    Level name: MpServer
    All players: 1 total; [EntityPlayerSP['LemADEC'/1530, l='MpServer', x=61.63, y=76.00, z=-254.08]]
    Chunk stats: MultiplayerChunkCache: 601, 601
    Level seed: 0
    Level generator: ID 06 - BIOMESOP, ver 0. Features enabled: false
    Level generator options: 
    Level spawn location: World: (72,64,-240), Chunk: (at 8,4,0 in 4,-15; contains blocks 64,0,-240 to 79,255,-225), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
    Level time: 447 game time, 447 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: 80 total; [EntityDroneBaby['Baby Drone'/10, l='MpServer', x=39.50, y=64.00, z=-274.61], EntityDroneBaby['Baby Drone'/11, l='MpServer', x=33.36, y=68.68, z=-269.32], EntityZombie['Zombie'/2161, l='MpServer', x=125.50, y=21.00, z=-303.50], EntityZombie['Zombie'/2162, l='MpServer', x=124.50, y=21.00, z=-304.50], EntityBat['Bat'/2168, l='MpServer', x=132.38, y=12.10, z=-273.37], EntityBat['Bat'/2171, l='MpServer', x=55.93, y=34.04, z=-225.96], EntityBat['Bat'/2174, l='MpServer', x=74.46, y=34.99, z=-225.01], EntityCreeper['Creeper'/2175, l='MpServer', x=74.50, y=19.00, z=-218.50], EntityZombie['Zombie'/2180, l='MpServer', x=59.50, y=40.00, z=-244.50], EntitySkeleton['Skeleton'/2202, l='MpServer', x=50.50, y=25.00, z=-217.50], EntityBat['Bat'/2204, l='MpServer', x=76.93, y=19.07, z=-241.05], EntityBat['Bat'/2205, l='MpServer', x=86.33, y=21.58, z=-222.12], EntityCyberZombie['Zombie'/2206, l='MpServer', x=89.71, y=21.00, z=-222.48], EntitySkeleton['Skeleton'/2213, l='MpServer', x=140.50, y=16.00, z=-304.50], EntityZombie['Zombie'/2214, l='MpServer', x=140.24, y=18.00, z=-307.49], EntityBat['Bat'/2221, l='MpServer', x=71.30, y=14.29, z=-184.17], EntityBat['Bat'/2224, l='MpServer', x=42.25, y=26.10, z=-187.43], EntitySkeleton['Skeleton'/2237, l='MpServer', x=123.50, y=21.00, z=-321.50], EntitySkeleton['Skeleton'/2238, l='MpServer', x=120.50, y=21.00, z=-318.50], EntityWitch['Witch'/2241, l='MpServer', x=-11.50, y=13.00, z=-327.50], EntitySkeleton['Skeleton'/2243, l='MpServer', x=77.07, y=22.00, z=-174.52], EntityZombie['Zombie'/2244, l='MpServer', x=87.50, y=22.00, z=-303.50], EntitySpider['Spider'/2248, l='MpServer', x=92.56, y=22.00, z=-305.04], EntityCyberZombie['Zombie'/2252, l='MpServer', x=101.48, y=27.00, z=-294.75], EntityZombie['Zombie'/2259, l='MpServer', x=66.50, y=20.00, z=-214.50], EntitySkeleton['Skeleton'/2260, l='MpServer', x=69.50, y=20.00, z=-213.50], EntityBat['Bat'/2270, l='MpServer', x=79.34, y=43.13, z=-251.36], EntitySkeleton['Skeleton'/2272, l='MpServer', x=87.50, y=22.00, z=-308.50], EntitySkeleton['Skeleton'/2273, l='MpServer', x=88.50, y=22.00, z=-311.50], EntityZombie['Zombie'/2274, l='MpServer', x=85.50, y=22.00, z=-309.50], EntitySkeleton['Skeleton'/2281, l='MpServer', x=87.50, y=19.00, z=-242.50], EntityCreeper['Creeper'/2289, l='MpServer', x=79.50, y=14.00, z=-312.50], EntityCreeper['Creeper'/2291, l='MpServer', x=69.50, y=18.00, z=-215.50], EntitySkeleton['Skeleton'/2301, l='MpServer', x=85.50, y=24.00, z=-302.50], EntityZombie['Zombie'/2305, l='MpServer', x=95.50, y=22.00, z=-191.50], EntitySkeleton['Skeleton'/2310, l='MpServer', x=59.50, y=16.00, z=-325.50], EntitySkeleton['Skeleton'/2313, l='MpServer', x=81.50, y=22.00, z=-237.50], EntitySkeleton['Skeleton'/2347, l='MpServer', x=55.50, y=15.00, z=-203.50], EntitySkeleton['Skeleton'/2349, l='MpServer', x=47.79, y=17.00, z=-217.52], EntitySkeleton['Skeleton'/2350, l='MpServer', x=53.50, y=15.00, z=-206.50], EntitySkeleton['Skeleton'/2369, l='MpServer', x=43.50, y=14.00, z=-197.50], EntitySkeleton['Skeleton'/2370, l='MpServer', x=41.50, y=14.00, z=-191.50], EntitySkeleton['Skeleton'/2371, l='MpServer', x=38.50, y=14.00, z=-193.50], EntityCreeper['Creeper'/2388, l='MpServer', x=71.50, y=18.00, z=-179.50], EntityCreeper['Creeper'/2391, l='MpServer', x=139.50, y=16.00, z=-305.50], EntityCreeper['Creeper'/2400, l='MpServer', x=54.50, y=35.00, z=-239.50], EntityZombie['Zombie'/2401, l='MpServer', x=56.50, y=31.00, z=-191.50], EntitySkeleton['Skeleton'/2406, l='MpServer', x=55.50, y=31.00, z=-190.50], EntityZombie['Zombie'/2408, l='MpServer', x=14.20, y=21.00, z=-206.50], EntityCyberZombie['Zombie'/2411, l='MpServer', x=84.50, y=16.00, z=-326.50], EntityCyberZombie['Zombie'/2412, l='MpServer', x=82.50, y=16.00, z=-328.50], EntityCyberZombie['Zombie'/2413, l='MpServer', x=83.50, y=16.00, z=-327.50], EntitySkeleton['Skeleton'/2414, l='MpServer', x=79.50, y=16.00, z=-329.50], EntitySkeleton['Skeleton'/2417, l='MpServer', x=128.50, y=17.00, z=-323.50], EntityZombie['Zombie'/2421, l='MpServer', x=82.50, y=24.00, z=-330.76], EntityCreeper['Creeper'/2429, l='MpServer', x=66.50, y=32.00, z=-228.50], EntityConcussionCreeper['Concussion Creeper'/2430, l='MpServer', x=61.50, y=32.00, z=-227.50], EntityCreeper['Creeper'/2431, l='MpServer', x=63.50, y=32.00, z=-228.50], EntityBat['Bat'/2443, l='MpServer', x=44.04, y=26.91, z=-220.79], EntityBat['Bat'/2444, l='MpServer', x=40.94, y=28.85, z=-211.28], EntityBat['Bat'/2453, l='MpServer', x=47.52, y=28.21, z=-313.59], EntityItem['item.item.bone'/2457, l='MpServer', x=53.60, y=15.00, z=-206.62], EntityBat['Bat'/2466, l='MpServer', x=78.37, y=23.40, z=-332.49], EntitySkeleton['Skeleton'/2486, l='MpServer', x=50.50, y=25.00, z=-219.50], EntitySkeleton['Skeleton'/2488, l='MpServer', x=16.50, y=23.34, z=-307.51], EntityZombie['Zombie'/2489, l='MpServer', x=95.50, y=25.00, z=-307.50], EntityBat['Bat'/2493, l='MpServer', x=2.81, y=15.50, z=-321.06], EntitySkeleton['Skeleton'/2503, l='MpServer', x=85.50, y=24.00, z=-188.50], EntitySkeleton['Skeleton'/2507, l='MpServer', x=141.12, y=15.00, z=-296.50], EntitySkeleton['Skeleton'/2509, l='MpServer', x=37.50, y=17.00, z=-176.50], EntitySkeleton['Skeleton'/2510, l='MpServer', x=34.50, y=17.00, z=-177.50], EntitySkeleton['Skeleton'/2511, l='MpServer', x=33.50, y=17.00, z=-176.50], EntityZombie['Zombie'/2513, l='MpServer', x=39.35, y=27.00, z=-193.65], EntityCreeper['Creeper'/2514, l='MpServer', x=39.50, y=27.00, z=-191.50], EntityDroneBaby['Baby Drone'/2523, l='MpServer', x=94.70, y=23.49, z=-194.36], EntityDroneBaby['Baby Drone'/2524, l='MpServer', x=68.96, y=14.00, z=-183.16], EntityPlayerSP['LemADEC'/1530, l='MpServer', x=61.63, y=76.00, z=-254.08], EntityZombie['Zombie'/1871, l='MpServer', x=4.24, y=13.00, z=-321.51], EntityCyberZombie['Zombie'/1872, l='MpServer', x=-2.50, y=11.00, z=-322.50], EntityBat['Bat'/1883, l='MpServer', x=42.20, y=24.84, z=-215.40]]
    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:415)
    at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2660)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:400)
    at net.minecraft.client.main.Main.main(SourceFile:124)
    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:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
    Minecraft Version: 1.10.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_92, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 574979144 bytes (548 MB) / 3053453312 bytes (2912 MB) up to 3053453312 bytes (2912 MB)
    JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms3072m -Xmx3072m
    IntCache: cache: 1, tcache: 1, allocated: 3, tallocated: 104
    FML: MCP 9.32 Powered by Forge 12.18.1.2077 67 mods loaded, 67 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.19} [Minecraft Coder Pack] (minecraft.jar) 
    UCHIJAAAA   FML{8.0.99.99} [Forge Mod Loader] (modpack.jar) 
    UCHIJAAAA   Forge{12.18.1.2077} [Minecraft Forge] (modpack.jar) 
    UCHIJAAAA   agriculturalexpansion{r-1.2.0} [Agricultural Expansion] (AgriculturalExpansion[1.9.4][1.10.2]-r1.2.1.jar) 
    UCHIJAAAA   mantle{1.10.2-1.0.0.jenkins170} [Mantle] (Mantle-1.10.2-1.0.0.jar) 
    UCHIJAAAA   tconstruct{1.10.2-2.4.0.jenkins325} [Tinkers' Construct] (TConstruct-1.10.2-2.4.0.jar) 
    UCHIJAAAA   immersiveengineering{${version}} [Immersive Engineering] (ImmersiveEngineering-0.10-40.jar) 
    UCHIJAAAA   JEI{3.9.3.252} [Just Enough Items] (jei_1.10.2-3.9.3.252.jar) 
    UCHIJAAAA   AppleCore{2.0.1} [AppleCore] (AppleCore-mc1.10.2-2.0.1.jar) 
    UCHIJAAAA   appleskin{1.0.3} [AppleSkin] (AppleSkin-mc1.10.2-1.0.3.jar) 
    UCHIJAAAA   Morphtool{1.0-11} [Morph-o-Tool] (Morph-o-Tool-1.0-11.jar) 
    UCHIJAAAA   Psi{r1.0-39} [Psi] (Psi-r1.0-39.jar) 
    UCHIJAAAA   AutoRegLib{1.0-2} [AutoRegLib] (AutoRegLib-1.0-2.jar) 
    UCHIJAAAA   Baubles{1.2.1.0} [Baubles] (Baubles-1.9.4-1.2.1.0.jar) 
    UCHIJAAAA   bdlib{1.12.2.8} [BD Lib] (bdlib-1.12.2.8-mc1.10.2.jar) 
    UCHIJAAAA   BetterAchievements{0.3.0.30} [Better Achievements] (BetterAchievements-1.10.2-0.3.0.30.jar) 
    UCHIJAAAA   BetterFoliage{2.1.0} [Better Foliage] (BetterFoliage-MC1.10-2.1.0.jar) 
    UCHIJAAAA   BiomesOPlenty{5.0.0.2073} [Biomes O' Plenty] (BiomesOPlenty-1.10.2-5.0.0.2073-universal.jar) 
    UCHIJAAAA   guideapi{@VERSION@} [Guide-API] (Guide-API-1.10.2-2.0.2-45.jar) 
    UCHIJAAAA   BloodMagic{1.9.4-2.0.4-58} [Blood Magic: Alchemical Wizardry] (BloodMagic-1.9.4-2.0.4-58.jar) 
    UCHIJAAAA   Botania{r1.8-321} [Botania] (Botania-unofficial.r1.8-321.jar) 
    UCHIJAAAA   mcmultipart{1.2.1} [MCMultiPart] (MCMultiPart-1.2.1-universal.jar) 
    UCHIJAAAA   chiselsandbits{12.1} [Chisels & Bits] (chiselsandbits-12.1.jar) 
    UCHIJAAAA   ChunkAnimator{1.2} [Chunk Animator] (ChunkAnimator-MC1.9.4-1.2.jar) 
    UCHIJAAAA   cookingforblockheads{4.1.12} [Cooking for Blockheads] (CookingForBlockheads_1.10.2-4.1.12.jar) 
    UCHIJAAAA   covers{0.3.0.6} [Simple Covers] (covers-0.3.0.6-mc1.10.2.jar) 
    UCHIJAAAA   drones{1.10.2-1.5.0} [CustomDrones] (CustomDrones-1.5.0-mc1.10.2.jar) 
    UCHIJAAAA   CustomMainMenu{2.0.2} [Custom Main Menu] (CustomMainMenu-MC1.10.2-2.0.2.jar) 
    UCHIJAAAA   cyberware{beta-0.2.2} [Cyberware] (cyberware-1.9.4-1.10.2-beta-0.2.2.jar) 
    UCHIJAAAA   defaultworldgenerator-port{1.9.4-0.4} [Default World Generator] (DefaultWorldGenerator-port-1.9.4-0.4.jar) 
    UCHIJAAAA   dsurroundunofficial{3.0.6.1BETA} [Dynamic Surroundings Unofficial] (DynamicSurroundingsUnofficial-1.10.2-3.0.6.1BETA.jar) 
    UCHIJAAAA   endercore{1.10.2-0.4.1.54-beta} [EnderCore] (EnderCore-1.10.2-0.4.1.54-beta.jar) 
    UCHIJAAAA   EnderIO{1.10.2-3.0.1.106_beta} [Ender IO] (EnderIO-1.10.2-3.0.1.106_beta.jar) 
    UCHIJAAAA   shetiphiancore{3.3.0} [ShetiPhian-Core] (shetiphiancore-1.10.0-3.3.0.jar) 
    UCHIJAAAA   endertanks{1.4.1} [EnderTanks] (endertanks-1.10.0-1.4.1.jar) 
    UCHIJAAAA   EnderZoo{1.10-1.2.3.43} [Ender Zoo] (EnderZoo-1.10-1.2.3.43.jar) 
    UCHIJAAAA   expandablebackpack{1.1} [Expandable Backpacks] (expandableBackpacks1.1.8.jar) 
    UCHIJAAAA   Farseek{1.9.4} [Farseek] (Farseek-1.9.4-1.1.jar) 
    UCHIJAAAA   FastLeaveDecay{1.1} [Fast Leave Decay] (FastLeaveDecay-MC1.9.4-1.2.1.jar) 
    UCHIJAAAA   flatcoloredblocks{mc1.10-v4.1} [Flat Colored Blocks] (flatcoloredblocks-mc1.10-v4.1.jar) 
    UCHIJAAAA   forestry{5.2.9.242} [Forestry] (forestry_1.10.2-5.2.9.242.jar) 
    UCHIJAAAA   ftbl{2.1.0} [FTBLib] (FTBLib-1.9.4-2.1.0-pre3.jar) 
    UCHIJAAAA   ftbu{2.1.0} [FTBUtilities] (FTBUtilities-1.9.4-2.1.0-pre3.jar) 
    UCHIJAAAA   inventorytweaks{1.61-58-a1fd884} [Inventory Tweaks] (InventoryTweaks-1.61-58.jar) 
    UCHIJAAAA   ironchest{1.10.2-7.0.9.796} [Iron Chest] (ironchest-1.10.2-7.0.9.796.jar) 
    UCHIJAAAA   JEFB{1.0.3} [Just Enough Forestry Bees] (jefb_1.10.2-1.0.3.jar) 
    UCHIJAAAA   journeymap{1.10.2-5.2.4} [JourneyMap] (journeymap-1.10.2-5.2.4-unlimited.jar) 
    UCHIJAAAA   jeresources{0.4.9.50} [Just Enough Resources] (JustEnoughResources-1.10.2-0.4.9.50.jar) 
    UCHIJAAAA   Mekanism{9.2.0} [Mekanism] (Mekanism-1.10.2-9.2.0.292.jar) 
    UCHIJAAAA   MekanismGenerators{9.2.0} [MekanismGenerators] (MekanismGenerators-1.10.2-9.2.0.292.jar) 
    UCHIJAAAA   MekanismTools{9.2.0} [MekanismTools] (MekanismTools-1.10.2-9.2.0.292.jar) 
    UCHIJAAAA   mousetweaks{2.6.4} [Mouse Tweaks] (MouseTweaks-2.6.4-mc1.10.2.jar) 
    UCHIJAAAA   harvestcraft{1.9.4-pre} [Pam's HarvestCraft] (Pam's HarvestCraft 1.9.4-1.10.2b.jar) 
    UCHIJAAAA   platforms{1.2.0} [Platforms] (platforms-1.10.0-1.2.0.jar) 
    UCHIJAAAA   Quark{r1.0-52} [Quark] (Quark-r1.0-52.jar) 
    UCHIJAAAA   RealisticTorches{1.6.3} [Realistic Torches] (RealisticTorches-1.10.2-1.6.3.jar) 
    UCHIJAAAA   refinedstorage{0.9.4} [Refined Storage] (refinedstorage-0.9.4.jar) 
    UCHIJAAAA   xreliquary{1.10.2-1.3.3.521} [Reliquary] (Reliquary-1.10.2-1.3.3.521.jar) 
    UCHIJAAAA   ResourceLoader{1.5.1} [Resource Loader] (ResourceLoader-MC1.9.4-1.5.1.jar) 
    UCHIJAAAA   Roguelike{1.5.4} [Roguelike Dungeons] (RoguelikeDungeons-1.10.2-1.5.4.jar) 
    UCHIJAAAA   roots{0.202} [Roots] (roots-1.10.2-0.202.0.jar) 
    UCHIJAAAA   Souls{1.1.2} [Souls] (Souls-1.10.2-1.1.2.jar) 
    UCHIJAAAA   SpiceOfLife{1.3.4} [The Spice of Life] (SpiceOfLife-mc1.9.4-1.3.4.jar) 
    UCHIJAAAA   Streams{1.9.4} [Streams] (Streams-1.9.4-0.2.1.jar) 
    UCHIJAAAA   theoneprobe{1.0.15} [The One Probe] (theoneprobe-1.10-1.0.15.jar) 
    UCHIJAAAA   topaddons{1.10.2-0.6.0} [TOP Addons] (topaddons-1.10.2-0.6.0.jar) 
    UCHIJAAAA   vc{v1.3.2a-mc1.10.2} [ViesCraft] (ViesCraft-1.3.2a-mc1.10.2.jar) 
    Loaded coremods (and transformers): 
BetterFoliageLoader (BetterFoliage-MC1.10-2.1.0.jar)
  mods.betterfoliage.loader.BetterFoliageTransformer
StreamsCoreMod (Streams-1.9.4-0.2.1.jar)
  streams.core.StreamsClassTransformer
AppleCore (AppleCore-mc1.10.2-2.0.1.jar)
  squeek.applecore.asm.TransformerModuleHandler
FarseekCoreMod (Farseek-1.9.4-1.1.jar)
  farseek.core.FarseekClassTransformer
LoadingPlugin (ResourceLoader-MC1.9.4-1.5.1.jar)
  lumien.resourceloader.asm.ClassTransformer
LoadingPlugin (Quark-r1.0-52.jar)
  vazkii.quark.base.asm.ClassTransformer
LoadingPlugin (ChunkAnimator-MC1.9.4-1.2.jar)
  lumien.chunkanimator.asm.ClassTransformer
FMLPlugin (InventoryTweaks-1.61-58.jar)
  invtweaks.forge.asm.ContainerTransformer
LoadingHook (Mekanism-1.10.2-9.2.0.292.jar)

ShetiPhian-ASM (shetiphiancore-1.10.0-3.3.0.jar)
  shetiphian.core.asm.ClassTransformer
EnderCorePlugin (EnderCore-1.10.2-0.4.1.54-beta.jar)
  com.enderio.core.common.transform.EnderCoreTransformer
dsurroundcore_unofficial (DynamicSurroundingsUnofficial-1.10.2-3.0.6.1BETA.jar)
  org.blockartistry.mod.DynSurround.asm.Transformer
    GL info: ' Vendor: 'Intel' Version: '4.4.0 - Build 20.19.15.4474' Renderer: 'Intel(R) HD Graphics 530'
    Pulsar/tconstruct loaded Pulses: 
        - TinkerCommons (Enabled/Forced)
        - TinkerWorld (Enabled/Not Forced)
        - TinkerTools (Enabled/Not Forced)
        - TinkerSmeltery (Enabled/Not Forced)
        - TinkerGadgets (Enabled/Not Forced)
        - TinkerOredict (Enabled/Forced)
        - TinkerIntegration (Enabled/Forced)
        - TinkerFluids (Enabled/Forced)
        - TinkerMaterials (Enabled/Forced)
        - chiselsandbitsIntegration (Enabled/Not Forced)

    List of loaded APIs: 
        * AppleCoreAPI (2.1.0) from AppleCore-mc1.10.2-2.0.1.jar
        * Baubles|API (1.1.1.0) from Baubles-1.9.4-1.2.1.0.jar
        * BetterAchievements|API (0.3.0.30) from BetterAchievements-1.10.2-0.3.0.30.jar
        * BloodMagic|API (@VERSION@) from BloodMagic-1.9.4-2.0.4-58.jar
        * BotaniaAPI (79) from Botania-unofficial.r1.8-321.jar
        * ChiselsAndBitsAPI (11.7.0) from chiselsandbits-12.1.jar
        * CoFHAPI (1.8.9R1.2.0B1) from ImmersiveEngineering-0.10-40.jar
        * CoFHAPI|energy (1.8.9R1.2.0B1) from theoneprobe-1.10-1.0.15.jar
        * CoFHAPI|item (1.8.9R1.2.0B1) from Mekanism-1.10.2-9.2.0.292.jar
        * EnderIOAPI (0.0.2) from EnderIO-1.10.2-3.0.1.106_beta.jar
        * EnderIOAPI|Redstone (0.0.2) from EnderIO-1.10.2-3.0.1.106_beta.jar
        * EnderIOAPI|Teleport (0.0.2) from EnderIO-1.10.2-3.0.1.106_beta.jar
        * EnderIOAPI|Tools (0.0.2) from EnderIO-1.10.2-3.0.1.106_beta.jar
        * ForestryAPI|apiculture (5.0.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|arboriculture (4.2.1) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|circuits (3.1.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|core (5.0.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|farming (2.1.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|food (1.1.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|fuels (3.0.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|genetics (4.7.1) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|greenhouse (5.0.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|hives (4.1.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|lepidopterology (1.3.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|mail (3.0.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|multiblock (3.0.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|recipes (5.4.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|storage (5.0.0) from forestry_1.10.2-5.2.9.242.jar
        * ForestryAPI|world (2.1.0) from forestry_1.10.2-5.2.9.242.jar
        * Guide-API|API (1.10.2-2.0.2-45) from Guide-API-1.10.2-2.0.2-45.jar
        * ImmersiveEngineering|API (1.0) from ImmersiveEngineering-0.10-40.jar
        * ImmersiveEngineering|ImmersiveFluxAPI (1.0) from ImmersiveEngineering-0.10-40.jar
        * jeresources|API (0.4.9.50) from JustEnoughResources-1.10.2-0.4.9.50.jar
        * journeymap|client-api (1.2) from journeymap-1.10.2-5.2.4-unlimited.jar
        * journeymap|client-api-display (1.2) from journeymap-1.10.2-5.2.4-unlimited.jar
        * journeymap|client-api-event (1.2) from journeymap-1.10.2-5.2.4-unlimited.jar
        * journeymap|client-api-model (1.2) from journeymap-1.10.2-5.2.4-unlimited.jar
        * journeymap|client-api-util (1.2) from journeymap-1.10.2-5.2.4-unlimited.jar
        * JustEnoughItemsAPI (4.1.0) from jei_1.10.2-3.9.3.252.jar
        * MekanismAPI|core (9.0.0) from Mekanism-1.10.2-9.2.0.292.jar
        * MekanismAPI|energy (9.0.0) from Mekanism-1.10.2-9.2.0.292.jar
        * MekanismAPI|gas (9.0.0) from Mekanism-1.10.2-9.2.0.292.jar
        * MekanismAPI|infuse (9.0.0) from Mekanism-1.10.2-9.2.0.292.jar
        * MekanismAPI|laser (9.0.0) from Mekanism-1.10.2-9.2.0.292.jar
        * MekanismAPI|reactor (9.0.0) from Mekanism-1.10.2-9.2.0.292.jar
        * MekanismAPI|recipe (9.0.0) from Mekanism-1.10.2-9.2.0.292.jar
        * MekanismAPI|transmitter (9.0.0) from Mekanism-1.10.2-9.2.0.292.jar
        * MekanismAPI|util (9.0.0) from Mekanism-1.10.2-9.2.0.292.jar
        * PsiAPI (2) from Psi-r1.0-39.jar
        * StorageDrawersAPI (1.7.10-1.2.0) from refinedstorage-0.9.4.jar
        * StorageDrawersAPI|config (1.7.10-1.2.0) from refinedstorage-0.9.4.jar
        * StorageDrawersAPI|event (1.7.10-1.2.0) from refinedstorage-0.9.4.jar
        * StorageDrawersAPI|inventory (1.7.10-1.2.0) from refinedstorage-0.9.4.jar
        * StorageDrawersAPI|pack (1.7.10-1.2.0) from refinedstorage-0.9.4.jar
        * StorageDrawersAPI|registry (1.7.10-1.2.0) from refinedstorage-0.9.4.jar
        * StorageDrawersAPI|render (1.7.10-1.2.0) from refinedstorage-0.9.4.jar
        * StorageDrawersAPI|storage (1.7.10-1.2.0) from refinedstorage-0.9.4.jar
        * StorageDrawersAPI|storage-attribute (1.7.10-1.2.0) from refinedstorage-0.9.4.jar
    EnderIO: No known problems detected.
    Detailed RF API diagnostics:
(redacted)

    Launched Version: 1.10.2-forge1.10.2-12.18.1.2077
    LWJGL: 2.9.4
    OpenGL: Intel(R) HD Graphics 530 GL version 4.4.0 - Build 20.19.15.4474, Intel
    GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: 
    Current Language: English (US)
    Profiler Position: N/A (disabled)
    CPU: 8x Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Kobata commented 8 years ago

What key did you try to set things to? It looks like one part has decided the key exists and another part doesn't know what to do.

LemADEC commented 8 years ago

The default sorting key from InventoryTweaks overlaps with NEI/JEI key to see recipes, namely R. That key is also triggered when entering search patterns in inventory view which is annoying, so I've the habit to affect it to a "NONE" key. On 1.7.10 and before, I was using the "<" key (right of the shift key on fr keyboard layout). For 1.10, minecraft recognize that key, so I've tried to use the "²" key (above the tab key on fr keyboard layout). image

Kobata commented 8 years ago

Unfortunately due to the way input for the sorting is being handled, it probably won't like getting keys that aren't recognized by the mapping that games them names.

'Fixing' this would probably (I need to read up on how LWJGL handles non-US/UK layout keys) require some large changes to how I'm reading the input, so at least for the short term, I recommend not assigning any key that reads 'NONE' to sorting.

LemADEC commented 8 years ago

It was working in 1.7.10. Did something change in vanilla to cause this regression? Could we force the key configuration to something else and prevent the crash? Maybe just add a try-catch around the call for now?

Kobata commented 8 years ago

Well, you did say the key you used changed -- it's possible (likely) that the <> key is in a 'valid' range, but the 'squared' key isn't for some reason.

Since you said the older one is 'recognized' now Mojang probably did update LWJGL in between versions.

JonathanxD commented 8 years ago

In my case, I accidentally changed the key to (index: 8021), and my game crashed.

This line is causing the crash.

In lwjgl problem is here

The key bound: here (the buffer is bounded to that value)

Check the bound may be easy, the LWJGL exposes the "key bound" variable.

LemADEC commented 8 years ago

Are we sure it's not some concurrent access issue since the mod is checking its shortcuts continuously in the option menu?

Spongman commented 4 years ago

same: https://paste.dimdev.org/murumaliyo.mccrash

java.lang.IndexOutOfBoundsException
    at java.nio.Buffer.checkIndex(Buffer.java:540)
    at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:253)
    at org.lwjgl.input.Keyboard.isKeyDown(Keyboard.java:407)
    at invtweaks.InvTweaks.isSortingShortcutDown(InvTweaks.java:978)
LemADEC commented 4 years ago

Pretty sure the mod is no longer supposed to directly call lwjgl. There's a higher call to make in minecraft code base to handle more than basic keys.

Spongman commented 4 years ago

yeah, is there a reason this mod doesn't use the Forge KeyBinding Api instead of calling lwjgl directly?

Kobata commented 4 years ago

Because it predates forge stuff. Also IIRC the forge thing had some side-effects that weren't great related to something or other, there's an old PR that never got accepted to forge around that.

(e: see https://github.com/MinecraftForge/FML/pull/435 for some of the concerns around that back when this stuff was fairly new)