Untitled Duck Mod (Forge)

Untitled Duck Mod (Forge)

2M Downloads

Thread Safety Violation in WaterfowlEntity Causing Crash with Multithreaded Mods?

AdminHcat opened this issue ยท 2 comments

commented

Describe the bug
Thread Safety Violation in WaterfowlEntity Causing Crash with Multithreaded Mods
Resulted in the inability to load some chunk

To Reproduce
Steps to reproduce the behavior:

  1. Intsall C2ME and untitledduckmod

Version
untitledduckmod-1.0.0-fabric-1.21.6.jar

Error Log

latest.log

commented

Old issues #93 and #94 seem to have been reintroduced in the latest code.
next version fix.

commented
	# (Default: true) Enforces safe world random access.  
	# This feature detects unsafe off-thread world random access, helping to find the causes  
	# of mysterious "Accessing LegacyRandomSource from multiple threads" crash.  
	# The default behavior is to fail hard when such bad things happens.  
	# Disabling this option will replace this behavior with a warning.  
	# 
	# It is generally not recommended to disable this settings unless you know what you are doing  
	# 
	# 
	enforceSafeWorldRandomAccess = false

Changing enforceSafeWorldRandomAccess to false in the c2me.toml config file can temporarily solve the problem