MultiMC / Launcher

A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once
https://multimc.org/
Other
4.19k stars 861 forks source link

Minecraft freezes when 'saving world' on 1.20.4 vanilla offline mode #5374

Open gear54rus opened 3 months ago

gear54rus commented 3 months ago

Operating System

Linux

Description of bug

Expected:

Actual:

Additional info:

Logs.

Does not happen when using normal online launch with the same profile.

Related? https://github.com/MultiMC/Launcher/issues/3620 Facing the same on fabric but created a new instance without any kind of mods to be sure.

java --version output:

openjdk 21.0.2 2024-01-16 LTS
OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)

Platform: Linux Ubuntu 22.04.4 LTS kernel 6.5.0-26-generic

Steps to reproduce

  1. Create a new clean 1.20.4 vanilla instance
  2. Launch Offline while changing name (ex. TestName).
  3. Create a new world with default settings and join it.
  4. Wait for everything to be loaded, mine 1 dirt block.
  5. Press 'Esc' -> 'Save and quit to title'.

Suspected cause

No response

This issue is unique

gear54rus commented 3 months ago

I saw the discussion on that last issue suggesting that this is purely a game bug. However, I should add that there are definitely launchers out there that don't have this problem (namely TLauncher) so it might be deeper than that.

On the matter of TLauncher I noticed it runs the game with --userType mojang whereas MultiMC does with --userType msa. It might be related or it might not be :) As I haven't found a way to alter these launch params for MMC.

Wolf68k commented 3 months ago

Try using Java 17, since that's what is officially supported.

The-Only-E commented 2 months ago

I know one possible cause. Not having enough disk space on the drive the Minecraft install is in. Because there is no space on the disk, it can't save and gets stuck.

Moltresrider commented 3 weeks ago

This issue is also present with 1.20.6 but I am NOT in offline mode. I am launching Minecraft the normal way and I have waited 30 minutes for my world to save. Just like OP, it is a cloned instance.

Wolf68k commented 3 weeks ago

This issue is also present with 1.20.6 but I am NOT in offline mode. I am launching Minecraft the normal way and I have waited 30 minutes for my world to save. Just like OP, it is a cloned instance.

Since there is a difference and we need to see the log, it might be a good idea to create your own thread (if you haven't already).

gear54rus commented 3 weeks ago

Try using Java 17, since that's what is officially supported.

to answer this, there is no change in behavior with java 17

image

gear54rus commented 3 weeks ago

I know one possible cause. Not having enough disk space on the drive the Minecraft install is in. Because there is no space on the disk, it can't save and gets stuck.

definitely not the case

/dev/mapper/nvme0n1p6_crypt  260G  224G   24G  91% /
gear54rus commented 3 weeks ago
 strace -f -p 112462  > ./Downloads/strace.txt 2>&1

right before pressing 'save world':

strace.txt

It's definitely doing something (although how the hell did we get to region -20,0 in a world that was just created is anyone's guess):

statx(AT_FDCWD, "/home/gear/.local/share/multimc/instances/1.20.4/.minecraft/saves/New World/region/c.-20.0.mcc", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW, STATX_ALL, 0x71ee1107df10) = -1 ENOENT (No such file or directory)
Wolf68k commented 3 weeks ago

Is the Intel graphics the best you have?

gear54rus commented 3 weeks ago

Is the Intel graphics the best you have?

No there's also a 1650ti in this XPS 15 9500 laptop but switching to it doesn't help

Screenshot from 2024-06-14 00-31-15