Hello all!
The Problem:
So, I have what I think to be a very strange but extremely annoying problem. What is happening is sometimes (not every time, but some times every time if that makes sense), when I open VSCode to my Python environment, my system will “soft crash.” What I mean is all command related operations stop working completely. So, my python interpreter will never load, (I used hyprland) so I cannot use keyboard shortcuts to open any applications change system volume, etc… I can still navigate through workspaces, kill applications, and even still use applications that are running; however, nothing else works. If I have a terminal window open when the system “soft crashes” I can run commands and monitor the system, but none of the commands I run are saved in the terminal history and nothing gets written to the system (I tried to write the logs to a file during the crash state but the logs never saved. I had to run the command again once I had rebooted). The last symptom is if I switch TTY (or use an open terminal session), and I sudo reboot the system, it will hang in the reboot process until I hit the physical restart button on my PC.
What I’ve Tried:
I have tried switching TTYs and checking the logs there, and I have also tried killing different applications (code, pet) to see if the problem resolves, but none of those have worked. I thought it might be some sort of race condition or loop relating to my devenv environment, but I removed it completely and the problem still persisted. I also tried disabling PyLance and Pylint in VSCode, but that didn’t work either.
Final Thoughts:
This problem seems to happen most frequently when interacting with the python interpreter. For example, I tried to create a normal venv environment in a completely new directory, and that caused the system to crash. I also had a crash occur today when trying to launch an instance of DataViewer in VSCode. So, it seems like when trying to access a python interpreter, something is happening that is causing the crash.
I can’t for the life of my figure out why though. I’ve added my system specs, OS/WM, and a short snippet from journalctl of the exact time a crash occurred. If any additional information is need please let me know, and thanks in advance!
NixOS Channel - Unstable
Hyprland - 0.53.3
VSCode - 0.108.1
Linux Kernel - 6.18.6-zen1
Logs:
These logs come from the most recent crash. The system crashed at 9:21am and these are all the logs I have in my journalctl from that time. I rebooted the system at ~9:23am.
Jan 29 09:21:06 default dbus-daemon[1035]: [system] Activating via systemd: service name=‘org.bluez’ unit=‘dbus-org.bluez.service’ requested by ‘:1.629’ (uid=1000 pid=26741 comm=“/nix/store/vgvha6gldjijkww06ihy10h9scwn6wcr-vscode”)
Jan 29 09:21:06 default systemd[1]: Bluetooth service was skipped because of an unmet condition check (ConditionPathIsDirectory=/sys/class/bluetooth).
Jan 29 09:21:06 default systemd[2008]: Started app-org.chromium.Chromium-26741.scope.
Jan 29 09:21:06 default systemd[2008]: app-org.chromium.Chromium-25565.scope: Consumed 40.889s CPU time, 1.6G memory peak.
Jan 29 09:21:31 default dbus-daemon[1035]: [system] Failed to activate service ‘org.bluez’: timed out (service_start_timeout=25000ms)