@Orangenal-name opened this Issue on July 9th 2021

Description

When I use MobSpawnESP, the game sometimes randomly crashers

Steps To Reproduce

  1. Turn on MobSpawnESP
  2. Play the game for a while

Crash Report


---- Minecraft Crash Report ----
// Who set us up the TNT?

Time: 09/07/2021, 10:47
Description: Firing Wurst event

java.lang.NullPointerException: Cannot invoke "net.minecraft.class_2338.method_10263()" because "pos" is null
    at net.wurstclient.hacks.MobSpawnEspHack$ChunkScanner.lambda$compileBuffer$4(MobSpawnEspHack.java:358)
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
    at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
    at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
    at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
    at net.wurstclient.hacks.MobSpawnEspHack$ChunkScanner.compileBuffer(MobSpawnEspHack.java:360)
    at net.wurstclient.hacks.MobSpawnEspHack.onUpdate(MobSpawnEspHack.java:171)
    at net.wurstclient.events.UpdateListener$UpdateEvent.fire(UpdateListener.java:27)
    at net.wurstclient.event.EventManager.fireImpl(EventManager.java:69)
    at net.wurstclient.event.EventManager.fire(EventManager.java:42)
    at net.minecraft.class_746.handler$zfo000$onTick(class_746.java:1345)
    at net.minecraft.class_746.method_5773(class_746.java:210)
    at net.minecraft.class_638.method_18646(class_638.java:179)
    at net.minecraft.class_1937.method_18472(class_1937.java:483)
    at net.minecraft.class_638.method_32124(class_638.java:167)
    at net.minecraft.class_5574.method_31791(class_5574.java:54)
    at net.minecraft.class_638.method_18116(class_638.java:163)
    at net.minecraft.class_310.method_1574(class_310.java:1752)
    at net.minecraft.class_310.method_1523(class_310.java:1083)
    at net.minecraft.class_310.method_1514(class_310.java:730)
    at net.minecraft.client.main.Main.main(Main.java:217)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:226)
    at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:146)
    at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)

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

-- Head --
Thread: Render thread
Stacktrace:
    at net.wurstclient.hacks.MobSpawnEspHack$ChunkScanner.lambda$compileBuffer$4(MobSpawnEspHack.java:358)
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
    at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
    at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
    at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
    at net.wurstclient.hacks.MobSpawnEspHack$ChunkScanner.compileBuffer(MobSpawnEspHack.java:360)
    at net.wurstclient.hacks.MobSpawnEspHack.onUpdate(MobSpawnEspHack.java:171)
    at net.wurstclient.events.UpdateListener$UpdateEvent.fire(UpdateListener.java:27)

-- Affected event --
Details:
    Event class: net.wurstclient.events.UpdateListener$UpdateEvent
Stacktrace:
    at net.wurstclient.event.EventManager.fireImpl(EventManager.java:69)
    at net.wurstclient.event.EventManager.fire(EventManager.java:42)
    at net.minecraft.class_746.handler$zfo000$onTick(class_746.java:1345)
    at net.minecraft.class_746.method_5773(class_746.java:210)
    at net.minecraft.class_638.method_18646(class_638.java:179)

-- Entity being ticked --
Details:
    Entity Type: minecraft:player (net.minecraft.class_746)
    Entity ID: 4362
    Entity Name: myusername
    Entity's Exact location: 66.28, 28.00, -207.30
    Entity's Block location: World: (66,28,-208), Section: (at 2,12,0 in 4,1,-13; chunk contains blocks 64,0,-208 to 79,255,-193), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
    Entity's Momentum: 0.00, -0.08, 0.00
    Entity's Passengers: []
    Entity's Vehicle: null
Stacktrace:
    at net.minecraft.class_1937.method_18472(class_1937.java:483)
    at net.minecraft.class_638.method_32124(class_638.java:167)
    at net.minecraft.class_5574.method_31791(class_5574.java:54)
    at net.minecraft.class_638.method_18116(class_638.java:163)

-- Affected level --
Details:
    All players: 1 total; [class_746['myusername'/4362, l='ClientLevel', x=66.28, y=28.00, z=-207.30]]
    Chunk stats: 729, 503
    Level dimension: minecraft:overworld
    Level spawn location: World: (96,74,-256), Section: (at 0,10,0 in 6,4,-16; chunk contains blocks 96,0,-256 to 111,255,-241), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
    Level time: 835291 game time, 119793 day time
    Server brand: fabric
    Server type: Non-integrated multiplayer server
Stacktrace:
    at net.minecraft.class_638.method_8538(class_638.java:370)
    at net.minecraft.class_310.method_1587(class_310.java:2399)
    at net.minecraft.class_310.method_1514(class_310.java:749)
    at net.minecraft.client.main.Main.main(Main.java:217)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:226)
    at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:146)
    at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)

-- Last reload --
Details:
    Reload number: 2
    Reload reason: manual
    Finished: Yes
    Packs: Default, Fabric Mods, VanillaTweaks_r994603.zip

-- System Details --
Details:
    Minecraft Version: 1.17
    Minecraft Version ID: 1.17
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 16.0.1, Microsoft
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
    Memory: 606965632 bytes (578 MiB) / 1509949440 bytes (1440 MiB) up to 2147483648 bytes (2048 MiB)
    CPUs: 4
    Processor Vendor: GenuineIntel
    Processor Name: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz
    Identifier: Intel64 Family 6 Model 42 Stepping 7
    Microarchitecture: Sandy Bridge (Client)
    Frequency (GHz): 2.49
    Number of physical packages: 1
    Number of physical CPUs: 4
    Number of logical CPUs: 4
    Graphics card <a href='/0'>#0</a> name: AMD Radeon 6600M and 6700M Series
    Graphics card <a href='/0'>#0</a> vendor: Advanced Micro Devices, Inc. (0x1002)
    Graphics card <a href='/0'>#0</a> VRAM (MB): 512.00
    Graphics card <a href='/0'>#0</a> deviceId: 0x6741
    Graphics card <a href='/0'>#0</a> versionInfo: DriverVersion=15.201.1151.1008
    Memory slot <a href='/0'>#0</a> capacity (MB): 2048.00
    Memory slot <a href='/0'>#0</a> clockSpeed (GHz): 1.33
    Memory slot <a href='/0'>#0</a> type: DDR3
    Memory slot <a href='/1'>#1</a> capacity (MB): 2048.00
    Memory slot <a href='/1'>#1</a> clockSpeed (GHz): 1.33
    Memory slot <a href='/1'>#1</a> type: DDR3
    Memory slot <a href='/2'>#2</a> capacity (MB): 4096.00
    Memory slot <a href='/2'>#2</a> clockSpeed (GHz): 1.33
    Memory slot <a href='/2'>#2</a> type: DDR3
    Memory slot <a href='/3'>#3</a> capacity (MB): 4096.00
    Memory slot <a href='/3'>#3</a> clockSpeed (GHz): 1.33
    Memory slot <a href='/3'>#3</a> type: DDR3
    Virtual memory max (MB): 14119.73
    Virtual memory used (MB): 10423.68
    Swap memory total (MB): 1856.00
    Swap memory used (MB): 609.04
    JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    Fabric Mods: 
        apoli: Apoli 1.0.3
        blue_endless_jankson: jankson 1.2.1
        calio: Calio 1.0.1
        cardinal-components-base: Cardinal Components API (base) 3.0.0
        cardinal-components-entity: Cardinal Components API (entities) 3.0.0
        cloth-basic-math: Cloth Basic Math 0.5.1
        cloth-config2: Cloth Config v4 5.0.34
        diggusmaximus: Diggus Maximus 1.4.5-1.17
        fabric: Fabric API 0.34.9+1.17
        fabric-api-base: Fabric API Base 0.3.0+a02b4463d5
        fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.0.2+a02b4463d5
        fabric-biome-api-v1: Fabric Biome API (v1) 3.1.11+9e521e13d5
        fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.5+a02b4463d5
        fabric-command-api-v1: Fabric Command API (v1) 1.1.1+a02b4463d5
        fabric-commands-v0: Fabric Commands (v0) 0.2.2+92519afad5
        fabric-containers-v0: Fabric Containers (v0) 0.1.12+a02b4463d5
        fabric-content-registries-v0: Fabric Content Registries (v0) 0.2.2+a02b4463d5
        fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.5+be9da310d5
        fabric-dimensions-v1: Fabric Dimensions API (v1) 2.0.10+a02b4463d5
        fabric-entity-events-v1: Fabric Entity Events (v1) 1.1.0+a02b4463d5
        fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.8+a02b4463d5
        fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.1+92519afad5
        fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.6+a02b4463d5
        fabric-item-api-v1: Fabric Item API (v1) 1.2.4+a02b4463d5
        fabric-item-groups-v0: Fabric Item Groups (v0) 0.2.10+b7ab6121d5
        fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.4+a02b4463d5
        fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.2+36b77c3ed5
        fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.4.4+a02b4463d5
        fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.4+a02b4463d5
        fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.3+92519afad5
        fabric-models-v0: Fabric Models (v0) 0.3.0+a02b4463d5
        fabric-networking-api-v1: Fabric Networking API (v1) 1.0.11+b7ab6121d5
        fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.11+a02b4463d5
        fabric-networking-v0: Fabric Networking (v0) 0.3.2+92519afad5
        fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.10.9+b7ab6121d5
        fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.3+a02b4463d5
        fabric-particles-v1: Fabric Particles (v1) 0.2.4+a02b4463d5
        fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.7.9+a02b4463d5
        fabric-renderer-api-v1: Fabric Renderer API (v1) 0.4.2+a02b4463d5
        fabric-renderer-indigo: Fabric Renderer - Indigo 0.4.8+a02b4463d5
        fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.0+a02b4463d5
        fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.5+a02b4463d5
        fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.1.13+a02b4463d5
        fabric-rendering-v0: Fabric Rendering (v0) 1.1.2+92519afad5
        fabric-rendering-v1: Fabric Rendering (v1) 1.6.0+a02b4463d5
        fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.7+b7ab6121d5
        fabric-screen-api-v1: Fabric Screen API (v1) 1.0.3+b7ab6121d5
        fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.8+a02b4463d5
        fabric-structure-api-v1: Fabric Structure API (v1) 1.1.10+be9da310d5
        fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.1.4+a02b4463d5
        fabric-textures-v0: Fabric Textures (v0) 1.0.6+a02b4463d5
        fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.2.12+b7ab6121d5
        fabricloader: Fabric Loader 0.11.3
        fallflyinglib: FallFlyingLib 3.0.0-beta.2
        java: OpenJDK 64-Bit Server VM 16
        kyrptconfig: Kytpt Config 1.1.10-1.17
        minecraft: Minecraft 1.17
        origins: Origins 1.0.2
        playerabilitylib: Pal 1.3.0-nightly.1.17-rc1
        reach-entity-attributes: Reach Entity Attributes 2.1.1
        wurst: Wurst Client v7.15.3-MC1.17
    Launched Version: fabric-loader-0.11.3-1.17
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: AMD Radeon 6600M and 6700M Series GL version 3.2.13399 Core Profile Forward-Compatible Context 15.201.1151.1008, ATI Technologies Inc.
    Window size: 1920x1017
    GL Caps: Using framebuffer using OpenGL 3.2
    GL debug messages: 
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fabric'
    Type: Client (map_client.txt)
    Graphics mode: fast
    Resource Packs: vanilla, Fabric Mods, file/VanillaTweaks_r994603.zip
    Current Language: English (US)
    CPU: 4x Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz
@TheWienerMaster commented on July 9th 2021 Contributor

Duplicate of #432.