Create

Create

86M Downloads

Game Crash due Config

xhytenzhi opened this issue · 5 comments

commented

Describe the Bug

After opening and saving " create-server.toml " even when i dont change any value, the server keeps crashing on startup.
It was running fine until today, i even already had changed this config file days ago without problems. No Updates happened since then.

Now i only can use the original created config file on startup, when no other remained

Reproduction Steps

  1. Open and Save config File
  2. Start Server
  3. Crash on loading config file

Expected Result

The server should just start like all the time before.

Screenshots and Videos

[12:35:20] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception
net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file create-server.toml of type SERVER for modid create
at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:47) ~[fmlcore-1.19.2-43.1.65.jar%23288!/:?] {}
at net.minecraftforge.fml.config.ConfigTracker.openConfig(ConfigTracker.java:60) ~[fmlcore-1.19.2-43.1.65.jar%23288!/:?] {}
at net.minecraftforge.fml.config.ConfigTracker.lambda$loadConfigs$1(ConfigTracker.java:50) ~[fmlcore-1.19.2-43.1.65.jar%23288!/:?] {}
at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?] {re:mixin}
at java.util.Collections$SynchronizedCollection.forEach(Collections.java:2131) ~[?:?] {}
at net.minecraftforge.fml.config.ConfigTracker.loadConfigs(ConfigTracker.java:50) ~[fmlcore-1.19.2-43.1.65.jar%23288!/:?] {}
at net.minecraftforge.server.ServerLifecycleHooks.handleServerAboutToStart(ServerLifecycleHooks.java:90) ~[forge-1.19.2-43.1.65-universal.jar%23292!/:?] {re:classloading}
at net.minecraft.server.dedicated.DedicatedServer.m_7038_(DedicatedServer.java:163) ~[server-1.19.2-20220805.130853-srg.jar%23287!/:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:625) ~[server-1.19.2-20220805.130853-srg.jar%23287!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin,pl:mixin:APP:crafttweaker.mixins.json:common.access.server.AccessMinecraftServer,pl:mixin:A}
at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:244) ~[server-1.19.2-20220805.130853-srg.jar%23287!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:ae2.mixins.json:spatial.MinecraftServerMixin,pl:mixin:APP:crafttweaker.mixins.json:common.access.server.AccessMinecraftServer,pl:mixin:A}
at java.lang.Thread.run(Thread.java:1589) [?:?] {}
Caused by: com.electronwill.nightconfig.core.io.ParsingException: Invalid bare key: ?
at com.electronwill.nightconfig.toml.TableParser.parseKey(TableParser.java:175) ~[toml-3.6.4.jar%2357!/:?] {}
at com.electronwill.nightconfig.toml.TableParser.parseDottedKey(TableParser.java:145) ~[toml-3.6.4.jar%2357!/:?] {}
at com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:55) ~[toml-3.6.4.jar%2357!/:?] {}
at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44) ~[toml-3.6.4.jar%2357!/:?] {}
at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37) ~[toml-3.6.4.jar%2357!/:?] {}
at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113) ~[core-3.6.4.jar%2356!/:?] {}
at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219) ~[core-3.6.4.jar%2356!/:?] {}
at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202) ~[core-3.6.4.jar%2356!/:?] {}
at com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73) ~[core-3.6.4.jar%2356!/:?] {}
at com.electronwill.nightconfig.core.file.AutosaveCommentedFileConfig.load(AutosaveCommentedFileConfig.java:85) ~[core-3.6.4.jar%2356!/:?] {}
at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:43) ~[fmlcore-1.19.2-43.1.65.jar%23288!/:?] {}
... 10 more
[12:35:20] [Thread-0/WARN] [mi.requestsystem/]: Updated logging config. RS Debug logging enabled: false
[12:35:20] [Server thread/FATAL] [ne.mi.co.ForgeMod/]: Preparing crash report with UUID 71cc7d05-1e6a-403f-a0df-d16538890654
[12:35:20] [Server thread/ERROR] [minecraft/MinecraftServer]: This crash report has been saved to: C:_server\mc_gruesome2.\crash-reports\crash-2023-01-15_12.35.20-server.txt
[12:35:20] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server
[12:35:20] [Server thread/INFO] [minecraft/MinecraftServer]: Saving players
[12:35:20] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds
[12:35:20] [Server thread/ERROR] [minecraft/MinecraftServer]: Exception stopping the server

Crash Report or Log

No response

Operating System

Windows Server 2019

Mod Version

0.5.0g

Minecraft Version

1.19.2

Forge Version

43.1.65

Other Mods

It worked all the time until today. No changes ( except config file) applied.

Additional Context

No response

commented

Solved it by myself

commented

What did you do to solve it?

commented
commented

Please, close this issue. Next time attach the crash report; pasting in an excerpt is not useful.

Obviously the create-server.toml config file became corrupted. removing it, allows it to be regenerated. why did it become corrupted... without the modlist that a crash report also provides, i can only speculate; however i have seen this happen when used in conjunction with pixelmon.

commented

@xhytenzhi HOW??

I don´t know the reason, but if i edit the config through the server OS Editor it crashes, when i change it through another OS (ex. Win 10) it wents fine. Seems like my server editor corrupts the cfg. file...