Mint "Out of memory error"

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Mint "Out of memory error"

Post by SMG »

Martin2p wrote: Sun Jan 29, 2023 5:28 pm so:

1. Starting repair defekt packages on recoverymode for Kernel 5.15.0.56
-> it loaded much and also Kernel 5.15.0.58

2. I updated the file:

Code: Select all

sudo nano /usr/sbin/mkinitramfs 
like it is described here: viewtopic.php?p=2230013#p2230013
(zstd) compress="zstd -q -19 -T0" ;;)
I do not know if this is a typo on your part in this post, but that line is not supposed to start with (. It is supposed to be

Code: Select all

zstd)   compress="zstd -q -19 -T0" ;;
If that is not working, the other change you could try is this one. To make that change, you would modify /etc/default/grub to change this line

Code: Select all

#GRUB_GFXMODE=640x480
to

Code: Select all

GRUB_GFXMODE=800x600
(remove the # and change the values) and then run

Code: Select all

sudo update-grub
and then boot with a newer kernel which has the proper drivers for your hardware.
Martin2p wrote: Sun Jan 29, 2023 5:28 pmDriver 525.78.0.1. is running but not detecting my Geforce 4080 correctly -> GPU Fans running fast and no information are visible on the nvidia tool.
If no information is visible on the Nvidia tool, then the driver is not running properly. Please supply the output of

Code: Select all

inxi -Gx
and

Code: Select all

dpkg -l | grep -i nvidia
and

Code: Select all

mokutil --sb-state
Martin2p wrote: Sun Jan 29, 2023 5:28 pmSo I think its better to wait until Linux Mint comes with Kernel 6 and the new nvidia driver is a fix part of the PPA.
The earliest that Linux Mint comes with kernel 6 will be some time this summer and maybe not even then. I have helped many people who are already using Kernel 6 and Nvidia drivers. You do not have to wait if you want to run your system now.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Martin2p
Level 1
Level 1
Posts: 13
Joined: Fri Jan 27, 2023 1:14 pm
Location: Sweden

Re: Mint "Out of memory error"

Post by Martin2p »

Hi,

after this

Code: Select all

GRUB_GFXMODE=800x600
Starting Linux Mint with Kernel 6 and 5.15.0.58 : Out of memory
The same on the recovery mode.

Kernel 5.15.0.56 works, but now I have also in Linux Mint the resolution: 800x600 :lol:
==================================================================

Code: Select all

inxi -Gx
Graphics:
  Device-1: Intel vendor: Micro-Star MSI driver: N/A bus-ID: 00:02.0
  Device-2: NVIDIA vendor: ZOTAC driver: N/A bus-ID: 01:00.0
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: nouveau,vesa
    unloaded: fbdev,modesetting gpu: N/A resolution: 800x600~75Hz
  OpenGL: renderer: llvmpipe (LLVM 13.0.1 256 bits) v: 4.5 Mesa 22.0.5
    direct render: Yes

Code: Select all

dpkg -l | grep -i nvidia
ii  libnvidia-cfg1-525:amd64                   525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-525                       525.78.01-0ubuntu0.22.04.1                 all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-525:amd64                525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA libcompute package
ii  libnvidia-compute-525:i386                 525.78.01-0ubuntu0.22.04.1                 i386         NVIDIA libcompute package
ii  libnvidia-decode-525:amd64                 525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-525:i386                  525.78.01-0ubuntu0.22.04.1                 i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-egl-wayland1:amd64               1:1.1.9-1.1                                amd64        Wayland EGL External Platform library -- shared library
ii  libnvidia-encode-525:amd64                 525.78.01-0ubuntu0.22.04.1                 amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-525:i386                  525.78.01-0ubuntu0.22.04.1                 i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-525:amd64                  525.78.01-0ubuntu0.22.04.1                 amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-525:amd64                   525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-525:i386                    525.78.01-0ubuntu0.22.04.1                 i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-525:amd64                     525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-525:i386                      525.78.01-0ubuntu0.22.04.1                 i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  nvidia-compute-utils-525                   525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA compute utilities
ii  nvidia-dkms-525                            525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA DKMS package
ii  nvidia-driver-525                          525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-525                   525.78.01-0ubuntu0.22.04.1                 amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-525                   525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA kernel source package
ii  nvidia-prime                               0.8.17.1                                   all          Tools to enable NVIDIA's Prime
ii  nvidia-prime-applet                        1.3.5                                      all          An applet for NVIDIA Prime
ii  nvidia-settings                            510.47.03-0ubuntu1                         amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-525                           525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                    0.18.2                                     all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-525              525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA binary Xorg driver

Code: Select all

mokutil --sb-state
SecureBoot disabled
Don't know which problem the newer kernel has and how to fix that. Obviously makes the changes nothing for it, only for the standard-old one.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Mint "Out of memory error"

Post by SMG »

Martin2p wrote: Mon Jan 30, 2023 1:16 am Hi,

after this

Code: Select all

GRUB_GFXMODE=800x600
Starting Linux Mint with Kernel 6 and 5.15.0.58 : Out of memory
The same on the recovery mode.

Kernel 5.15.0.56 works, but now I have also in Linux Mint the resolution: 800x600 :lol:
That is because there are no graphics drivers loaded (not Nvidia or Intel). The 5.15 kernels are too old to have the necessary drivers for your new CPU.

Graphics:
Device-1: Intel vendor: Micro-Star MSI driver: N/A bus-ID: 00:02.0
Device-2: NVIDIA vendor: ZOTAC driver: N/A bus-ID: 01:00.0
Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: nouveau,vesa
unloaded: fbdev,modesetting gpu: N/A resolution: 800x600~75Hz
OpenGL: renderer: llvmpipe (LLVM 13.0.1 256 bits) v: 4.5 Mesa 22.0.5
direct render: Yes
Martin2p wrote: Mon Jan 30, 2023 1:16 amDon't know which problem the newer kernel has and how to fix that. Obviously makes the changes nothing for it, only for the standard-old one.
We might be able to see what the problem is if you manually install the Nvidia driver instead of using Driver Manager.

Run the following

Code: Select all

apt remove nvidia-driver-525
and then

Code: Select all

apt autoremove
and then re-install it and post all the output here

Code: Select all

apt install nvidia-driver-525
Do NOT reboot after re-installing the driver because it is likely there will be errors. (At least I'm hoping there will be errors which might explain what is happening.)
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Martin2p
Level 1
Level 1
Posts: 13
Joined: Fri Jan 27, 2023 1:14 pm
Location: Sweden

Re: Mint "Out of memory error"

Post by Martin2p »

Hi,

I did your recommended tasks and I got no errors during the installation.
Martin2p
Level 1
Level 1
Posts: 13
Joined: Fri Jan 27, 2023 1:14 pm
Location: Sweden

Re: Mint "Out of memory error"

Post by Martin2p »

Concratuilations!

After rebooting the system it works now with the new Kernel! :)

Code: Select all

dpkg -l | grep -i nvidia
ii  libnvidia-cfg1-525:amd64                   525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-525                       525.78.01-0ubuntu0.22.04.1                 all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-525:amd64                525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA libcompute package
ii  libnvidia-compute-525:i386                 525.78.01-0ubuntu0.22.04.1                 i386         NVIDIA libcompute package
ii  libnvidia-decode-525:amd64                 525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-525:i386                  525.78.01-0ubuntu0.22.04.1                 i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-egl-wayland1:amd64               1:1.1.9-1.1                                amd64        Wayland EGL External Platform library -- shared library
ii  libnvidia-encode-525:amd64                 525.78.01-0ubuntu0.22.04.1                 amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-525:i386                  525.78.01-0ubuntu0.22.04.1                 i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-525:amd64                  525.78.01-0ubuntu0.22.04.1                 amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-525:amd64                   525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-525:i386                    525.78.01-0ubuntu0.22.04.1                 i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-525:amd64                     525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-525:i386                      525.78.01-0ubuntu0.22.04.1                 i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  nvidia-compute-utils-525                   525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA compute utilities
ii  nvidia-dkms-525                            525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA DKMS package
ii  nvidia-driver-525                          525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-525                   525.78.01-0ubuntu0.22.04.1                 amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-525                   525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA kernel source package
ii  nvidia-prime                               0.8.17.1                                   all          Tools to enable NVIDIA's Prime
ii  nvidia-prime-applet                        1.3.5                                      all          An applet for NVIDIA Prime
ii  nvidia-settings                            510.47.03-0ubuntu1                         amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-525                           525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                    0.18.2                                     all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-525              525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA binary Xorg driver
martin@martin-MS-7D36:~$ 

Code: Select all

inxi -Gx
Graphics:
  Device-1: Intel vendor: Micro-Star MSI driver: i915 v: kernel
    bus-ID: 00:02.0
  Device-2: NVIDIA vendor: ZOTAC driver: nvidia v: 525.78.01
    bus-ID: 01:00.0
  Display: x11 server: X.Org v: 1.21.1.3 driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa gpu: i915,nvidia
    resolution: 3840x2160~60Hz
  OpenGL: renderer: NVIDIA GeForce RTX 4080/PCIe/SSE2
    v: 4.6.0 NVIDIA 525.78.01 direct render: Yes
Thank you very much!

P.s.:

Nvidia tool shows now all correct dates from the graphic card and the GPU Fans are off :)
Martin2p
Level 1
Level 1
Posts: 13
Joined: Fri Jan 27, 2023 1:14 pm
Location: Sweden

Re: Mint "Out of memory error"

Post by Martin2p »

When I make a conclusion so people with this problem have to:

1. Install a new Kernel (6.xxxx)
2. Install the graphic card driver manuell and not with the distribution driver tool.

+ maybe edit this file

Code: Select all

sudo nano /usr/sbin/mkinitramfs 

Right?

At least as long as the new Nvidia driver 528 is not a part of the PPA, I thinkt so.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Mint "Out of memory error"

Post by SMG »

Martin2p wrote: Mon Jan 30, 2023 3:59 pm When I make a conclusion so people with this problem have to:
It really depends on the hardware what the best approach is.
Martin2p wrote: Mon Jan 30, 2023 3:59 pm1. Install a new Kernel (6.xxxx)
I gave you a specific kernel from the Ubuntu repositories that I knew worked with Nvidia drivers and LM21.1.

The 6.0-oem kernel worked fine for you, but someone else I'm helping tried a different kernel, the 6.1-oem kernel, and they had to install a different version gcc (than what comes with LM21 versions) in order to get it to work.
Martin2p wrote: Mon Jan 30, 2023 3:59 pm2. Install the graphic card driver manuell and not with the distribution driver tool.
The way you installed the driver "manually" is the same driver that the Driver Tool installs. They come from the same repository. Installing it manually just gives more details on what is happening so if there is a problem then one is more likely to see there errors. There is no difference in the driver. I'm not sure what happened when you installed it from Driver Manager.
Martin2p wrote: Mon Jan 30, 2023 3:59 pm+ maybe edit this file

Code: Select all

sudo nano /usr/sbin/mkinitramfs 
Editing either that or grub seems to be fixing most "out of memory" errors.

I'm going to be updating the Tips for Troubleshooting Graphics Issues (including external monitors not working) and will probably add the suggestions about "out of memory" errors because it has been coming up a lot with LM21 versions and it seems to mostly strike those using Nvidia proprietary drivers.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Installation & Boot”