Executing a run.bat file with the code:
@echo
java -Xmx1024M -Xms1024M -jar server.jar nogui
PAUSE
will result in a alleged stack overflow, i have tested and troubleshooted different -X JVM tags. all i found was that including an -Xss1M tag for thread size stopped the stack overflow, but was not able to carry the load of the server under just 1M.
What I expected to happen was:
The server to run, with minor latency issues, but not with a total failure and stack overflow, after dedicated 1M through -Xss i assumed it'd work to test out, but i cannot run a server on just 1M of allocated thread size.
How can i run the server with the first run.bat i have copied above? what have i done wrong and how can i fix this.
Do not discredit this report as a duplicate, i have seen those and they are not fully helpful to this scenario.
What actually happened was:
[02:04:02] [main/INFO]: Loaded 0 recipes
[02:04:02] [main/INFO]: Loaded 0 advancements
[02:04:02] [Server thread/INFO]: Starting minecraft server version 1.13-pre2
[02:04:02] [Server thread/INFO]: Loading properties
[02:04:02] [Server thread/INFO]: Default game type: SURVIVAL
[02:04:02] [Server thread/INFO]: Generating keypair
[02:04:03] [Server thread/INFO]: Starting Minecraft server on *:25565
[02:04:03] [Server thread/INFO]: Using default channel type
[02:04:03] [Server thread/INFO]: Preparing level "world"
[02:04:03] [Server thread/INFO]: Reloading ResourceManager: Default
[02:04:04] [Bootstrap 0/ERROR]: Unable to bootstrap datafixers
java.lang.StackOverflowError: null
at abi$m.a(SourceFile:532) ~[server.jar:?]
at abi$m.a(SourceFile:532) ~[server.jar:?]
at aax.b(SourceFile:44) ~[server.jar:?]
at abi$l.a(SourceFile:616) ~[server.jar:?]
at abi$m.a(SourceFile:536) ~[server.jar:?]
at aaz.b(SourceFile:47) ~[server.jar:?]
at abi$l.a(SourceFile:616) ~[server.jar:?]
at abi$m.a(SourceFile:536) ~[server.jar:?]
at aaz.b(SourceFile:47) ~[server.jar:?]
at abi$l.a(SourceFile:616) ~[server.jar:?]
at abi$m.a(SourceFile:536) ~[server.jar:?]
at aaz.b(SourceFile:47) ~[server.jar:?]
at abi$l.a(SourceFile:616) ~[server.jar:?]
at abi$m.a(SourceFile:536) ~[server.jar:?]
at aaz.b(SourceFile:47) ~[server.jar:?]
at abi$l.a(SourceFile:616) ~[server.jar:?]
at abi$m.a(SourceFile:536) ~[server.jar:?]
at aaz.b(SourceFile:47) ~[server.jar:?]
at abi$l.a(SourceFile:616) ~[server.jar:?]
at abi$m.a(SourceFile:536) ~[server.jar:?]
at aaz.b(SourceFile:47) ~[server.jar:?]
at abi$l.a(SourceFile:616) ~[server.jar:?]
at abi$m.a(SourceFile:536) ~[server.jar:?]
at aaz.b(SourceFile:47) ~[server.jar:?]
at abi$l.a(SourceFile:616) ~[server.jar:?]
at abi$m.a(SourceFile:536) ~[server.jar:?]
at aaz.b(SourceFile:47) ~[server.jar:?]
at abi$l.a(SourceFile:616) ~[server.jar:?]
at abi$m.a(SourceFile:536) ~[server.jar:?]
at aaz.b(SourceFile:47) ~[server.jar:?]
Steps to Reproduce:
1. Run the latest server.jar for 1.13pre2 using the same run.bat file as i have, in the same environment too.
2. to see the contrary, test out the bat file with the alternative of adding -Xss1M to the run.bat
Thankyou
Related issues
Attachments
Comments


⚠️ Please do not mark issues as private, unless your bug report is an exploit or contains information about your username or server.
Xss1M isn't 1M of thread size; it's 1M of stack size. The default is much less than that; increasing it shouldn't break your server.
This is sort-of a duplicate of MC-129374 (/MC-131498), but it's only apparently happening with servers now (when it shouldn't be happening at all). I'm not 100% sure whether to resolve it as a duplicate or not.

Is a duplicate.
You have to add the -Xss argument, not replace all other args:
java -Xmx1024M -Xss1M -jar server.jar

@kumasasa, I had done this too. So no help really. The issue has been fixed in the new patch regardless.