r/opencode • • 9d ago

My system freezes when I am using opencode. Need urgent help.

Hello. My machine is GMKtec k12 and I am using Almalinux 10 KDE with opencode desktop and I am so happy with it helping me vibe coding my projects. But recently, I my system hangs while vibe coding and it had been 3 times already in the last 30 mins. So far I have noticed that KDE desktop crashes first then dolphin and then the screen goes black and thats it, nothing working even it is not responding to switch to init 3. So my only choice is to hold the power button for 5 seconds to force it off.

So please advise me on what to do. As I cant proceed with the projects if this is the case. Note, I am running the latest version of opencode which is 2.3.0.

And thank you in advance.

2 Upvotes

9 comments sorted by

1

u/lincolnthalles 9d ago

Ryzen 7 H 255? This CPU is too new to use an LTS distro. New hardware needs new kernels. That may be the root cause of the freezes.

Try using Fedora 44/45 (there's a KDE version too), with a plain configuration, like using the XFS or EXT4 file system on the main storage (it's faster for git worktress and other operations that agents use a lot; Btrfs is bad for this kind of usage).

If the issue persists, you may have a hardware issue.

I use Fedora KDE and have no issues with any kind of GUIs for OpenCode (the official one, T3 Code, or OpenChamber).

1

u/katana1096 9d ago

I already checked before installing and it is supporting.

1

u/oyren-ai 9d ago

before reinstalling anything, get evidence: a freeze that takes the text console with it points at the kernel, gpu driver or memory pressure rather than opencode, and the previous boot's log may show which: journalctl -b -1 -p err, plus journalctl -k -b -1 for kernel lines. if there's no previous boot, create /var/log/journal and restart journald so logs survive hard resets.

1

u/katana1096 9d ago

I researched and so far it could be related to BIOS or the RAM. But I guess the perfect solution is to host it on a vps.

1

u/Soifon99 8d ago

I dont understand why people who use AI, don't ask AI to troubleshoot the machine that is having issues. it will find in a prob 5 min.

1

u/katana1096 7d ago

Already did and he pointed out that I may need to update the BIOS and do a memetest for the ram. But I didn't consider it much since the freeze is only happening while using opencode desktop, no were else.

So far I noticed it opencode desktop is better since updating to version 2.3.2.

1

u/sun_in_the_winter 3d ago

I have the same and its very annoying. Running on debian 13 ryzen 7 4800 and still have no clue whats actually happening. No evidence or trace left.

1

u/katana1096 3d ago

The issue got fixed once I deployed opencode cli on the vps and I connect to it using my workstation opencode desktop

1

u/sun_in_the_winter 3d ago

Yea not sure whats wrong with it. I’ve tried several kernel versions, kdump and such, I didn’t deal with something like this much of a hard freeze in the last few years on my servers. I do self host everything so vps is not an option. I might want to run it inside a VM and see what is actually wrong but have no time for that. I just run pi instead of opencode in case if the work is quick.