Linux Completely Freeze

Hi everyone
I have been familiar with Linux for about 6 months and I had a really bad start.
I am an Android developer and all my work is with Android Studio, Firefox, and Gimp. I first started with Ubuntu, then Debian, then I installed Mint. In all of them, I had a complete hang problem. Then I installed Arch, Manjmaro, and Garuda, but there was still a problem. Now I have installed Fedora, I really like it more than all the distributions I have installed so far, and I don’t want to install more distributions. I want to find the problem, but I don’t know where to start.

Most of the time it happens in the Android Studio environment.
After hanging, the Sysrq buttons also stop working.
The sound stops immediately.
There is no way but to restart with the power button

My Laptop: Lenovo ThinkBook 15-iil
CPU: Intel i5 1035G1
GPU: AMD Radeon 630
RAM: 16GiB
Disk: SSD 256 GiB ADATA

Help me, I really can’t go back to Windows :frowning:

I’d start by running a full memtest over night.

Thanks for your attention
I have booted and run memtest86, and the full test is passed without any error, 48 tests completed in 3 hours and 31 minutes :frowning:

Did you take a look at the logs? Anything suspicious in the moments before the freeze?

Honestly, I don’t know much about logs. How can I get it and send it to you?

See Viewing logs in Fedora :: Fedora Docs

Paste the logs here.

This is for the last frozen boot.
sudo journalctl -b -1 | curl -F ‘file=@-’ 0x0.st
http://0x0.st/Hfxs.txt

Sep 12 00:58:16 fedora systemd[1]: Reached target initrd-switch-root.target - Switch Root.
Sep 12 00:58:16 fedora systemd[1]: Starting initrd-switch-root.service - Switch Root…
Sep 12 00:58:16 fedora kernel: memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=1 ‘systemd’
Sep 12 00:58:16 fedora systemd[1]: Switching root.
Sep 12 00:58:16 fedora systemd-journald[269]: Received SIGTERM from PID 1 (systemd).
Sep 12 00:58:16 fedora systemd-journald[269]: Journal stopped
Sep 11 23:58:16 fedora kernel: audit:

Overall, unclear to me what’s happening.

However the above seems weird, or at least I don’t understand it. After journald service is killed, no further logs are created. Do you remember the time, the machine crashed? Was it on Sep 12 0:58? Because the next line is an entry from 23 hours before that.

In addition, I noted a lot of ACPI errors, can you upgrade your BIOS firmware to the latest available?

Actually that only shows a 1 hour difference, and this seems why

Sep 11 23:58:16 fedora systemd[1]: Successfully loaded SELinux policy in 68.907ms.
Sep 11 23:58:16 fedora systemd[1]: RTC configured in localtime, applying delta of 60 minutes to system time.
Sep 11 23:58:16 fedora systemd[1]: Relabelled /dev, /dev/shm, /run, /sys/fs/cgroup in 24.523ms.

So the time jumped from 00:58 Sep 12 to 23:58 Sep 11 at that time during the startup.
Although certainly not the cause of the freezing the user should reset the system time to be in UTC and allow the time zone to display the local time.

You are right, I have many ACPI errors. But I don’t think there is a solution, I always have the latest BIOS update installed!

I reinstalled Fedora and my system is now completely fresh (just installed android studio, gimp and enabled fractional scaling)
in Fedora, the system freezes only when Android Studio running!
This is my last boot that crashed in the new Fedora installation:
sudo journalctl -b -1 | curl -F ‘file=@-’ 0x0.st
http://0x0.st/Hf7C.txt

If it only happens when running Android Studio, I would report a bug against Android Studio… can you find logs specific to that program?

Have you tried both Xorg and Wayland sessions?

Have you seen Android Studio Frozen Keyboard? Do you have another system you can use to see if an ssh session can connect to the “frozen” Fedora system?

I have found the idea.log file, I have cleared it and run Android Studio to freeze, this log ends with a freeze:
https://transfer.sh/GKTNragUfe/idea.log
in the last saved lines just contain “@” and “^” after each other! what does it mean??

I have tested Xorg, and on both the issues still exist.

Yes, in the first run of Android Studio, it suggests disabling input methods and I do it.

Connecting with SSH when frozen is a good idea! I want to do it, thanks

I have tested it! when the system freezes my SSH connection can’t connect :frowning:

This is another one. Exactly the same, they end up with a few lines of repeated meaningless characters!
https://transfer.sh/1bVoSV6sAf/idea.log

Since transfer.sh is not a valid hostname on dns we cannot look at those files.
Post again with a valid link please.

excuse me, on 0x0.st:
http://0x0.st/HOX_.txt
http://0x0.st/HOXp.txt

You appear to be running java and using android-studio.
Have you searched for threads related to android or android-studio on fedora?

There are a lot of threads related over the past 4 or more years. Search there and you may find some ideas.

1 Like

I get an error message complaining about the hostname, but then the site opens.