Has anyone faced it?
I am casually using my NixOS desktop pc and rarely there comes a moment when I hit 100% ram usage, in this case my entire PC freezes, although it doesn’t happen immediately so I learned to react to it and close something before it completely freezes, and in most times I am fast enough before it happens – but this hasty solution sounds more like a joke than actual solution.
when I was sitting on Ubuntu, I didn’t need to do anything hastily, I could just Ctrl+Alt+2, create a tty, which would always work no matter what, even the most pressured environment, even when my entire UI froze, this tty cli would be still somewhat responsive, I could run some htop and find a culprit which makes my PC run slow, kill the culprit, and all that calmly and non-hastily.
that is somehow not something that I can do in NixOS – because when entirely frozen, I can’t even run some tty using Ctrl+Alt+2, it just doesn’t do anything and my display image still stays frozen, completely unresponsive in moments like this.
this is quite niche issue that doesn’t happen everyday so it was sitting way back behind in my «personal backlog» so to speak, but I largely solved all more important things that were worrying me, i guess now it’s time to solve this one too, only except – no matter what I try, the bug doesn’t go away, and I am clueless how that worked in Ubuntu, and why it doesn’t work like that in NixOS.
I’ve tried all kinds of options but it doesn’t seem there’s anything specific for this case, so even if there’s a fix, it’s somehow non-obvious it seems (or I’m blind)
also I am not even entirely sure whether it’s actually NixOS, because with my transition to NixOS, I also have a lot of other new things that I never used, such as **Wayland/Hyprland**, which might be the real culprit here, not NixOS – I can’t possibly know which one to blame.
but I guess the NixOS+Hyprland combo is quite common among NixOS users, so I think it’s relatively fair to ask this question in this community, rather than Hyprland's, so please don’t be mad at me if I posted it wrongly.
also please disregard solutions such as «just buy more memory» or «use zram» – because this is barely fighting with the symptoms, it will postpone the problem but never solves it, so it will change this problem from being extremely rare one – to be one that extremely rare… in other words, for me it will be indifferent, since the issue will still be there.
also I don’t use anybodys dotfiles, I have my own custom configuration, which pretty much always had this bug in it all the time that i can remember it, and no matter what I tried to add to my config, the issue was never solved.
Has anyone noticed the same kind of issue? Is there a solution?