-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.16.5] Nightconfig can encounter file already opened exception #145
Comments
Noted as possible conflict with Knightfall! (mod adds behaviour where mobs will take higher fall damage with higher armor tiers), but cannot confirm |
It seems to be a Forge issue as it happens with other mods as well: MinecraftForge/MinecraftForge#7963 |
understood, closing issue due to irrelevancy |
Reopening issue as I can only ever get it to reproduce specifically with Champions. the config code of this mod should be inspected to make sure a thread race cannot occur, via some sort of workaround. I will research a possible solution when available. |
I've already made efforts to ensure against race conditions, at least as much as I am aware of. The issue is that the logs you've provided show that the logic is failing from Forge and NightConfig's end, which I'm not capable of controlling as I'm purely a consumer of their configuration API and I don't edit the way they load configuration values. As linked in the issue thread above, many other mods are encountering this issue without Champions involved so I don't believe this is related to Champions specifically. |
Versions (Be specific, do not write "latest"):
Observed Behavior:
This issue only began to happen after the latest update. Due to the high speed of processing, it is a rare lockup that causes the client to freeze and requires manual shutdown from task manager.
This seems to be an issue with the multithreaded behaviour of nightconfig.
For whatever reason Nightconfig will attempt to read the serverconfig file on a separate thread whilst it is also writing the new values if a config file is in the defaultconfigs folder on a thread that has the file still locked. Are you relying on a custom config system hooked into nightconfig or is this a forge issue I should submit?
Expected Behavior:
Don't open the serverconfig version of the file twice at once when loading a config provided in the defaultconfigs folder.
Steps to Reproduce:
Crash Log:
(the game does not crash, only freeze. below is the snippet of the log past the point of error.)
https://pastebin.com/69e6TVDp
The text was updated successfully, but these errors were encountered: