You are not logged in.

#1 2025-01-19 14:40:42

Firestar
Member
From: Beijing, China
Registered: 2021-07-19
Posts: 87
Website

Minecraft Freeze on Archlinux+KDE 6+Wayland

I am playing Minecraft 1.7.10 with LOTR mod (legacy) on Archlinux

I use wayland and KDE 6

Sometimes Minecraft will freeze and all the keyboard and cursor can do nothing about it, only force-restarting the computer

But today I found that after the freezing, Plasma give me a notification: Desktop effects were restarted due to a graphics reset

and plasma restarted its desktop effects, my keyboard and cursor can work now

I searched for the internet and found this answer: "Try disabling desktop compositing. You should disable the “Enable compositor on startup” option in System Settings > Display and Monitor > Compositor if you are using KDE."

But my KDE does not have this setting (https://imgse.com/i/pEkRoGQ), what can I do?

Operating System: Arch Linux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Xe Graphics
Manufacturer: LENOVO
Product Name: 20WKA000CD
System Version: ThinkPad X13 Gen 2i

Last edited by Firestar (2025-01-19 14:43:31)


Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.

Offline

#2 2025-01-19 14:47:45

Firestar
Member
From: Beijing, China
Registered: 2021-07-19
Posts: 87
Website

Re: Minecraft Freeze on Archlinux+KDE 6+Wayland

Another thing is: xlsclients says that Java (Minecraft) runs under Xwayland


Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.

Offline

#3 2025-01-19 15:00:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,376

Re: Minecraft Freeze on Archlinux+KDE 6+Wayland

you can't disable compositing on wayland. You'd have to be in a xorg session

Graphics reset sounds more like a crash of the GPU, either on mesa or the kernel side, check/post

sudo journalctl -b-1 | curl -F 'file=@-' 0x0.st

after rebooting, maybe also enable https://wiki.archlinux.org/title/Keyboa … el_(SysRq) and try whether you can avoid the hard reboot with the REISUB sequence (leave a few seconds between key presses, especially the S one)

Also as a general note, minecraft mods can get huge, you only have 16GB RAM the intel GPU will share that with the main system RAM, chances that you're simply running out of resources is quite high. Have you monitored RAM/VRAM (intel_gpu_top from intel-gpu-tools) usage around/before the time of the freeze?

Last edited by V1del (2025-01-19 15:06:20)

Offline

#4 2025-01-19 15:50:09

Firestar
Member
From: Beijing, China
Registered: 2021-07-19
Posts: 87
Website

Re: Minecraft Freeze on Archlinux+KDE 6+Wayland

1. http://0x0.st/8Hm7.txt I checked my browser history, the crash happens at about 22:15 and 22:21
2. I only checked RAM usage from system monitor (and I don't know if it have GPU VRAM enabled), when crashing the RAM usage is high (80~90%, even >90%), but sometimes it freeze only when 50%-60% (for example today), I am planning to change to a 32GB/64GB RAM laptop now.

Last edited by Firestar (2025-01-19 15:55:28)


Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.

Offline

#5 2025-01-20 03:48:05

Firestar
Member
From: Beijing, China
Registered: 2021-07-19
Posts: 87
Website

Re: Minecraft Freeze on Archlinux+KDE 6+Wayland

I have set a 16GB swap space before, but its usage is small, for example this is what happened when I played 4h minecraft and haven't freezed

```
(base) [firestar@Archlinux ~]$ free -h
               total        used        free      shared  buff/cache   available
Mem:            15Gi        12Gi       1.2Gi       3.8Gi       5.7Gi       2.6Gi
Swap:           15Gi       582Mi        15Gi
```


Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.

Offline

Board footer

Powered by FluxBB