Firefox and other applications keep crashing at the same

For the past month, randomly all of the non system applications open will crash, like Firefox and discord, however applications like settings, are perfectly fine and stays open. Afterwards, I can open them back up just fine and keep using them until they crash again. I have opened the apps with the command line and looked for errors that come when they crash, however none occur at the time of the crash. I was wondering if anyone had a similar issue, and or knew how to fix it? Thanks

Maybe start with system info

inxi -Fazy

sorry about that

System:
  Kernel: 6.5.13-7-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.5-x86_64
    root=UUID=9630c494-0a4a-43d7-a8b4-9ea15c78698f rw quiet
    cryptdevice=UUID=2fabc450-56f0-4337-a516-9d3b0a6e5a03:luks-2fabc450-56f0-4337-a516-9d3b0a6e5a03
    root=/dev/mapper/luks-2fabc450-56f0-4337-a516-9d3b0a6e5a03 splash
    apparmor=1 security=apparmor udev.log_priority=3
  Desktop: GNOME v: 45.2 tk: GTK v: 3.24.39 wm: gnome-shell dm: GDM v: 45.0.1
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 81SY v: Legion Y540-15IRH-PG0
    serial: <superuser required> Chassis: type: 10 v: Legion Y540-15IRH-PG0
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0R32862 WIN
    serial: <superuser required> UEFI: LENOVO v: BHCN42WW date: 05/21/2021
Battery:
  ID-1: BAT0 charge: 45.4 Wh (100.0%) condition: 45.4/52.5 Wh (86.5%)
    volts: 12.7 min: 11.4 model: SMP L17M3PG3 type: Li-poly serial: <filter>
    status: full cycles: 113
CPU:
  Info: model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Coffee Lake
    gen: core 9 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xF4
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 2821 high: 4299 min/max: 800/4500 scaling:
    driver: intel_pstate governor: powersave cores: 1: 4291 2: 800 3: 800 4: 800
    5: 800 6: 800 7: 4294 8: 4255 9: 4208 10: 4271 11: 4299 12: 4243
    bogomips: 62431
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, STIBP: conditional,
    RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Lenovo
    driver: nouveau v: kernel non-free: 545.xx+ status: current (as of 2023-11;
    EOL~2026-12-xx) arch: Turing code: TUxxx process: TSMC 12nm FF
    built: 2018-2022 pcie: gen: 3 speed: 8 GT/s lanes: 16 ports: active: eDP-1
    empty: DP-1,DP-2,HDMI-A-1 bus-ID: 01:00.0 chip-ID: 10de:1f91 class-ID: 0300
    temp: 38.0 C
  Device-2: Microdia Webcam Vitade AF driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-2.3:8
    chip-ID: 0c45:6366 class-ID: 0102 serial: <filter>
  Device-3: Lite-On Integrated Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:3 chip-ID: 04ca:7070
    class-ID: 0e02
  Display: wayland server: X.org v: 1.21.1.10 with: Xwayland v: 23.2.3
    compositor: gnome-shell driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: nouveau gpu: nouveau display-ID: 0
  Monitor-1: eDP-1 model: BOE Display 0x0700 built: 2016 res: 1920x1080
    dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: max: 1920x1080 min: 800x600
  API: EGL v: 1.5 hw: drv: nvidia nouveau platforms: device: 0 drv: nouveau
    device: 1 drv: swrast gbm: drv: nouveau surfaceless: drv: nouveau wayland:
    drv: nouveau x11: drv: nouveau
  API: OpenGL v: 4.5 compat-v: 4.3 vendor: mesa v: 23.1.9-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: NV167 device-ID: 10de:1f91
    memory: 3.89 GiB unified: no display-ID: :0.0
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:a348 class-ID: 0403
  Device-2: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
    gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10fa
    class-ID: 0403
  Device-3: C-Media Audio Adapter (Unitek Y-247A)
    driver: cmedia_hs100b,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 1-2.1:4 chip-ID: 0d8c:0014 class-ID: 0300
  Device-4: Microdia Webcam Vitade AF driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-2.3:8
    chip-ID: 0c45:6366 class-ID: 0102 serial: <filter>
  API: ALSA v: k6.5.13-7-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.0 status: off tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:a370 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 3000 bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp7s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) driver: btusb v: 0.8
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-14:7
    chip-ID: 8087:0aaa class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 5.1
    lmp-v: 10 status: discoverable: yes pairing: yes class-ID: 7c010c
Drives:
  Local Storage: total: 1.14 TiB used: 28.66 GiB (2.4%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVLB256HBHQ-000L2
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 3L1QEXH7 temp: 31.9 C
    scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM049-2GH172
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: LXM3 scheme: GPT
Partition:
  ID-1: / raw-size: 89.16 GiB size: 87.21 GiB (97.81%) used: 28.63 GiB (32.8%)
    fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-2fabc450-56f0-4337-a516-9d3b0a6e5a03
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
    used: 28.9 MiB (11.3%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 58.0 C pch: 51.0 C mobo: N/A gpu: nouveau
    temp: 38.0 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 361 Uptime: 2h 2m wakeups: 1 Memory: total: 8 GiB
  available: 7.68 GiB used: 3.44 GiB (44.8%) Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
  Packages: pm: pacman pkgs: 1296 libs: 357 tools: gnome-software,pamac,yay
  pm: flatpak pkgs: 0 Shell: Zsh v: 5.9 running-in: gnome-terminal inxi: 3.3.31

You have no SWAP.
It is expected you will lock up when you hit the 7.68G of memory use.

You have a number of options for SWAP … I usually recommend zram these days.

Continuing the discussion from Awful performance since install:

PS.

The 6.5 kernel is EOL. Please install 6.6, boot into it, and remove 6.5.

1 Like

Ok thank you so much!

Set up the swap. I suggest you zram: zram - ArchWiki Install zram-generator:
zram - ArchWiki

After changing to a fresher kernel (e.g. 6.6) I would recommend to install the proprietary Nvidia driver for your graphics device:

sudo mhwd -a pci nonfree 0300

Any particular reason you are dividing by 1? :stuck_out_tongue:

Yeah - most guides have it divide by 4 or 5, etc.
I keep the division there to denote the possibility of using arithmetic.
But I find that usually a zram (swap) device equal to RAM is usually roughly what is desired.
Also, given the compression ratio (in this case of zstd) this should mean that at any given point, if all things are filled … it should only take at maximum somewhere around 1/4 of the physical RAM for that compressed swap device.

(see more of the technical mathematics at the archwiki: zram - ArchWiki)

Ok, makes sense I guess. Just asked because it’s redundant. I know it takes around 1/4 to 1/5 of what the setting is (with zstd compression at least). I use ram / 2, but with twice as much ram.

And if you build (big, blink) browsers then it will probably not be enough :sweat_smile:

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.