Recently, I decided to shift to Ubuntu 20.04. So, I installed it on dual boot setup along with my already installed Windows 10. It worked great for 3 days (great enough for me to shift a lot of my stuff to Ubuntu and install and customize everything) and when I had finished settling in, Ubuntu started freezing every time after booting on opening applications like Chrome, VS Code, or even Terminal.
I TRIED A LOT OF STUFF (trust me, asking a question requires much more effort than researching) from the already existing answers (like increasing swap memory on Ubuntu, downloading third-party cleaner softwares etc.) but of no use. So I decided to revert back to Windows (thankfully I had it on dual boot). But, the exact same thing started happening on Windows.
Finally, I decided against keeping Ubuntu and deleted the Linux partition (the GRUB files are still on my PC though) and was really optimistic about the situation being fine after I did that, but voila - my high-end PC which ran perfectly smooth has started freezing.
So, here is a summary of what I tried:
- Clear cache memory, RAM.
- Running scans for faults in Hard Disk.
- Updating NVIDIA drivers on Ubuntu.
- Disabling secure boot to apply fixes on login.
- Increased swap memory on Ubuntu.
- Tried nomodeset option.
- Deleted Ubuntu partition (from Windows).
Please help!
UPDATE: I think I may have found an answer in my case; there was a faulty extension that I developed in Ubuntu and used it in chrome on both my OS. I am not sure about this and if this is the case, it may not be of much help to future readers (but thank you for the comment and answer).