mojira.dev
MC-129374

Crash on 32 bit JVMs: "Unable to bootstrap datafixers" due to stack overflow

Workaround for clients < 1.13-pre2

  • Increase the stack to 1 MB

    • In the Edit Profile menu in the Launcher, check the JVM Arguments box, and add -Xss1M

Solution for servers

  • Increase the stack to 1 MB

    • Add -Xss1M to the server startup script

Possible cause

On 32 bit JVMs the default stack size is 320k whereas on 64 bit JVMs the default stack size is 1M

The bug

When trying to open game at 18w19a and b the whole launcher crashes and there is no Crash log for it from game files and windows system

[0509/180933:INFO:GameCallbacks.cpp(178)] game/xn (Bootstrap 0) error Unable to bootstrap datafixers
java.lang.StackOverflowError
	at aax$g.a(SourceFile:178)
	at aax$m.a(SourceFile:525)
	at aax$m.a(SourceFile:525)
	at aao.b(SourceFile:47)
	at aax$l.a(SourceFile:609)
	at aax$m.a(SourceFile:529)
	at aao.b(SourceFile:47)
	at aax$l.a(SourceFile:609)

Related issues

MC-9361 Splash Potion ghost items with 'pick block' key MC-9518 Shooting an arrow using a bow makes it land right from your aim MC-129505 Game can't start MC-129540 Minecraft Crashes When Loading 18w19a or 18w19b MC-129598 can only play in 1.12 MC-129599 StackOverflowError trying to Load MC-129622 Game crashes when trying to boot MC-129647 Game crash at launch (18w20a and 18w19b) MC-129650 Crashes on start up MC-129694 Snapshot 18w20a/18w20b crash MC-129770 Game + launcher crash when opening 18w19a+ MC-129778 Keep Crashing MC-130142 Unknown Crash when Launching MC-130167 Crashing MC-130236 18W21A WINDOWS CRASHED ON LAUNCH MC-130239 problem when open server MC-130347 game crashes instantly after startup MC-130366 Changes between 18w16a and 18w19a MC-130412 Snapshot crashes when starting MC-130482 Crash on startup MC-130490 Launcher doesn't launch game or game crashes upon launching MC-130549 Stackoverflow after updating to 18w22c MC-130573 Unable to bootstrap datafixers - starting server MC-130675 it crashes as when the mojang logo shows up. MC-130762 Game crashes while opening MC-130777 Server crashes "Unable to bootstrap datafixers." MC-130797 Game Crashes Shortly After Launching MC-130967 Game crash on launch MC-131028 Minecraft Snapshot Not Launching/Working Perfectly MC-131143 Game crash at launch (18w20a and the newest snapshot and pre-release) MC-131160 Minecraft launcher closes arrived at the written Mojang MC-131233 Can't open 1.13 pre 1 MC-131259 The game crashes before opening MC-131285 Game Crahes when launching Minecraft MC-131341 18w19b and above versions crashing MC-131498 Server crashing immediatly in 1.13-pre2 MC-131734 Stack overflow when running 1.13pre2 on windows 7 32bit MCL-9361 Do not run the latest version! V. 2.0 MCL-9518 1.13 Pre-1 Will Not Fully Launch

Attachments

Comments

migrated
[media][media]
CreeperMagnet_

Please attach a crash report so we can further diagnose your issue.

EDIT: I'm stupid, nevermind that last bit. Please attach the latest LOG file.

migrated

Done

migrated

I'm the same way

migrated

Happens to me on 18w19a-18w19b

AglWandrly

And 18w20a

migrated

First: sorry for the duplicate, I actually searched but there were so many "crash reports" that I overlooked this one. But I also failed to search for the keyword "datafixer".

I'd like to add that this also happens on 32bit environments and that I've ruled out a few options:

  • I moved .minecraft out of the way to start fully fresh (no texturepacks for example) and that made no difference.

  • I also tried skipping the shipped Java runtime but instead use a more recent version (1.8_161) and that also made no difference (still going to try SE9).

  • And finally I changed some parameters to assign more and less memory, that too made no difference.

Hope this can help shed some light on this.

bdm68

I am also experiencing this crash on Windows 7 with the same Java version as the OP (Java Version 8 Update 171 32bit). Is anyone experiencing this on 64-bit Java or is this a Java 32-bit issue?

 

migrated

It would appear to be a 32-bit issue. I follow Xisumavoid on YouTube, as well as a few other Hermits, and they seem to be able to load the snapshots perfectly. Seriously, Xisumavoid just put out a video highlighting the new 18w20a snapshots a few hours ago.

 Edit: I'm also running 32-bit Java on Windows 10. I've also reverted to Java SE 8 Update 111, and still got the same crash. 

migrated

Looks like we need to add 18w20b to the list of affected versions. Also, the launcher now crashes without adding the errors to the launcher log when you enable the "Open Output Log" option.

migrated

Me,too!

migrated

It looks like this exception is due to too many thread stacks, overflowing. And it's an type of out of memory. 

[media]

 -The minecraft is dosen't support old computer now.For a better computer. There is no other solution at this time. 

[media]

-    Add an -Xss1024K may fix you problem.

 

migrated

Impossible man. I got my laptop about 2 years ago

migrated

That's the thing: Minecraft would've thrown a java.lang.OutofMemory error if that was the case. Also, ShelLuser tested various memory set ups, and got no results. I can also run Forge mods–some fairly heavy-- on 1G RAM and they run just fine, if slow due to constant garbage collection. And another thing: We all were able to run 18w16a, which means our hardware setups can handle 1.13 when it comes out. But something went seriously wrong when updating to 18w19a+, resulting in in inability to even load the loading screen.

 

migrated

Let's add 18w20c to the list of affected versions.

[media]
migrated

Guys, I've just hit a workaround for the crashing issues.

 

In your launcher, go under the JVM arguments for the snapshots, and at the very end, add this argument:

 

-Xss1024K

 

This will increase the stack size and allow you to start running the new snapshots.

kumasasa

@unknown:This is a great finding.

On 32 bit JVMs the default stack size is 320k whereas on 64 bit JVMs the default stack size is 1M

migrated

Thanks! I'm glad I can help!

 

Also, you might want to change those G's to M's. We don't want to fry any processors by adding more stacks than they can support, now do we?

kumasasa

😛

migrated

Sorry, Kumasasa, but I have another edit for you. I've been messing around with the -Xss parameter in the launcher, and got the snapshots working at as little as 640K for stack size. 

migrated

Thanks!  My server jar would not run (same boothstrap datafixer crash) until I added -Xss1024K.

Think I actually have the 64-bit version of Java...

pokechu22

Minimizing the stack size probably isn't necessary (the difference between 640K and 1024K is fairly insignificant) and could lead to instability elsewhere (if there's something else that uses a lot of stack space), but it's good to know that that can work too.


You can check if you've got 64-bit java installed by running java -version; it should include "64-Bit Server VM" in the output if you have 64-bit java installed (and set as the default version; you might have both 64-bit and 32-bit installed and it's defaulting to 32-bit)

migrated

@Ray Allen-- You're welcome! And that is just bizarre, considering that 1024K is the 64-bit stack default.

 

@[Mod]Pokechu22-- I was just messing around with it after the 1024K modifier locked my game up trying to save and quit. At 640, I was able to save without issue, but the launcher crashed upon exiting. I'll play around some more at 1024 to see if the lock up occurs again. 

migrated

Add an -Xss1024K fixed my problem.

migrated

java -version gives me:
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) Client VM (build 25.171-b11, mixed mode, sharing)

Oh, I guess I should say that my server is just on our home network, not the internet...

Update: Actually tried playing... It works! My kids and I have been unable to play together on our Aquatic world for over a week, but now we're back!

bdm68

I can confirm that the -Xss1024K workaround has got the 18w20c snapshot working for me after it refused to work without it. Good find.

migrated

I'm glad to here that everybody's back to having fun with the new snapshots! 

migrated

I updated Java from 32 to 64, and it still crashes

migrated

Dawid: Did you add the -Xss1024K or -Xss1M argument into the JVM arguments box?

For some reason, this problem occurs because either Minecraft or Java defaults the stack size to the 32-bit default, which is 320K, when the game requires–at minimum in it's current state–640K stack size. So, in order to get the game to run, we have to force the JVM to utilize at least the 640K stack size, preferably 1024K for stability purposes.

This is why we need to add the -Xss1024K tag in the JVM arguments: it will force the game to allocate that much stack space, eliminating the stack verions of an Out of Memory error.

migrated

I added this argument after failed try to launching 18w20c with Java 64bit.

migrated

Did it help at all? 

kumasasa

@unknown, do you run Minecraft Client from the Launcher with the bundled Java or do you run a Minecraft server and you're starting maybe a different 32 bit JVM ?

migrated

I still can't figure out for sure if I have 64-bit, -version doesn't say.
Looks to me like SE is 64-bit only, so they stopped telling you?

Also, I can't figure out what my default stack size is...

Found a web page that said to type in this: java -XX:+PrintFlagsFinal -version

Doing so says:
intx ThreadStackSize = 0 {pd product}

This seems to be impossibly low...

migrated

Ok, think I have 32-bit version.
First, it is installed in C:\Program Files (x86)\Java
Second, I did this:
C:\Users\Ray>java -d64 -version
Error: This Java instance does not support a 64-bit JVM.
Please install the desired version.

No idea how this happened, since I have 64-bit OS and browser...

migrated

That is weird. Normally, Java downloads the appropriate version automatically.

migrated

Ok, seems I switched to IE to install because java doesn't work in Edge. Just learned that IE can have both 64-bit and 32-bit tabs depending on page content. Seems java's automatic detection decided I wanted 32-bit...

Maybe I should uninstall and reinstall 64-bit manually...

kumasasa

@unknown: No, not necessarily. Often the 32 bit version is being downloaded despite being on 64 bit OS.

@unknown: Uninstall all Java instances and download here https://www.java.com/en/download/manual.jsp the 64 bit version.

migrated

I had changed from 32 to 64, but it still didn’t work. Only way for me to make it work were adding this argument

migrated

I did manual install of this version from Oracle:
Java SE Runtime Environment 8u171 (64-bit)

Now, runs fine without the -xss

AglWandrly

18w21a

migrated

I added the argument at last but it gives error:could not create Java Virtual Machine

migrated

@Aman Kasat you must add space before adding this argument

migrated

Affects 18w22c

migrated

I added the -Xss1024K, so i can now launch the game, but i can't load or create any world, the screen stays on "loading world" (I tested 40 min, still "loading world"). Help ?

 

kumasasa

@unknown, this seems to be another issue. Please create a new ticket and attach the launcher_log.txt there.

migrated

Nathan Adams

Community Consensus

crash

Minecraft 18w19b, Minecraft 18w20a, Minecraft 18w20b, Minecraft 18w20c, Minecraft 18w21a, Minecraft 18w21b, Minecraft 18w22a, Minecraft 18w22b, Minecraft 18w22c, Minecraft 1.13-pre1

Minecraft 1.13-pre2

Retrieved