FancyModLoader icon indicating copy to clipboard operation
FancyModLoader copied to clipboard

Occasional Night Config Crash when editing configs through code

Open pupnewfster opened this issue 1 year ago • 3 comments

It seems that occasionally manually editing and saving configs from in game (such as when interacting with a machine's GUI that stores part of the state globally client side), the following crash is experienced: https://pste.me/@HchYCEmuTzE

This doesn't tend to happen if a button is just pressed once, but if the user is rapidly clicking the chance of it happening increases.

ModConfigSpec#set
ModConfigSpec#save

NeoForge: 21.1.8

pupnewfster avatar Aug 13 '24 23:08 pupnewfster

Related Night Config bug report: TheElectronWill/night-config#183

sciwhiz12 avatar Aug 13 '24 23:08 sciwhiz12

I am not the only one with this issue! Yay!

shartte avatar Aug 14 '24 08:08 shartte

It seems that the issue only happens on Windows with Windows Defender enabled. Can you confirm? Can you try to whitelist the config folder to check if that's the issue?

TheElectronWill avatar Aug 17 '24 10:08 TheElectronWill

Fixed in https://github.com/neoforged/NeoForge/pull/2232.

Technici4n avatar Apr 27 '25 09:04 Technici4n