Minecraft hangs on Linux but not Windows, HELP!

Here’s my inxi -Fxza:

System:
  Kernel: 6.0.9-x64v1-xanmod1-1 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: root=UUID=1af10348-26b6-40ab-baeb-571e480458e4 rw
    rootflags=subvol=@ loglevel=3 nowatchdog nvme_load=YES
    sysrq_always_enabled=1 initrd=@\boot\initramfs-linux-xanmod-anbox.img
  Desktop: Xfce v: 4.16.1 tk: Gtk v: 3.24.34 info: xfce4-panel wm: xfwm
    v: 4.16.1 vt: 7 dm: LightDM v: 1.32.0 Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Laptop 15-bs0xx v: Type1ProductConfigId
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 832C v: 25.56 serial: <superuser required> UEFI: Insyde
    v: F.68 date: 07/22/2021
Battery:
  ID-1: BAT1 charge: 20.9 Wh (100.0%) condition: 20.9/31.1 Wh (67.3%)
    volts: 12.4 min: 11.1 model: COMPAL PABAS0241231 type: Li-ion
    serial: <filter> status: full
  Device-1: hidpp_battery_0 model: Logitech K350 serial: <filter>
    charge: 70% (should be ignored) rechargeable: yes status: discharging
  Device-2: hidpp_battery_1 model: Logitech Marathon Mouse/Performance Plus
    M705 serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: Intel Pentium N3710 bits: 64 type: MCP arch: Airmont level: v2
    built: 2015-17 process: Intel 14nm family: 6 model-id: 0x4C (76) stepping: 4
    microcode: 0x411
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 224 KiB
    desc: d-4x24 KiB; i-4x32 KiB L2: 2 MiB desc: 2x1024 KiB
  Speed (MHz): avg: 1872 high: 2560 min/max: 480/2560 scaling:
    driver: intel_cpufreq governor: performance cores: 1: 2560 2: 1550 3: 820
    4: 2560 bogomips: 12800
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_store_bypass status: Not affected
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: disabled, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx
    Integrated Graphics vendor: Hewlett-Packard driver: i915 v: kernel
    arch: Gen-8 process: Intel 14nm built: 2014-15 ports: active: eDP-1
    empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:22b1
    class-ID: 0300
  Device-2: Chicony HP Webcam type: USB driver: uvcvideo bus-ID: 1-5.2:5
    chip-ID: 04f2:b5db class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 compositor: xfwm v: 4.16.1 driver: X:
    loaded: intel unloaded: modesetting alternate: fbdev,vesa dri: i965
    gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
    s-diag: 414mm (16.31")
  Monitor-1: eDP-1 mapped: eDP1 model: AU Optronics 0x10ec built: 2016
    res: 1366x768 hz: 60 dpi: 102 gamma: 1.2 size: 340x190mm (13.39x7.48")
    diag: 394mm (15.5") ratio: 16:9 modes: 1366x768
  API: OpenGL v: 4.6 Mesa 22.2.3 renderer: Mesa Intel HD Graphics 405 (BSW)
    direct render: Yes
Audio:
  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series
    High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel
    v: kernel bus-ID: 00:1b.0 chip-ID: 8086:2284 class-ID: 0403
  Sound API: ALSA v: k6.0.9-x64v1-xanmod1-1 running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.60 running: yes
Network:
  Device-1: Realtek RTL8188EE Wireless Network Adapter vendor: Hewlett-Packard
    driver: rtl8188ee v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 2000
    bus-ID: 02:00.0 chip-ID: 10ec:8179 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 1000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
Drives:
  Local Storage: total: 465.76 GiB used: 349.32 GiB (75.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST500LT012-1DG142
    size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: YAM1 scheme: GPT
Partition:
  ID-1: / raw-size: 53.15 GiB size: 53.15 GiB (100.00%)
    used: 15.49 GiB (29.1%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 276 MiB size: 275.4 MiB (99.80%)
    used: 159.4 MiB (57.9%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 54.01 GiB size: 54.01 GiB (100.00%)
    used: 12.94 GiB (24.0%) fs: btrfs dev: /dev/sda5 maj-min: 8:5
  ID-4: /var/log raw-size: 53.15 GiB size: 53.15 GiB (100.00%)
    used: 15.49 GiB (29.1%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 50.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 214 Uptime: 1m wakeups: 5 Memory: 3.75 GiB
  used: 853.3 MiB (22.2%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 Packages: pm: pacman pkgs: 1215
  libs: 312 tools: pikaur,yay Shell: Zsh v: 5.9 default: Bash v: 5.1.16
  running-in: tilda inxi: 3.3.23

Logs:

Windwoes: https://bin.garudalinux.org/?e361ef230888f61c#EKMZogS3wqCDywmgLfabPKoooffyiAAcbboEaptpfKRJ

Leenocks: https://bin.garudalinux.org/?f59ab7e7e92d0b9b#hJLye5hpZ2K6Re9Zk26cnQP44a6VphX9dKhbUq2ffem

I have the same launcher version, same exact Java, same exact mods. Linux just hangs when I go into a world after a while. Windows doesn’t. Why? (I know the hardware sucks)

Try the normal Linux Kernel.

1 Like

I don’t know how to troubleshoot this but maybe you are running out of RAM while playing?

Also, typically this happens. That log seems to be a fluke.

Linux hung when I changed the FOV of all things. I’ve played on Windows for hours and there’s the occasional lag spike but it rarely just locks up. (At least Linux has Alt+SysRq+K so I can at least avoid a reboot, but it does take a bit to go thru however)

I have -Xms and -Xmx set to 2048 MiB. I’ve tried both Eclipse Temurin and OpenJ9, JDK 17 (ik only the JRE is neccesary.

Btw I’m using XFCE of all DEs, no fancy stuff going on. No compiz for sure! Also, my Windows install is actually a W10AME install. So no spyware is taking up resources there.

Since it works fine on Windows and I eliminated all other variables other than the OS it means Linux is acting up, somehow. @mrvictory will remember the whole Roblox thing, heh. At least I could actually play the game.

Also, here’s my JVM args if it wasn’t clear:

-XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20
-XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

(with no linebreak, these are recommended by the developer of the Fabulously Optimized modpack, these apparently have no effect on OpenJ9)

I don’t know how to troubleshoot this but maybe you are running out of RAM while playing?

Wouldn’t the kernel panic? The weirdest part is NONE of this happens on Windows, *sigh.

Not really, Linux would either hang or kill Minecraft. You can use MangoHUD to monitor RAM usage.

True, but if it really hung then why do SysRq combos still work?

Windows doesn’t BSOD with the exact same config.

SysRq is very low level, it will bypass userspace and issue commands directly to kernel. It will almost always work unless you have a kernel panic.

If anything Linux should consume less resources, not more. Unless somehow Windows is more efficient at memory management. At least PollyMC makes it easy use MangoHUD! (just a few clicks)