refinedmods/refinedstorage2

CTD Searching RS grid while having items rapidly enter and exit the system

Closed this issue · 3 comments

Describe the bug

Environment: Fabric 1.20.1, RS2 Milestone 3.2, Extended Drawers 2.1.1

Entering a search query in the RS2 grid while a connected Extended Drawers setup (connected with an external storage interface + access point) that is constantly pulling and pushing single items into connected drawers (important that it's going from an empty to 1-64 stack state then back to 0 repeatedly) will cause the client to CTD or infrequently timeout from server.

How can we reproduce this bug or crash?

  1. Setup simple RS2 system

  2. Connect it to extended drawers using an external storage interface + access point

  3. Continuously input and remove a single item from a connected drawer/ multiple drawers

  4. Search for something inside the grid or generally interact with it

  5. CTD / Server timeout (Netty)

Crash.mov

What Minecraft version is this happening on?

Minecraft 1.20.1

What Forge or Fabric version is this happening on?

0.15.6 Fabric Loader, Fabric API 0.92.0

What Refined Storage version is this happening on?

Milestone 3.2

Relevant log output

---- Minecraft Crash Report ----
// This doesn't make any sense!

Time: 2024-02-19 20:23:07
Description: mouseClicked event handler

java.util.ConcurrentModificationException
	at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1597)
	at java.base/java.util.HashMap$ValueIterator.next(HashMap.java:1625)
	at com.refinedmods.refinedstorage2.api.grid.view.GridViewImpl.sort(GridViewImpl.java:104)
	at com.refinedmods.refinedstorage2.api.grid.view.GridViewImpl.setFilterAndSort(GridViewImpl.java:76)
	at com.refinedmods.refinedstorage2.platform.common.grid.AbstractGridContainerMenu.onSearchTextChanged(AbstractGridContainerMenu.java:220)
	at com.refinedmods.refinedstorage2.platform.common.grid.AbstractGridContainerMenu.lambda$registerViewUpdatingListener$3(AbstractGridContainerMenu.java:213)
	at com.refinedmods.refinedstorage2.platform.common.grid.screen.GridSearchBoxWidget.lambda$new$1(GridSearchBoxWidget.java:36)
	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
	at com.refinedmods.refinedstorage2.platform.common.grid.screen.GridSearchBoxWidget.lambda$new$2(GridSearchBoxWidget.java:36)
	at net.minecraft.class_342.method_1874(class_342.java:148)
	at net.minecraft.class_342.method_1883(class_342.java:254)
	at net.minecraft.class_342.method_25348(class_342.java:370)
	at net.minecraft.class_339.method_25402(class_339.java:189)
	at com.refinedmods.refinedstorage2.platform.common.support.widget.SearchFieldWidget.method_25402(SearchFieldWidget.java:28)
	at net.minecraft.class_4069.method_25402(class_4069.java:38)
	at net.minecraft.class_465.method_25402(class_465.java:290)
	at com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen.method_25402(AbstractBaseScreen.java:279)
	at com.refinedmods.refinedstorage2.platform.common.grid.screen.AbstractGridScreen.method_25402(AbstractGridScreen.java:475)
	at net.minecraft.class_312.method_1611(class_312.java:98)
	at net.minecraft.class_437.method_25412(class_437.java:409)
	at net.minecraft.class_312.method_1601(class_312.java:98)
	at net.minecraft.class_312.method_22686(class_312.java:169)
	at net.minecraft.class_1255.execute(class_1255.java:102)
	at net.minecraft.class_312.method_22684(class_312.java:169)
	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:3403)
	at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:201)
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:219)
	at net.minecraft.class_1041.method_15998(class_1041.java:288)
	at net.minecraft.class_310.method_1523(class_310.java:1241)
	at net.minecraft.class_310.method_1514(class_310.java:802)
	at net.minecraft.client.main.Main.main(Main.java:250)
	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)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:87)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:130)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)


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

-- Head --
Thread: Render thread
Stacktrace:
	at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1597)
	at java.base/java.util.HashMap$ValueIterator.next(HashMap.java:1625)
	at com.refinedmods.refinedstorage2.api.grid.view.GridViewImpl.sort(GridViewImpl.java:104)
	at com.refinedmods.refinedstorage2.api.grid.view.GridViewImpl.setFilterAndSort(GridViewImpl.java:76)
	at com.refinedmods.refinedstorage2.platform.common.grid.AbstractGridContainerMenu.onSearchTextChanged(AbstractGridContainerMenu.java:220)
	at com.refinedmods.refinedstorage2.platform.common.grid.AbstractGridContainerMenu.lambda$registerViewUpdatingListener$3(AbstractGridContainerMenu.java:213)
	at com.refinedmods.refinedstorage2.platform.common.grid.screen.GridSearchBoxWidget.lambda$new$1(GridSearchBoxWidget.java:36)
	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
	at com.refinedmods.refinedstorage2.platform.common.grid.screen.GridSearchBoxWidget.lambda$new$2(GridSearchBoxWidget.java:36)
	at net.minecraft.class_342.method_1874(class_342.java:148)
	at net.minecraft.class_342.method_1883(class_342.java:254)
	at net.minecraft.class_342.method_25348(class_342.java:370)
	at net.minecraft.class_339.method_25402(class_339.java:189)
	at com.refinedmods.refinedstorage2.platform.common.support.widget.SearchFieldWidget.method_25402(SearchFieldWidget.java:28)
	at net.minecraft.class_4069.method_25402(class_4069.java:38)
	at net.minecraft.class_465.method_25402(class_465.java:290)
	at com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen.method_25402(AbstractBaseScreen.java:279)
	at com.refinedmods.refinedstorage2.platform.common.grid.screen.AbstractGridScreen.method_25402(AbstractGridScreen.java:475)
	at net.minecraft.class_312.method_1611(class_312.java:98)
	at net.minecraft.class_437.method_25412(class_437.java:409)
	at net.minecraft.class_312.method_1601(class_312.java:98)
	at net.minecraft.class_312.method_22686(class_312.java:169)
	at net.minecraft.class_1255.execute(class_1255.java:102)
	at net.minecraft.class_312.method_22684(class_312.java:169)
	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:3403)
	at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:201)
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:219)

-- Affected screen --
Details:
	Screen name: com.refinedmods.refinedstorage2.platform.common.grid.screen.GridScreen
Stacktrace:
	at net.minecraft.class_437.method_25412(class_437.java:409)
	at net.minecraft.class_312.method_1601(class_312.java:98)
	at net.minecraft.class_312.method_22686(class_312.java:169)
	at net.minecraft.class_1255.execute(class_1255.java:102)
	at net.minecraft.class_312.method_22684(class_312.java:169)
	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:3403)
	at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:201)
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:219)
	at net.minecraft.class_1041.method_15998(class_1041.java:288)
	at net.minecraft.class_310.method_1523(class_310.java:1241)
	at net.minecraft.class_310.method_1514(class_310.java:802)
	at net.minecraft.client.main.Main.main(Main.java:250)
	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)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:87)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:130)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)

-- Affected level --
Details:
	All players: 1 total; [class_746['Jake_Create'/110265, l='ClientLevel', x=-2032.45, y=66.06, z=746.23]]
	Chunk stats: 4096, 2177
	Level dimension: minecraft:overworld
	Level spawn location: World: (194,111,164), Section: (at 2,15,4 in 12,6,10; chunk contains blocks 192,-64,160 to 207,319,175), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
	Level time: 251711212 game time, 265325181 day time
	Server brand: fabric
	Server type: Non-integrated multiplayer server
Stacktrace:
	at net.minecraft.class_638.method_8538(class_638.java:458)
	at net.minecraft.class_310.method_1587(class_310.java:2406)
	at net.minecraft.class_310.method_1514(class_310.java:821)
	at net.minecraft.client.main.Main.main(Main.java:250)
	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)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:87)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:130)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)

-- Last reload --
Details:
	Reload number: 1
	Reload reason: initial
	Finished: Yes
	Packs: vanilla, fabric, Moonlight Mods Dynamic Assets, file/Stay_True_1.20.zip, file/VanillaTweaks_r584298.zip, file/Flower Adornments for Armor (Assets) [v1.0] [MC1.20].zip, file/Bushy_Leaves_by_F0RZEL.zip, vinery:bushy_leaves, continuity:default, continuity:glass_pane_culling_fix, diagonalblocks:default_block_models

-- System Details --
Details:
	Minecraft Version: 1.20.1
	Minecraft Version ID: 1.20.1
	Operating System: Windows 11 (amd64) version 10.0
	Java Version: 17.0.5, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
	Memory: 1352835928 bytes (1290 MiB) / 5544869888 bytes (5288 MiB) up to 8589934592 bytes (8192 MiB)
	CPUs: 32
	Processor Vendor: AuthenticAMD
	Processor Name: AMD Ryzen 9 7950X 16-Core Processor            
	Identifier: AuthenticAMD Family 25 Model 97 Stepping 2
	Microarchitecture: Zen 3
	Frequency (GHz): 4.49
	Number of physical packages: 1
	Number of physical CPUs: 16
	Number of logical CPUs: 32
	Graphics card #0 name: Parsec Virtual Display Adapter
	Graphics card #0 vendor: Parsec Cloud, Inc.
	Graphics card #0 VRAM (MB): 0.00
	Graphics card #0 deviceId: unknown
	Graphics card #0 versionInfo: DriverVersion=0.38.0.0
	Graphics card #1 name: AMD Radeon(TM) Graphics
	Graphics card #1 vendor: Advanced Micro Devices, Inc. (0x1002)
	Graphics card #1 VRAM (MB): 512.00
	Graphics card #1 deviceId: 0x164e
	Graphics card #1 versionInfo: DriverVersion=31.0.24002.92
	Graphics card #2 name: AMD Radeon RX 7900 XTX
	Graphics card #2 vendor: Advanced Micro Devices, Inc. (0x1002)
	Graphics card #2 VRAM (MB): 4095.00
	Graphics card #2 deviceId: 0x744c
	Graphics card #2 versionInfo: DriverVersion=31.0.24002.92
	Memory slot #0 capacity (MB): 32768.00
	Memory slot #0 clockSpeed (GHz): 6.00
	Memory slot #0 type: Unknown
	Memory slot #1 capacity (MB): 32768.00
	Memory slot #1 clockSpeed (GHz): 6.00
	Memory slot #1 type: Unknown
	Virtual memory max (MB): 65174.39
	Virtual memory used (MB): 38695.14
	Swap memory total (MB): 512.00
	Swap memory used (MB): 2.43
	JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms512m -Xmx8192m
	Fabric Mods: 
		advanced-ui-scale: Advanced UI Scaling 1.2.1-1.20.1
		ambientsounds: AmbientSounds 5.3.5
		animatica: Animatica 0.6+1.20
		appleskin: AppleSkin 2.5.1+mc1.20
		architectury: Architectury 9.1.13
		athena: Athena 3.1.1
		attributefix: AttributeFix 21.0.4
		bakery: Bakery 1.1.3
		balm-fabric: Balm 7.2.1
		beautify: Beautify 1.1.0+1.20
		bellsandwhistles: Create: Bells & Whistles 0.4.5
		betteradvancements: Better Advancements 0.3.2.162
		betteranimationscollection: Better Animations Collection 8.0.0
		betterdeserttemples: YUNG's Better Desert Temples 1.20-Fabric-3.0.3
			org_reflections_reflections: reflections 0.10.2
		betterdungeons: YUNG's Better Dungeons 1.20-Fabric-4.0.3
		betterf3: BetterF3 7.0.2
		betterfortresses: YUNG's Better Nether Fortresses 1.20-Fabric-2.0.5
		betterjungletemples: YUNG's Better Jungle Temples 1.20-Fabric-2.0.4
		bettermineshafts: YUNG's Better Mineshafts 1.20-Fabric-4.0.4
		betteroceanmonuments: YUNG's Better Ocean Monuments 1.20-Fabric-3.0.4
		betterstats: Better Statistics Screen 3.8.1+fabric-1.20.1
			tcdcommons: TCD Commons API 3.8.1+fabric-1.20.1
		betterstrongholds: YUNG's Better Strongholds 1.20-Fabric-4.0.3
		bettertridents: Better Tridents 8.0.1
		brewery: Brewery 1.1.2
		bushierflowers: Bushier Flowers 0.0.3-1.20.1
		bwncr: Bad Wither No Cookie Reloaded 3.17.0
		candlelight: Candlelight 1.2.8
		capes: Capes 1.5.2+1.20
		cardinal-components: Cardinal Components API 5.2.2
			cardinal-components-base: Cardinal Components API (base) 5.2.2
			cardinal-components-block: Cardinal Components API (blocks) 5.2.2
			cardinal-components-chunk: Cardinal Components API (chunks) 5.2.2
			cardinal-components-entity: Cardinal Components API (entities) 5.2.2
			cardinal-components-item: Cardinal Components API (items) 5.2.2
			cardinal-components-level: Cardinal Components API (world saves) 5.2.2
			cardinal-components-scoreboard: Cardinal Components API (scoreboard) 5.2.2
			cardinal-components-world: Cardinal Components API (worlds) 5.2.2
		carryon: Carry On 2.1.2.7
		charmofundying: Charm of Undying 6.4.5+1.20.1
		chefsdelight: Chefs Delight 1.0.3-fabric-1.20.1
		chipped: Chipped 3.0.4
		clickthrough: ClickThrough 1.20-fabric0.83.0-0.4.1
			crowdin-translate: CrowdinTranslate 1.4+1.19.3
			gbfabrictools: GBfabrictools 1.4+1.20
		clientcrafting: clientcrafting Mod 1.20.1-1.8
		cloth-config: Cloth Config v11 11.1.118
			cloth-basic-math: cloth-basic-math 0.6.1
		cloudboots: Cloud Boots 1.20.1-fabric-3.0.0
		clutter: Clutter 1.20-0.5.7
		collective: Collective 7.30
		comforts: Comforts 6.3.5+1.20.1
			spectrelib: SpectreLib 0.13.15+1.20.1
		connectiblechains: Connectible Chains 2.2.1+1.20.1
		connectivity: Connectivity Mod 1.20.1-4.9
		continuity: Continuity 3.0.0-beta.4+1.20.1
		copperhopper: Copper Hopper 0.5.1+1.20.1
		create: Create 0.5.1-d-build.1161+mc1.20.1
			com_google_code_findbugs_jsr305: jsr305 3.0.2
			flywheel: Flywheel 0.6.10
			milk: Milk Lib 1.2.60
				dripstone_fluid_lib: Dripstone Fluid Lib 3.0.2
			porting_lib_accessors: Porting Lib Accessors 2.1.1127+1.20
			porting_lib_base: Porting Lib Base 2.1.1127+1.20
				porting_lib_attributes: Porting Lib Attributes 2.1.1127+1.20
				porting_lib_common: Porting Lib Common 2.1.1127+1.20
				porting_lib_lazy_registration: Porting Lib Lazy Register 2.1.1127+1.20
				porting_lib_utility: Porting Lib Utility 2.1.1127+1.20
			porting_lib_brewing: Porting Lib Brewing 2.1.1127+1.20
			porting_lib_client_events: Porting Lib Client Events 2.1.1127+1.20
			porting_lib_entity: Porting Lib Entity 2.1.1127+1.20
				porting_lib_mixin_extensions: Porting Lib Mixin Extensions 2.1.1127+1.20
			porting_lib_extensions: Porting Lib Extensions 2.1.1127+1.20
			porting_lib_fake_players: Porting Lib Fake Players 2.1.1127+1.20
			porting_lib_models: Porting Lib Models 2.1.1127+1.20
			porting_lib_networking: Porting Lib Networking 2.1.1127+1.20
			porting_lib_obj_loader: Porting Lib Obj Loader 2.1.1127+1.20
				porting_lib_model_loader: Porting Lib Model Loader 2.1.1127+1.20
			porting_lib_tags: Porting Lib Tags 3.0
			porting_lib_tool_actions: Porting Lib Tool Actions 2.1.1127+1.20
				porting_lib_core: Porting Lib Core 2.1.1127+1.20
				porting_lib_gametest: Porting Lib GameTest 2.1.1127+1.20
			porting_lib_transfer: Porting Lib Transfer 2.1.1127+1.20
			reach-entity-attributes: Reach Entity Attributes 2.4.0
			registrate-fabric: Registrate for Fabric 1.3.62-MC1.20.1
				porting_lib_data: Porting Lib Data 2.1.1090+1.20
				porting_lib_model_generators: Porting Lib Model Generators 2.1.1090+1.20
					porting_lib_model_materials: Porting Lib Model Materials 2.1.1090+1.20
		create_enchantment_industry: Create Enchantment Industry 1.2.12
			create_dragon_lib: Create Dragon Lib 1.4.1
		create_high_pressure: Create: High Pressure 1.1.0
		create_jetpack: Create Jetpack 4.1.0
			flightlib: Flight Lib 2.0.3
		create_more_armor_fabric: Create: More Armor Fabric 1.0.4b
		create_oxidized: Create: Oxidized 0.1.1+1.20.1
			terraform-wood-api-v1: Terraform Wood API (v1) 7.0.1
		create_structures: Create: Structures 1.1.0
		createaddition: Create Crafts & Additions 0.9.0
		createbigcannons: Create Big Cannons 0.5.3.b-nightly-8a45d8e
			ritchiesprojectilelib: Ritchie's Projectile Library 1.0.0-369e88d+1.20.1-fabric
		createdeco: Create Deco 2.0.1-1.20.1-fabric
		createdieselgenerators: Create Diesel Generators 2.1.3
		createreibugfix: CreateFabric&REIBugFix 0.1.0-create0.5.1-mc1.20.x
			conditional-mixin: conditional mixin 0.3.2
		creativecore: CreativeCore 2.11.15
			net_minecraftforge_eventbus: eventbus 6.0.3
		ctov: ChoiceTheorem's Overhauled Village 3.4.2
		cupboard: cupboard 1.20.1-2.3
		dark-loading-screen: Dark Loading Screen 1.6.14
		decorative_blocks: Decorative Blocks 4.1.3
		delightfulcreators: Delightful Creators 1.1.8
		detailab: Detail Armor Bar 2.6.3+1.20.1-fabric
		diagonalfences: Diagonal Fences 8.1.3
		diagonalwindows: Diagonal Windows 8.1.3
			diagonalblocks: Diagonal Blocks 8.0.3
		doapi: Lets Do Api 1.2.8
		doubledoors: Double Doors 5.2
		eatinganimationid: Eating Animation 1.20+1.9.5
		elytra-trims: Elytra Trims 2.0.0
			mixinsquared: MixinSquared 0.1.2-beta.4
		elytraslot: Elytra Slot 6.3.0+1.20.1
		elytrautilities: Elytra Utilities 2.2.1+1.20.1
		emotecraft: Emotecraft 2.2.7-b.build.50
			bendy-lib: Bendy api 4.0.0
			player-animator: Player Animator 1.0.2-rc1+1.20
		enchantinginfuser: Enchanting Infuser 8.0.2
		enhancedblockentities: Enhanced Block Entities 0.9+1.20
			advanced_runtime_resource_pack: Runtime Resource Pack 0.6.7
			spruceui: SpruceUI 5.0.0+1.20
		entity_texture_features: Entity Texture Features 5.2.3
			org_apache_httpcomponents_httpmime: httpmime 4.5.10
		entityculling: EntityCulling-Fabric 1.6.2-mc1.20.1
		expandeddelight: Expanded Delight 0.3.0.2
		explorify: Explorify v1.3.0-mc1.20
		extended_drawers: Extended Drawers 2.1.1+mc.1.20.1
			config_toolkit: ConfigToolkit 1.0.0
				io_determann_shadow-api-17: shadow-api-17 0.1.1
				net_fabricmc_javapoet: javapoet 0.1.0
			graphlib: Graph Lib 1.4.0+1.20
				kmodlib-overlay: KModLib Overlay 0.2.12+1.20
				libnetworkstack: Lib Network Stack 0.10.0
			noindium: No Indium? 1.1.0+1.20
		extendedgears: Extended Cogwheels 2.1.0-1.20.1-0.5.1.c-fabric
		fabric-api: Fabric API 0.92.0+1.20.1
			fabric-api-base: Fabric API Base 0.4.31+1802ada577
			fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.36+1802ada577
			fabric-biome-api-v1: Fabric Biome API (v1) 13.0.13+1802ada577
			fabric-block-api-v1: Fabric Block API (v1) 1.0.11+1802ada577
			fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.1+1802ada577
			fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.41+1802ada577
			fabric-client-tags-api-v1: Fabric Client Tags 1.1.2+1802ada577
			fabric-command-api-v1: Fabric Command API (v1) 1.2.34+f71b366f77
			fabric-command-api-v2: Fabric Command API (v2) 2.2.13+1802ada577
			fabric-commands-v0: Fabric Commands (v0) 0.2.51+df3654b377
			fabric-containers-v0: Fabric Containers (v0) 0.1.64+df3654b377
			fabric-content-registries-v0: Fabric Content Registries (v0) 4.0.11+1802ada577
			fabric-convention-tags-v1: Fabric Convention Tags 1.5.5+1802ada577
			fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.19+1802ada577
			fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.0.0+de0fd6d177
			fabric-data-generation-api-v1: Fabric Data Generation API (v1) 12.3.4+1802ada577
			fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.54+1802ada577
			fabric-entity-events-v1: Fabric Entity Events (v1) 1.6.0+1c78457f77
			fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.6.2+1802ada577
			fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.63+df3654b377
			fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.40+1802ada577
			fabric-item-api-v1: Fabric Item API (v1) 2.1.28+1802ada577
			fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.12+1802ada577
			fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.37+1802ada577
			fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.35+df3654b377
			fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.22+1802ada577
			fabric-loot-api-v2: Fabric Loot API (v2) 1.2.1+1802ada577
			fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.45+9e7660c677
			fabric-message-api-v1: Fabric Message API (v1) 5.1.9+1802ada577
			fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.50+1802ada577
			fabric-model-loading-api-v1: Fabric Model Loading API (v1) 1.0.3+1802ada577
			fabric-models-v0: Fabric Models (v0) 0.4.2+9386d8a777
			fabric-networking-api-v1: Fabric Networking API (v1) 1.3.11+1802ada577
			fabric-networking-v0: Fabric Networking (v0) 0.3.51+df3654b377
			fabric-object-builder-api-v1: Fabric Object Builder API (v1) 11.1.3+1802ada577
			fabric-particles-v1: Fabric Particles (v1) 1.1.2+1802ada577
			fabric-recipe-api-v1: Fabric Recipe API (v1) 1.0.21+1802ada577
			fabric-registry-sync-v0: Fabric Registry Sync (v0) 2.3.3+1802ada577
			fabric-renderer-api-v1: Fabric Renderer API (v1) 3.2.1+1802ada577
			fabric-renderer-indigo: Fabric Renderer - Indigo 1.5.1+1802ada577
			fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.46+df3654b377
			fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.37+92a0d36777
			fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.28+1802ada577
			fabric-rendering-v0: Fabric Rendering (v0) 1.1.49+df3654b377
			fabric-rendering-v1: Fabric Rendering (v1) 3.0.8+1802ada577
			fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.8+1802ada577
			fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.10+1802ada577
			fabric-screen-api-v1: Fabric Screen API (v1) 2.0.8+1802ada577
			fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.30+1802ada577
			fabric-sound-api-v1: Fabric Sound API (v1) 1.0.13+1802ada577
			fabric-transfer-api-v1: Fabric Transfer API (v1) 3.3.4+1802ada577
			fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 4.3.1+1802ada577
		fabric-language-kotlin: Fabric Language Kotlin 1.10.17+kotlin.1.9.22
			org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.9.22
			org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.9.22
			org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.9.22
			org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.9.22
			org_jetbrains_kotlinx_atomicfu-jvm: atomicfu-jvm 0.23.1
			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.5.0
			org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm: kotlinx-serialization-cbor-jvm 1.6.2
			org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.6.2
			org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.6.2
		fabricloader: Fabric Loader 0.15.6
			mixinextras: MixinExtras 0.3.2
		fallingleaves: Falling Leaves 1.15.4
		farmersdelight: Farmer's Delight 1.20.1-1.4.3
		farmersknives: Farmer's Knives 3.0.2
		faster_entity_animations: FastAnim 1.6
		faux-custom-entity-data: Faux-Custom-Entity-Data 6.0.1
		ferritecore: FerriteCore 6.0.1
		forgeconfigapiport: Forge Config API Port 8.0.0
		freecam: Freecam (Modrinth Edition) 1.2.1+1.20
		friendsandfoes: Friends&Foes 2.0.9
		ftbchunks: FTB Chunks 2001.2.5
		ftblibrary: FTB Library 2001.1.5
		ftbteams: FTB Teams 2001.1.4
		gammautils: Gamma Utils 1.7.16
		geckolib: GeckoLib 4 4.4.2
			com_eliotlash_mclib_mclib: mclib 20
		geodes: More Geodes 1.8.2
		gpumemleakfix: Gpu memory leak fix mod 1.20.1-1.8
		guardvillagers: GuardVillagers 2.0.9-1.20.1
		handcrafted: Handcrafted 3.0.6
		herbalbrews: Herbal Brews 1.0.3-1
		hybrid-aquatic: Hybrid Aquatic 1.2.2
		immediatelyfast: ImmediatelyFast 1.2.10+1.20.4
			net_lenni0451_reflect: Reflect 1.3.2
		immersive_paintings: Immersive Paintings 0.6.7+1.20.1
		indium: Indium 1.0.30+mc1.20.4
		inventorysorter: Inventory Sorter 1.9.0-1.20
			kyrptconfig: Kyrpt Config 1.5.6-1.20
		iris: Iris 1.6.17
			io_github_douira_glsl-transformer: glsl-transformer 2.0.0-pre13
			org_anarres_jcpp: jcpp 1.4.14
			org_antlr_antlr4-runtime: antlr4-runtime 4.11.1
		irisflw: Iris Flywheel Compat 0.2.4
		itemcollectors: Item Collectors 1.1.9
		jade: Jade 11.8.0
		jadeaddons: Jade Addons 5.2.3
		java: Java HotSpot(TM) 64-Bit Server VM 17
		krypton: Krypton 0.2.3
			com_velocitypowered_velocity-native: velocity-native 3.2.0-SNAPSHOT
		lazydfu: LazyDFU 0.1.3
		lighty: Lighty 2.1.2+1.20.1
		litematica: Litematica 0.15.3
		lithium: Lithium 0.11.2
		lithostitched: Lithostitched 1.1.5
		lootr: Lootr 0.7.29.75
		malilib: MaLiLib 0.16.3
		mcwbridges: Macaw's Bridges 2.1.0
		mcwfences: Macaw's Fences and Walls 1.1.0
		memoryleakfix: Memory Leak Fix 1.1.5
		midnightlib: MidnightLib 1.4.1
		minecraft: Minecraft 1.20.1
		moblassos: Mob Lassos 8.0.1
			extensibleenums: Extensible Enums 7.0.1
		modernfix: ModernFix 5.13.0+mc1.20.1
		modmenu: Mod Menu 7.2.2
		moonlight: Moonlight 1.20-2.9.17
		mousetweaks: Mouse Tweaks 2.25
		mr_ctov_beautifycompat: CTOV - Beautify Compat 2.0
		mr_ctov_chefsdelightcompat: CTOV - Chef's delight Compat 2.0
		mr_ctov_createstructures: CTOV - Create: Structures 1.0
		mr_ctov_farmersdelightcompat: CTOV - Farmer Delight Compat 2.1
		mr_ctov_friendsandfoescompat: CTOV - Friends and Foes Compat 2.0
		mr_devins_recipes: Devin's Recipes 1.0.1+pf15
		mr_ns_fdrc: Nature's Spirit - Farmer's Delight Recipe Compat 0.0.1
		mr_panda_temple: Panda Temple 1-V1
		mr_stellarity: Stellarity 2.0e
		mythicupgrades: Mythic Upgrades 2.4.2+mc1.20.1
		natures_spirit: Nature's Spirit 1.4.2-1.20.1
		naturescompass: Nature's Compass 1.20.1-2.2.3-fabric
		nerb: Not Enough Recipe Book 0.3
		nochatreports: No Chat Reports 1.20.1-v2.2.2
		notenoughanimations: NotEnoughAnimations 1.7.1
		observable: Observable 4.4.1
		owo: oωo 0.11.2+1.20
			blue_endless_jankson: jankson 1.2.2
		packetfixer: Packet Fixer 1.2.7
		presencefootsteps: Presence Footsteps 1.9.1
			kirin: Kirin UI 1.15.4+1.20
		puzzleslib: Puzzles Lib 8.1.17
			puzzlesaccessapi: Puzzles Access Api 8.0.7
		quickshulker: Quick Shulker 1.4.0-1.20
			shulkerutils: shulkerutils 1.0.4-1.19
		railways: Create: Steam 'n' Rails 1.5.1+fabric-mc1.20.1
			mm: Manningham Mills 2.3
		recipeessentials: recipeessentials Mod 1.20.1-3.2
		redirector: Redirector 1.20.1-4.4.0
		reeses-sodium-options: Reese's Sodium Options 1.7.2+mc1.20.1-build.101
		refinedstorage2: Refined Storage 2 2.0.0-milestone.3.2
			com_refinedmods_refinedstorage2_refinedstorage2-query-parser_: refinedstorage2-query-parser 2.0.0-milestone.3.2
			refinedstorage2-core-api: Refined Storage 2 Core API 2.0.0-milestone.3.2
			refinedstorage2-grid-api: Refined Storage 2 Grid API 2.0.0-milestone.3.2
			refinedstorage2-network: Refined Storage 2 Network 2.0.0-milestone.3.2
			refinedstorage2-network-api: Refined Storage 2 Network API 2.0.0-milestone.3.2
			refinedstorage2-resource-api: Refined Storage 2 Resource API 2.0.0-milestone.3.2
			refinedstorage2-storage-api: Refined Storage 2 Storage API 2.0.0-milestone.3.2
			team_reborn_energy: Energy 3.0.0
		resourcefullib: Resourceful Lib 2.1.23
			com_teamresourceful_bytecodecs: bytecodecs 1.0.2
			com_teamresourceful_yabn: yabn 1.0.3
		respawnablepets: Respawnable Pets 1.20-1
		roughlyenoughitems: Roughly Enough Items 12.0.684
			error_notifier: Error Notifier 1.0.9
		roughlyenoughprofessions: Roughly Enough Professions 2.0.2
		roughlyenoughresources: Roughly Enough Resources 2.9.0
		scarecrowsterritory: Scarecrows' Territory 1.1.11
		screenshotclipboard: Screenshot to Clipboard 1.0.9
		showmeyourskin: Show Me Your Skin! 1.6.11+1.20
			cicada: CICADA 0.4.0
		shulkerboxtooltip: Shulker Box Tooltip 4.0.4+1.20.1
		skinlayers3d: 3d-Skin-Layers 1.6.2
		sliceanddice: Create Slice & Dice 3.0.0
		smallships: Small Ships 2.0.0-b1.0
		sodium: Sodium 0.5.8+mc1.20.1
		sodium-extra: Sodium Extra 0.5.4+mc1.20.1-build.115
			caffeineconfig: CaffeineConfig 1.3.0+1.17
		sound_physics_remastered: Sound Physics Remastered 1.20.1-1.3.1
		spawn: Spawn 1.0.3-fabric
		spawnermod: Enhanced Mob Spawners 1.2.4
		sspb: Sodium Shadowy Path Blocks 3.2.1
		stackrefill: Stack Refill 4.2
		status-effect-bars: Status Effect Bars 1.0.3
		structory: Structory 1.3.4
		structureessentials: Structure Essentials Mod 1.20.1-3.2
		supermartijn642configlib: SuperMartijn642's Config Lib 1.1.8+a
		supermartijn642corelib: SuperMartijn642's Core Lib 1.1.16
		supplementaries: Supplementaries 1.20-2.7.36
		templates: Templates 2 2.1.1+1.20.1
		terrablender: TerraBlender 3.0.1.4
			com_electronwill_night-config_core: core 3.6.7
			com_electronwill_night-config_toml: toml 3.6.7
		timecontrol: TimeControl 1.6.0
		travelersbackpack: Traveler's Backpack 1.20.1-9.1.9
		trimmable_tools: Trimmable Tools 1.0.4
		trinkets: Trinkets 3.7.1
		triqueapi: TriQue API mc1.20.1-1.1.0
		trowel: Trowel 1.2.1@1.20
		universalenchants: Universal Enchants 8.0.0
		variantbarrels: Variant Barrels 3.4.1
		variantbookshelves: Variant Bookshelves 2.3.8
		veinmining: Vein Mining 1.3.0+1.20.1
		villagernames: Villager Names 7.3
		vinery: Vinery 1.4.8
		visuality: Visuality 0.7.1+1.20
		voicechat: Simple Voice Chat 1.20.1-2.5.4
		wirelesschargers: Wireless Chargers 1.0.9
		worldedit: WorldEdit 7.2.15+6463-5ca4dff
		yet_another_config_lib_v3: YetAnotherConfigLib 3.2.2+1.20
			com_twelvemonkeys_common_common-image: common-image 3.10.0-SNAPSHOT
			com_twelvemonkeys_common_common-io: common-io 3.10.0-SNAPSHOT
			com_twelvemonkeys_common_common-lang: common-lang 3.10.0-SNAPSHOT
			com_twelvemonkeys_imageio_imageio-core: imageio-core 3.10.0-SNAPSHOT
			com_twelvemonkeys_imageio_imageio-metadata: imageio-metadata 3.10.0-SNAPSHOT
			com_twelvemonkeys_imageio_imageio-webp: imageio-webp 3.10.0-SNAPSHOT
			org_quiltmc_parsers_gson: gson 0.2.1
			org_quiltmc_parsers_json: json 0.2.1
		yungsapi: YUNG's API 1.20-Fabric-4.0.3
			org_javassist_javassist: javassist 3.29.2-GA
		yungsbridges: YUNG's Bridges 1.20-Fabric-4.0.3
		zoomify: Zoomify 2.11.2
			com_akuleshov7_ktoml-core-jvm: ktoml-core-jvm 0.4.1
			dev_isxander_settxi_settxi-core: settxi-core 2.10.6
			dev_isxander_settxi_settxi-kotlinx-serialization: settxi-kotlinx-serialization 2.10.6
	Loaded Shaderpack: ComplementaryUnbound_r5.1.1.zip
		Profile: Custom (+8 options changed by user)
	Flywheel Backend: GL33 Instanced Arrays
	Launched Version: 1.20.1
	Backend library: LWJGL version 3.3.1 SNAPSHOT
	Backend API: AMD Radeon RX 7900 XTX GL version 3.2.0 Core Profile Context 24.1.1.240110, ATI Technologies Inc.
	Window size: 3440x1440
	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: fancy
	Resource Packs: vanilla, fabric, Moonlight Mods Dynamic Assets, file/Stay_True_1.20.zip, file/VanillaTweaks_r584298.zip, file/Flower Adornments for Armor (Assets) [v1.0] [MC1.20].zip (incompatible), file/Bushy_Leaves_by_F0RZEL.zip, vinery:bushy_leaves, continuity:default, continuity:glass_pane_culling_fix
	Current Language: en_gb
	CPU: 32x AMD Ryzen 9 7950X 16-Core Processor

I managed to reproduce it with a minimal setup
the whole system have a total of 20 different stacks of 1 item,
both the importer and exporter have 9 filter set to items in the system
exporter is set to random mode
importer is set to whitelist in order to import only items that can be exported

I had to launch a calculation heavy stuff at the same time to slow down my CPU, but I think that having hundreds of item types make that unecessary
I was unable to reproduce by remplacing the drawers by a chest

steps :

  1. build the following
  2. spam the search bar in the grid connected by the external storage until crash

image

Mod Version
Minecraft 1.20.1
Fabric 0.15.7*
Fabric API 0.92.0
Extended Drawers 2.1.1
RS2 2.0.0-milestone.3.2

* different than op who had 0.15.6

Crash report

---- Minecraft Crash Report ----
// There are four lights!

Time: 2024-02-20 11:09:23
Description: mouseClicked event handler

java.util.ConcurrentModificationException
	at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1597)
	at java.base/java.util.HashMap$ValueIterator.next(HashMap.java:1625)
	at com.refinedmods.refinedstorage2.api.grid.view.GridViewImpl.sort(GridViewImpl.java:104)
	at com.refinedmods.refinedstorage2.api.grid.view.GridViewImpl.setFilterAndSort(GridViewImpl.java:76)
	at com.refinedmods.refinedstorage2.platform.common.grid.AbstractGridContainerMenu.onSearchTextChanged(AbstractGridContainerMenu.java:220)
	at com.refinedmods.refinedstorage2.platform.common.grid.AbstractGridContainerMenu.lambda$registerViewUpdatingListener$3(AbstractGridContainerMenu.java:213)
	at com.refinedmods.refinedstorage2.platform.common.grid.screen.GridSearchBoxWidget.lambda$new$1(GridSearchBoxWidget.java:36)
	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
	at com.refinedmods.refinedstorage2.platform.common.grid.screen.GridSearchBoxWidget.lambda$new$2(GridSearchBoxWidget.java:36)
	at net.minecraft.class_342.method_1874(class_342.java:148)
	at net.minecraft.class_342.method_1852(class_342.java:104)
	at com.refinedmods.refinedstorage2.platform.common.support.widget.SearchFieldWidget.method_25402(SearchFieldWidget.java:35)
	at net.minecraft.class_4069.method_25402(class_4069.java:38)
	at net.minecraft.class_465.method_25402(class_465.java:290)
	at com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen.method_25402(AbstractBaseScreen.java:279)
	at com.refinedmods.refinedstorage2.platform.common.grid.screen.AbstractGridScreen.method_25402(AbstractGridScreen.java:475)
	at net.minecraft.class_312.method_1611(class_312.java:98)
	at net.minecraft.class_437.method_25412(class_437.java:409)
	at net.minecraft.class_312.method_1601(class_312.java:98)
	at net.minecraft.class_312.method_22686(class_312.java:169)
	at net.minecraft.class_1255.execute(class_1255.java:102)
	at net.minecraft.class_312.method_22684(class_312.java:169)
	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:3403)
	at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:201)
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:212)
	at net.minecraft.class_1041.method_15998(class_1041.java:288)
	at net.minecraft.class_310.method_1523(class_310.java:1241)
	at net.minecraft.class_310.method_1514(class_310.java:802)
	at net.minecraft.client.main.Main.main(Main.java:250)
	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)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:87)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:130)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)


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

-- Head --
Thread: Render thread
Stacktrace:
	at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1597)
	at java.base/java.util.HashMap$ValueIterator.next(HashMap.java:1625)
	at com.refinedmods.refinedstorage2.api.grid.view.GridViewImpl.sort(GridViewImpl.java:104)
	at com.refinedmods.refinedstorage2.api.grid.view.GridViewImpl.setFilterAndSort(GridViewImpl.java:76)
	at com.refinedmods.refinedstorage2.platform.common.grid.AbstractGridContainerMenu.onSearchTextChanged(AbstractGridContainerMenu.java:220)
	at com.refinedmods.refinedstorage2.platform.common.grid.AbstractGridContainerMenu.lambda$registerViewUpdatingListener$3(AbstractGridContainerMenu.java:213)
	at com.refinedmods.refinedstorage2.platform.common.grid.screen.GridSearchBoxWidget.lambda$new$1(GridSearchBoxWidget.java:36)
	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
	at com.refinedmods.refinedstorage2.platform.common.grid.screen.GridSearchBoxWidget.lambda$new$2(GridSearchBoxWidget.java:36)
	at net.minecraft.class_342.method_1874(class_342.java:148)
	at net.minecraft.class_342.method_1852(class_342.java:104)
	at com.refinedmods.refinedstorage2.platform.common.support.widget.SearchFieldWidget.method_25402(SearchFieldWidget.java:35)
	at net.minecraft.class_4069.method_25402(class_4069.java:38)
	at net.minecraft.class_465.method_25402(class_465.java:290)
	at com.refinedmods.refinedstorage2.platform.common.support.AbstractBaseScreen.method_25402(AbstractBaseScreen.java:279)
	at com.refinedmods.refinedstorage2.platform.common.grid.screen.AbstractGridScreen.method_25402(AbstractGridScreen.java:475)
	at net.minecraft.class_312.method_1611(class_312.java:98)
	at net.minecraft.class_437.method_25412(class_437.java:409)
	at net.minecraft.class_312.method_1601(class_312.java:98)
	at net.minecraft.class_312.method_22686(class_312.java:169)
	at net.minecraft.class_1255.execute(class_1255.java:102)
	at net.minecraft.class_312.method_22684(class_312.java:169)
	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:3403)
	at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:201)
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:212)

-- Affected screen --
Details:
	Screen name: com.refinedmods.refinedstorage2.platform.common.grid.screen.GridScreen
Stacktrace:
	at net.minecraft.class_437.method_25412(class_437.java:409)
	at net.minecraft.class_312.method_1601(class_312.java:98)
	at net.minecraft.class_312.method_22686(class_312.java:169)
	at net.minecraft.class_1255.execute(class_1255.java:102)
	at net.minecraft.class_312.method_22684(class_312.java:169)
	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:3403)
	at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:201)
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:212)
	at net.minecraft.class_1041.method_15998(class_1041.java:288)
	at net.minecraft.class_310.method_1523(class_310.java:1241)
	at net.minecraft.class_310.method_1514(class_310.java:802)
	at net.minecraft.client.main.Main.main(Main.java:250)
	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)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:87)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:130)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)

-- Affected level --
Details:
	All players: 1 total; [class_746['jonatjano'/167, l='ClientLevel', x=114.75, y=64.00, z=279.68]]
	Chunk stats: 961, 609
	Level dimension: minecraft:overworld
	Level spawn location: World: (112,64,288), Section: (at 0,0,0 in 7,4,18; chunk contains blocks 112,-64,288 to 127,319,303), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
	Level time: 49781 game time, 6428 day time
	Server brand: fabric
	Server type: Integrated singleplayer server
Stacktrace:
	at net.minecraft.class_638.method_8538(class_638.java:458)
	at net.minecraft.class_310.method_1587(class_310.java:2406)
	at net.minecraft.class_310.method_1514(class_310.java:821)
	at net.minecraft.client.main.Main.main(Main.java:250)
	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)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:87)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:130)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)

-- Last reload --
Details:
	Reload number: 1
	Reload reason: initial
	Finished: Yes
	Packs: vanilla, fabric

-- System Details --
Details:
	Minecraft Version: 1.20.1
	Minecraft Version ID: 1.20.1
	Operating System: Linux (amd64) version 6.5.0-15-generic
	Java Version: 17.0.9, Private Build
	Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Private Build
	Memory: 1180573616 bytes (1125 MiB) / 3674210304 bytes (3504 MiB) up to 8589934592 bytes (8192 MiB)
	CPUs: 8
	Processor Vendor: GenuineIntel
	Processor Name: Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz
	Identifier: Intel64 Family 6 Model 142 Stepping 12
	Microarchitecture: Whiskey Lake
	Frequency (GHz): 1.80
	Number of physical packages: 1
	Number of physical CPUs: 4
	Number of logical CPUs: 8
	Graphics card #0 name: CometLake-U GT2 [UHD Graphics]
	Graphics card #0 vendor: Intel Corporation (0x8086)
	Graphics card #0 VRAM (MB): 256.00
	Graphics card #0 deviceId: 0x9b41
	Graphics card #0 versionInfo: unknown
	Virtual memory max (MB): 17362.27
	Virtual memory used (MB): 19764.82
	Swap memory total (MB): 9536.00
	Swap memory used (MB): 5543.50
	JVM Flags: 2 total; -Xms512m -Xmx8192m
	Fabric Mods: 
		extended_drawers: Extended Drawers 2.1.1+mc.1.20.1
			config_toolkit: ConfigToolkit 1.0.0
				io_determann_shadow-api-17: shadow-api-17 0.1.1
				net_fabricmc_javapoet: javapoet 0.1.0
			graphlib: Graph Lib 1.4.0+1.20
				kmodlib-overlay: KModLib Overlay 0.2.12+1.20
				libnetworkstack: Lib Network Stack 0.10.0
			yet_another_config_lib_v3: YetAnotherConfigLib 3.2.1+1.20
				com_twelvemonkeys_common_common-image: common-image 3.10.0-SNAPSHOT
				com_twelvemonkeys_common_common-io: common-io 3.10.0-SNAPSHOT
				com_twelvemonkeys_common_common-lang: common-lang 3.10.0-SNAPSHOT
				com_twelvemonkeys_imageio_imageio-core: imageio-core 3.10.0-SNAPSHOT
				com_twelvemonkeys_imageio_imageio-metadata: imageio-metadata 3.10.0-SNAPSHOT
				com_twelvemonkeys_imageio_imageio-webp: imageio-webp 3.10.0-SNAPSHOT
				org_quiltmc_parsers_gson: gson 0.2.1
				org_quiltmc_parsers_json: json 0.2.1
		fabric-api: Fabric API 0.92.0+1.20.1
			fabric-api-base: Fabric API Base 0.4.31+1802ada577
			fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.36+1802ada577
			fabric-biome-api-v1: Fabric Biome API (v1) 13.0.13+1802ada577
			fabric-block-api-v1: Fabric Block API (v1) 1.0.11+1802ada577
			fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.1+1802ada577
			fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.41+1802ada577
			fabric-client-tags-api-v1: Fabric Client Tags 1.1.2+1802ada577
			fabric-command-api-v1: Fabric Command API (v1) 1.2.34+f71b366f77
			fabric-command-api-v2: Fabric Command API (v2) 2.2.13+1802ada577
			fabric-commands-v0: Fabric Commands (v0) 0.2.51+df3654b377
			fabric-containers-v0: Fabric Containers (v0) 0.1.64+df3654b377
			fabric-content-registries-v0: Fabric Content Registries (v0) 4.0.11+1802ada577
			fabric-convention-tags-v1: Fabric Convention Tags 1.5.5+1802ada577
			fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.19+1802ada577
			fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.0.0+de0fd6d177
			fabric-data-generation-api-v1: Fabric Data Generation API (v1) 12.3.4+1802ada577
			fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.54+1802ada577
			fabric-entity-events-v1: Fabric Entity Events (v1) 1.6.0+1c78457f77
			fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.6.2+1802ada577
			fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.63+df3654b377
			fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.40+1802ada577
			fabric-item-api-v1: Fabric Item API (v1) 2.1.28+1802ada577
			fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.12+1802ada577
			fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.37+1802ada577
			fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.35+df3654b377
			fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.22+1802ada577
			fabric-loot-api-v2: Fabric Loot API (v2) 1.2.1+1802ada577
			fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.45+9e7660c677
			fabric-message-api-v1: Fabric Message API (v1) 5.1.9+1802ada577
			fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.50+1802ada577
			fabric-model-loading-api-v1: Fabric Model Loading API (v1) 1.0.3+1802ada577
			fabric-models-v0: Fabric Models (v0) 0.4.2+9386d8a777
			fabric-networking-api-v1: Fabric Networking API (v1) 1.3.11+1802ada577
			fabric-networking-v0: Fabric Networking (v0) 0.3.51+df3654b377
			fabric-object-builder-api-v1: Fabric Object Builder API (v1) 11.1.3+1802ada577
			fabric-particles-v1: Fabric Particles (v1) 1.1.2+1802ada577
			fabric-recipe-api-v1: Fabric Recipe API (v1) 1.0.21+1802ada577
			fabric-registry-sync-v0: Fabric Registry Sync (v0) 2.3.3+1802ada577
			fabric-renderer-api-v1: Fabric Renderer API (v1) 3.2.1+1802ada577
			fabric-renderer-indigo: Fabric Renderer - Indigo 1.5.1+1802ada577
			fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.46+df3654b377
			fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.37+92a0d36777
			fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.28+1802ada577
			fabric-rendering-v0: Fabric Rendering (v0) 1.1.49+df3654b377
			fabric-rendering-v1: Fabric Rendering (v1) 3.0.8+1802ada577
			fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.8+1802ada577
			fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.10+1802ada577
			fabric-screen-api-v1: Fabric Screen API (v1) 2.0.8+1802ada577
			fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.30+1802ada577
			fabric-sound-api-v1: Fabric Sound API (v1) 1.0.13+1802ada577
			fabric-transfer-api-v1: Fabric Transfer API (v1) 3.3.4+1802ada577
			fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 4.3.1+1802ada577
		fabricloader: Fabric Loader 0.15.7
			mixinextras: MixinExtras 0.3.5
		java: OpenJDK 64-Bit Server VM 17
		minecraft: Minecraft 1.20.1
		refinedstorage2: Refined Storage 2 2.0.0-milestone.3.2
			cloth-config: Cloth Config v10 10.0.96
				cloth-basic-math: cloth-basic-math 0.6.1
			com_refinedmods_refinedstorage2_refinedstorage2-query-parser_: refinedstorage2-query-parser 2.0.0-milestone.3.2
			noindium: No Indium? 1.1.0+1.20
			refinedstorage2-core-api: Refined Storage 2 Core API 2.0.0-milestone.3.2
			refinedstorage2-grid-api: Refined Storage 2 Grid API 2.0.0-milestone.3.2
			refinedstorage2-network: Refined Storage 2 Network 2.0.0-milestone.3.2
			refinedstorage2-network-api: Refined Storage 2 Network API 2.0.0-milestone.3.2
			refinedstorage2-resource-api: Refined Storage 2 Resource API 2.0.0-milestone.3.2
			refinedstorage2-storage-api: Refined Storage 2 Storage API 2.0.0-milestone.3.2
			team_reborn_energy: Energy 3.0.0
	Launched Version: 1.20.1
	Backend library: LWJGL version 3.3.1 SNAPSHOT
	Backend API: Mesa Intel(R) UHD Graphics (CML GT2) GL version 4.6 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1, Intel
	Window size: 1920x1016
	GL Caps: Using framebuffer using OpenGL 3.2
	GL debug messages: 
	Using VBOs: Yes
	Is Modded: Definitely; Client brand changed to 'fabric'; Server brand changed to 'fabric'
	Type: Integrated Server (map_client.txt)
	Graphics mode: fancy
	Resource Packs: fabric
	Current Language: en_us
	CPU: 8x Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz
	Server Running: true
	Player Count: 1 / 8; [class_3222['jonatjano'/167, l='ServerLevel[New World]', x=114.75, y=64.00, z=279.68]]
	Data Packs: vanilla, fabric
	Enabled Feature Flags: minecraft:vanilla
	World Generation: Stable

Thank you all, this is great!

This should be fixed for upcoming release v2.0.0-milestone.3.4 for Minecraft 1.20.4.

I couldn't test myself so I'm not 100% sure, if the bug persists anyway please let us know.