neoforged / FancyModLoader

The fancy mod loader for NeoForged
Other
62 stars 30 forks source link

Occasional Night Config Crash when editing configs through code #194

Open pupnewfster opened 1 month ago

pupnewfster commented 1 month ago

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

sciwhiz12 commented 1 month ago

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

shartte commented 1 month ago

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

TheElectronWill commented 1 month ago

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?