Compositor crashes while using Kdenlive

After the compositor crashes, it is disabled, and I can continue to use Kdenlive normally without any issues, but, e.g. Krohnkite does not work. I have to re-enable the compositor and reboot to make the compositor work again.

This says something like:

OpenGL compositing (default) as produced the crash of KDE in the past.
This was caused, most probably, by an issue in the driver.
etc.

What can I do to make the compositor not crash? Please tell me which commands do you wish to run and to give the output under this topic.

Thanks!

Kwin should refresh when you click on Reactivează detectarea OpenGL
If i recall correctly you have a Laptop with hybrid intel+nvidia GPU. What is your method of switching graphics and do you use the iGPU or dGPU when opening Kdenlive?

1 Like

@bogdancovaciu When I click “Reactivează detectarea OpenGL” it does not refresh the compositor. It does change something well but it needs a reboot.

Neofetch shows that I have GPU: NVIDIA GeForce RTX 2060 Mobile.

I never switch graphics. I do not know what iGPU or dGPU are.

Thanks.

Let me check if you shared somewhere the complete inxi -Fazy (it looks like is from when you had the 5.8 kernel)
If you only have the Nvidia GPU aka dGPU = dedicated GPU, then maybe we can tweak the /etc/X11/mhwd.d/nvidia.conf that you can share here.
The iGPU is a short for integrated GPU.

1 Like

The current inxi -Fazy:

System:
  Kernel: 5.10.2-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=d6a72d1f-3160-46db-80c7-2c374ed21471 rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.20.4 tk: Qt 5.15.2 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: HP product: OMEN by HP Laptop 17-cb0xxx v: N/A 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: HP model: 8603 v: 45.40 serial: <filter> UEFI: AMI v: F.23 
  date: 02/18/2020 
Battery:
  ID-1: BAT1 charge: 65.5 Wh condition: 65.5/70.1 Wh (93%) volts: 17.3/15.4 
  model: COMPAL PABAS0241231 type: Li-ion serial: <filter> status: Full 
  Device-1: hidpp_battery_0 
  model: Logitech G305 Lightspeed Wireless Gaming Mouse serial: <filter> 
  charge: 100% (should be ignored) rechargeable: yes status: Discharging 
CPU:
  Info: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 9E (158) stepping: A (10) 
  microcode: DE L2 cache: 12 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 62431 
  Speed: 800 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 
  4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 
  Vulnerabilities: 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: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Hewlett-Packard 
  driver: nvidia v: 455.45.01 alternate: nouveau,nvidia_drm bus ID: 01:00.0 
  chip ID: 10de:1f11 
  Device-2: Cheng Uei Precision Industry (Foxlink) HP Wide Vision HD 
  Integrated Webcam 
  type: USB driver: uvcvideo bus ID: 1-5:4 chip ID: 05c8:03bc 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: nvidia 
  display ID: :0 screens: 1 
  Screen-1: 0 s-res: 5760x1200 s-dpi: 128 s-size: 1143x246mm (45.0x9.7") 
  s-diag: 1169mm (46") 
  Monitor-1: DP-0 res: 3840x1200 hz: 60 dpi: 93 size: 1052x329mm (41.4x13.0") 
  diag: 1102mm (43.4") 
  Monitor-2: DP-2 res: 1920x1080 hz: 144 dpi: 128 size: 382x215mm (15.0x8.5") 
  diag: 438mm (17.3") 
  OpenGL: renderer: GeForce RTX 2060/PCIe/SSE2 v: 4.6.0 NVIDIA 455.45.01 
  direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci 
  bus ID: 00:1f.3 chip ID: 8086:a348 
  Device-2: NVIDIA TU106 High Definition Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 10de:10f9 
  Device-3: C-Media Audio Adapter type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-3.4:7 chip ID: 0d8c:000c 
  Sound Server: ALSA v: k5.10.2-2-MANJARO 
Network:
  Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel 
  bus ID: 00:14.3 chip ID: 8086:a370 
  IF: wlp0s20f3 state: down mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: 3000 bus ID: 3c:00.0 
  chip ID: 10ec:8168 
  IF: enp60s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  IF-ID-1: br-28a5ada02005 state: down mac: <filter> 
  IF-ID-2: br-471d57f337fe state: down mac: <filter> 
  IF-ID-3: br-492cf1db5d11 state: down mac: <filter> 
  IF-ID-4: br-4ed8977b4f26 state: down mac: <filter> 
  IF-ID-5: br-575437368d89 state: down mac: <filter> 
  IF-ID-6: br-81ea752696cf state: down mac: <filter> 
  IF-ID-7: br-8e2f0f583274 state: down mac: <filter> 
  IF-ID-8: br-a9899d2bfe75 state: down mac: <filter> 
  IF-ID-9: br-b396320647a9 state: down mac: <filter> 
  IF-ID-10: br-c561c1409b8e state: down mac: <filter> 
  IF-ID-11: br-cfab67bdf823 state: down mac: <filter> 
  IF-ID-12: br-d7ea6c69f903 state: down mac: <filter> 
  IF-ID-13: br-e84008fd8c6c state: up speed: 10000 Mbps duplex: unknown 
  mac: <filter> 
  IF-ID-14: br-f7aac0d39dcc state: down mac: <filter> 
  IF-ID-15: docker0 state: down mac: <filter> 
  IF-ID-16: veth1badc3b state: up speed: 10000 Mbps duplex: full mac: <filter> 
  IF-ID-17: veth349eeb9 state: up speed: 10000 Mbps duplex: full mac: <filter> 
  IF-ID-18: veth9e4f7c9 state: up speed: 10000 Mbps duplex: full mac: <filter> 
  IF-ID-19: vethc53d68b state: up speed: 10000 Mbps duplex: full mac: <filter> 
  IF-ID-20: vethd1effcb state: up speed: 10000 Mbps duplex: full mac: <filter> 
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
  v: 3.0 port: 5020 bus ID: 00:17.0 chip ID: 8086.282a rev: 10 
Drives:
  Local Storage: total: 1.84 TiB used: 250.21 GiB (13.3%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVLB1T0HBLR-000H1 
  size: 953.87 GiB block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 serial: <filter> rev: HPS0NEXF temp: 46.9 C 
  ID-2: /dev/sda maj-min: 8:0 type: USB vendor: Samsung model: PSSD T7 Touch 
  size: 931.51 GiB block size: physical: 512 B logical: 512 B serial: <filter> 
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure? 
Partition:
  ID-1: / raw size: 575.57 GiB size: 566.28 GiB (98.39%) 
  used: 107.13 GiB (18.9%) fs: ext4 dev: /dev/nvme0n1p1 maj-min: 259:1 
  ID-2: /boot/efi raw size: 4.66 GiB size: 4.65 GiB (99.80%) 
  used: 280 KiB (0.0%) fs: vfat dev: /dev/nvme0n1p3 maj-min: 259:3 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 19.53 GiB used: 1.05 GiB (5.4%) 
  priority: -2 dev: /dev/nvme0n1p4 maj-min: 259:4 
Sensors:
  System Temperatures: cpu: 47.0 C mobo: 10.0 C gpu: nvidia temp: 42 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 362 Uptime: 10h 23m wakeups: 31 Memory: 15.51 GiB 
  used: 7.09 GiB (45.7%) Init: systemd v: 247 Compilers: gcc: 10.2.0 
  Packages: 1516 pacman: 1511 lib: 433 flatpak: 0 snap: 5 Shell: fish v: 3.1.2 
  running in: konsole inxi: 3.2.01 

The /etc/X11/mhwd.d/nvidia.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 440.82

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
	Option "NoLogo" "1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Thanks.

Ok, make a backup of the current config:
sudo cp /etc/X11/mhwd.d/nvidia.conf /etc/X11/mhwd.d/nvidia.conf_BCK

then edit the /etc/X11/mhwd.d/nvidia.conf with kate and paste this content in it:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "TripleBuffer"  "On"
    Option "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline = On}
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Open up terminal and run this command:
echo "export KWIN_TRIPLE_BUFFER=1" | sudo tee /etc/profile.d/kwin.sh

then run:
sudo mhwd-gpu --setmod nvidia --setxorg /etc/X11/mhwd.d/nvidia.conf

then reboot your system:
systemctl reboot

In case you end up with some issue, or black screen, you should be able to restore your backup and remove the file /etc/profile.d/kwin.sh … or maybe you will have to append to it also another two lines, so it will look like this:

export KWIN_TRIPLE_BUFFER=1
export __GL_YIELD=USLEEP
export __GL_MaxFramesAllowed=1

Then set your compositor like this if you still notice some issues:

1 Like

After systemctl reboot everything works well and Kdenlive does not break the compositor.

FYI the font size of the titlebar and Plasma task manager is smaller, in Konsole too.

I will try later to adjust with the “Global scale” option in this settings section, if I see the need to change the font size again:

I hope I can get the same clarity of text as before with that setting.

Thanks! :smiley:

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