Wurst-Imperium / Wurst7

Minecraft Wurst Hacked Client v7
https://www.wurstclient.net/download/?utm_source=GitHub&utm_medium=Wurst+Client&utm_content=Wurst7+GitHub+repo+sidebar+website+link
GNU General Public License v3.0
1.03k stars 418 forks source link

Crash when trying to load a keybind profile that doesn't end in .json #951

Closed coolnoob78 closed 6 months ago

coolnoob78 commented 9 months ago

Pre-reporting checklist

Description

If you load a file in keybind manager that doesn't end in .json, it crashed the game.

Repro steps

Add almost any .json file to the keybind folder (i used minecraft pot crafting recipe) Change the extension to something other than .json. load wurst and open keybind manager select the file you added

Wurst Client version

7.41

Minecraft version

1.20.4

Crash report (if applicable)

---- Minecraft Crash Report ----
// Why is it breaking :(

Time: 2024-02-21 18:43:33
Description: mouseClicked event handler

java.lang.IllegalArgumentException
    at net.wurstclient.keybinds.KeybindsFile.loadProfile(KeybindsFile.java:62)
    at net.wurstclient.keybinds.KeybindList.loadProfile(KeybindList.java:108)
    at net.wurstclient.options.KeybindProfilesScreen.loadSelected(KeybindProfilesScreen.java:102)
    at net.wurstclient.options.KeybindProfilesScreen.lambda$init$2(KeybindProfilesScreen.java:60)
    at net.minecraft.class_4185.method_25306(class_4185.java:95)
    at net.minecraft.class_4264.method_25348(class_4264.java:48)
    at net.minecraft.class_339.method_25402(class_339.java:145)
    at net.minecraft.class_4069.method_25402(class_4069.java:38)
    at net.wurstclient.options.KeybindProfilesScreen.method_25402(KeybindProfilesScreen.java:120)
    at net.minecraft.class_312.method_1611(class_312.java:99)
    at net.minecraft.class_437.method_25412(class_437.java:414)
    at net.minecraft.class_312.method_1601(class_312.java:99)
    at net.minecraft.class_312.method_22686(class_312.java:180)
    at net.minecraft.class_1255.execute(class_1255.java:102)
    at net.minecraft.class_312.method_22684(class_312.java:180)
    at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
    at org.lwjgl.system.JNI.invokeV(Native Method)
    at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438)
    at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:202)
    at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:213)
    at net.minecraft.class_1041.method_15998(class_1041.java:287)
    at net.minecraft.class_310.method_1523(class_310.java:1349)
    at net.minecraft.class_310.method_1514(class_310.java:888)
    at net.minecraft.client.main.Main.main(Main.java:265)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

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

-- Head --
Thread: Render thread
Stacktrace:
    at net.wurstclient.keybinds.KeybindsFile.loadProfile(KeybindsFile.java:62)
    at net.wurstclient.keybinds.KeybindList.loadProfile(KeybindList.java:108)
    at net.wurstclient.options.KeybindProfilesScreen.loadSelected(KeybindProfilesScreen.java:102)
    at net.wurstclient.options.KeybindProfilesScreen.lambda$init$2(KeybindProfilesScreen.java:60)
    at net.minecraft.class_4185.method_25306(class_4185.java:95)
    at net.minecraft.class_4264.method_25348(class_4264.java:48)
    at net.minecraft.class_339.method_25402(class_339.java:145)
    at net.minecraft.class_4069.method_25402(class_4069.java:38)
    at net.wurstclient.options.KeybindProfilesScreen.method_25402(KeybindProfilesScreen.java:120)
    at net.minecraft.class_312.method_1611(class_312.java:99)
    at net.minecraft.class_437.method_25412(class_437.java:414)
    at net.minecraft.class_312.method_1601(class_312.java:99)
    at net.minecraft.class_312.method_22686(class_312.java:180)
    at net.minecraft.class_1255.execute(class_1255.java:102)
    at net.minecraft.class_312.method_22684(class_312.java:180)
    at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
    at org.lwjgl.system.JNI.invokeV(Native Method)
    at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438)
    at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:202)
    at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:213)

-- Affected screen --
Details:
    Screen name: net.wurstclient.options.KeybindProfilesScreen
Stacktrace:
    at net.minecraft.class_437.method_25412(class_437.java:414)
    at net.minecraft.class_312.method_1601(class_312.java:99)
    at net.minecraft.class_312.method_22686(class_312.java:180)
    at net.minecraft.class_1255.execute(class_1255.java:102)
    at net.minecraft.class_312.method_22684(class_312.java:180)
    at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
    at org.lwjgl.system.JNI.invokeV(Native Method)
    at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438)
    at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:202)
    at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:213)
    at net.minecraft.class_1041.method_15998(class_1041.java:287)
    at net.minecraft.class_310.method_1523(class_310.java:1349)
    at net.minecraft.class_310.method_1514(class_310.java:888)
    at net.minecraft.client.main.Main.main(Main.java:265)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- Uptime --
Details:
    JVM uptime: 18164.325s
    Wall uptime: 25691.263s
    High-res time: 18130.984s
    Client ticks: 353451 ticks / 17672.550s
Stacktrace:
    at net.minecraft.class_310.method_1587(class_310.java:2564)
    at net.minecraft.class_310.method_54580(class_310.java:995)
    at net.minecraft.class_310.method_1514(class_310.java:908)
    at net.minecraft.client.main.Main.main(Main.java:265)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- Affected level --
Details:
    All players: 1 total; [class_746['AwesomeNinja582'/2152341, l='ClientLevel', x=-7451.10, y=50.00, z=-537.36]]
    Chunk stats: 5041, 249
    Level dimension: minecraft:overworld
    Level spawn location: World: (-675,51,-106), Section: (at 13,3,6 in -43,3,-7; chunk contains blocks -688,0,-112 to -673,255,-97), Region: (-2,-1; contains chunks -64,-32 to -33,-1, blocks -1024,0,-512 to -513,255,-1)
    Level time: 5610985277 game time, 6000 day time
    Server brand: DFServer (Velocity)
    Server type: Non-integrated multiplayer server
    Tracked entity count: 0

-- Last reload --
Details:
    Reload number: 1
    Reload reason: initial
    Finished: Yes
    Packs: vanilla, fabric, essential, essential-container, essential-loader, fabric-api, fabric-api-base, fabric-api-lookup-api-v1, fabric-biome-api-v1, fabric-block-api-v1, fabric-block-view-api-v2, fabric-blockrenderlayer-v1, fabric-client-tags-api-v1, fabric-command-api-v1, fabric-command-api-v2, fabric-commands-v0, fabric-containers-v0, fabric-content-registries-v0, fabric-convention-tags-v1, fabric-crash-report-info-v1, fabric-data-attachment-api-v1, fabric-data-generation-api-v1, fabric-dimensions-v1, fabric-entity-events-v1, fabric-events-interaction-v0, fabric-events-lifecycle-v0, fabric-game-rule-api-v1, fabric-item-api-v1, fabric-item-group-api-v1, fabric-key-binding-api-v1, fabric-keybindings-v0, fabric-language-kotlin, fabric-lifecycle-events-v1, fabric-loot-api-v2, fabric-message-api-v1, fabric-mining-level-api-v1, fabric-model-loading-api-v1, fabric-models-v0, fabric-networking-api-v1, fabric-object-builder-api-v1, fabric-particles-v1, fabric-recipe-api-v1, fabric-registry-sync-v0, fabric-renderer-api-v1, fabric-renderer-indigo, fabric-renderer-registries-v1, fabric-rendering-data-attachment-v1, fabric-rendering-fluids-v1, fabric-rendering-v0, fabric-rendering-v1, fabric-resource-conditions-api-v1, fabric-resource-loader-v0, fabric-screen-api-v1, fabric-screen-handler-api-v1, fabric-sound-api-v1, fabric-transfer-api-v1, fabric-transitive-access-wideners-v1, fabricloader, litematica, malilib, wurst, essential

-- System Details --
Details:
    Minecraft Version: 1.20.4
    Minecraft Version ID: 1.20.4
    Operating System: Mac OS X (x86_64) version 10.14.6
    Java Version: 17.0.8, Microsoft
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
    Memory: 1046363400 bytes (997 MiB) / 2147483648 bytes (2048 MiB) up to 2147483648 bytes (2048 MiB)
    CPUs: 4
    Processor Vendor: GenuineIntel
    Processor Name: Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz
    Identifier: Intel64 Family 6 Model 61 Stepping 4
    Microarchitecture: Broadwell (Client)
    Frequency (GHz): 2.90
    Number of physical packages: 1
    Number of physical CPUs: 2
    Number of logical CPUs: 4
    Graphics card #0 name: Intel Iris Graphics 6100
    Graphics card #0 vendor: Intel
    Graphics card #0 VRAM (MB): 1536.00
    Graphics card #0 deviceId: 0x162b
    Graphics card #0 versionInfo: Revision ID: 0x0009
    Memory slot #0 capacity (MB): 4096.00
    Memory slot #0 clockSpeed (GHz): 1.87
    Memory slot #0 type: DDR3
    Memory slot #1 capacity (MB): 4096.00
    Memory slot #1 clockSpeed (GHz): 1.87
    Memory slot #1 type: DDR3
    Virtual memory max (MB): 9216.00
    Virtual memory used (MB): 5729.67
    Swap memory total (MB): 1024.00
    Swap memory used (MB): 523.00
    JVM Flags: 8 total; -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    Fabric Mods: 
        baritone: Baritone 1.10.2
            dev_babbaj_nether-pathfinder: nether-pathfinder 1.4.1
        elementa: Elementa 619
        essential: Essential 1.3.0.6+g4dc55a95bd
        essential-container: essential-container 1.0.0
            essential-loader: essential-loader 1.2.1
        fabric-api: Fabric API 0.95.4+1.20.4
            fabric-api-base: Fabric API Base 0.4.36+78d798af4f
            fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.48+82b1bb3e4f
            fabric-biome-api-v1: Fabric Biome API (v1) 13.0.16+78d798af4f
            fabric-block-api-v1: Fabric Block API (v1) 1.0.16+3e2216cb4f
            fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.4+78d798af4f
            fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.46+78d798af4f
            fabric-client-tags-api-v1: Fabric Client Tags 1.1.7+78d798af4f
            fabric-command-api-v1: Fabric Command API (v1) 1.2.41+f71b366f4f
            fabric-command-api-v2: Fabric Command API (v2) 2.2.20+78d798af4f
            fabric-commands-v0: Fabric Commands (v0) 0.2.58+df3654b34f
            fabric-containers-v0: Fabric Containers (v0) 0.1.86+df3654b34f
            fabric-content-registries-v0: Fabric Content Registries (v0) 5.0.12+78d798af4f
            fabric-convention-tags-v1: Fabric Convention Tags 1.5.10+78d798af4f
            fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.23+78d798af4f
            fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.0.2+25e1b4764f
            fabric-data-generation-api-v1: Fabric Data Generation API (v1) 13.2.1+5c0133444f
            fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.61+78d798af4f
            fabric-entity-events-v1: Fabric Entity Events (v1) 1.6.0+44c0f8c64f
            fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.7.1+389931eb4f
            fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.73+df3654b34f
            fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.46+78d798af4f
            fabric-item-api-v1: Fabric Item API (v1) 2.2.0+d6f2b0844f
            fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.23+78d798af4f
            fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.41+78d798af4f
            fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.39+df3654b34f
            fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.31+eabbae364f
            fabric-loot-api-v2: Fabric Loot API (v2) 2.1.7+78d798af4f
            fabric-message-api-v1: Fabric Message API (v1) 6.0.5+78d798af4f
            fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.62+78d798af4f
            fabric-model-loading-api-v1: Fabric Model Loading API (v1) 1.0.8+78d798af4f
            fabric-models-v0: Fabric Models (v0) 0.4.7+9386d8a74f
            fabric-networking-api-v1: Fabric Networking API (v1) 3.1.7+2e5ac5484f
            fabric-object-builder-api-v1: Fabric Object Builder API (v1) 13.0.11+06274a474f
            fabric-particles-v1: Fabric Particles (v1) 1.1.7+78d798af4f
            fabric-recipe-api-v1: Fabric Recipe API (v1) 2.0.20+78d798af4f
            fabric-registry-sync-v0: Fabric Registry Sync (v0) 4.0.18+78d798af4f
            fabric-renderer-api-v1: Fabric Renderer API (v1) 3.2.4+78d798af4f
            fabric-renderer-indigo: Fabric Renderer - Indigo 1.5.4+78d798af4f
            fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.52+df3654b34f
            fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.42+73761d2e4f
            fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.33+78d798af4f
            fabric-rendering-v0: Fabric Rendering (v0) 1.1.55+df3654b34f
            fabric-rendering-v1: Fabric Rendering (v1) 3.1.0+0d29db764f
            fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.14+78d798af4f
            fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.18+b66dcf784f
            fabric-screen-api-v1: Fabric Screen API (v1) 2.0.17+78d798af4f
            fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.55+78d798af4f
            fabric-sound-api-v1: Fabric Sound API (v1) 1.0.17+78d798af4f
            fabric-transfer-api-v1: Fabric Transfer API (v1) 4.0.9+e84342304f
            fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 5.0.14+78d798af4f
        fabric-language-kotlin: Fabric Language Kotlin 1.10.10+kotlin.1.9.10
        fabricloader: Fabric Loader 0.15.6
            mixinextras: MixinExtras 0.3.2
        java: OpenJDK 64-Bit Server VM 17
        litematica: Litematica 0.17.0
        malilib: MaLiLib 0.18.1
        minecraft: Minecraft 1.20.4
        org_jetbrains_annotations: annotations 13.0
        org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.9.10
        org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.9.10
        org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.9.10
        org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.9.10
        org_jetbrains_kotlinx_atomicfu-jvm: atomicfu-jvm 0.22.0
        org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.7.3
        org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.7.3
        org_jetbrains_kotlinx_kotlinx-datetime-jvm: kotlinx-datetime-jvm 0.4.0
        org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm: kotlinx-serialization-cbor-jvm 1.6.0
        org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.6.0
        org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.6.0
        universalcraft: UniversalCraft 323
        vigilance: Vigilance 295
        wurst: Wurst Client v7.41-MC1.20.4
    Launched Version: fabric-loader-0.15.6-1.20.4
    Launcher name: minecraft-launcher
    Backend library: LWJGL version 3.3.2-snapshot
    Backend API: Intel(R) Iris(TM) Graphics 6100 GL version 4.1 INTEL-12.10.31, Intel Inc.
    Window size: 2560x1600
    GL Caps: Using framebuffer using OpenGL 3.2
    GL debug messages: <disabled>
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fabric'
    Universe: 400921fb54442d18
    Type: Client (map_client.txt)
    Graphics mode: fancy
    Render Distance: 32/32 chunks
    Resource Packs: vanilla, fabric
    Current Language: en_us
    Locale: en_US
    CPU: 4x Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz
github-actions[bot] commented 7 months ago

This issue has been open for a while with no recent activity. If this issue is still important to you, please add a comment within the next 7 days to keep it open. Otherwise, the issue will be automatically closed to free up time for other tasks.

Issues should be closed if: