So I came across this problem and I struggle a lot to find out a solution. One easy step I did to solve this problem is to switch to another kernel version.
To do this you can do:
- Rinzwind already said in the comment.
- If you are like me that the other kernel option in the grub menu are not booting you can use this tool.
For the 2nd option I did the following and this fixed all my app chronium-based (google-chrome, vs code, MongoDb Compass etc...):
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
chmod +x ubuntu-mainline-kernel.sh
sudo mv ubuntu-mainline-kernel.sh /usr/local/bin/
uname -r to view current kernel version that was 5.19.0-1010-nvidia-lowlatency
sudo ubuntu-mainline-kernel.sh -c that checks for updated version of the kernel linux
sudo ubuntu-mainline-kernel.sh -r this list all the possible kernel version available because I wasn't really sure to switch to a major release of the kernel like v6.X.Y
- I picked the latest 5.19.Z so I submitted this command
sudo ubuntu-mainline-kernel.sh -i v5.19.17. This download the resources needed and install the kernel over the previous one.
reboot
After the reboot the system booted up and the kernel was changed to the version defined above. To check it use the previous command uname -r.
Now the code command launch VS code, google-chrome also Chrome and so on, without the --no-sandbox option.
The full kernel name now is for my PC:
Linux eugenio-i9 5.19.17-051917-generic #202210240939 SMP PREEMPT_DYNAMIC Mon Oct 24 09:43:01 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux