https://bugs.kde.org/show_bug.cgi?id=519941
Bug ID: 519941
Summary: Spectacle crashes when VAAPI probes AMD + NVIDIA
render nodes on hybrid GPU systems (KPipeWire
segfault)
Classification: Applications
Product: Spectacle
Version First unspecified
Reported In:
Platform: Manjaro
OS: Linux
Status: REPORTED
Severity: crash
Priority: NOR
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 192146
--> https://bugs.kde.org/attachment.cgi?id=192146&action=edit
bt full report
When trying to record video with spectacle this happens:
spectacle: Unable to load Tesseract candidate "tesseract" : "Cannot load
library tesseract: tesseract: cannot open shared object file: No such file or
directory"
spectacle: Unable to locate a suitable Tesseract shared library
spectacle: Tesseract runtime library not available
kpipewire_vaapi_logging: VAAPI: VA-API NVDEC driver [direct backend] in use for
device "/dev/dri/renderD128"
kpipewire_vaapi_logging: VAAPI: entrypoint 6 of profile 13 is not supported by
the device "/dev/dri/renderD128"
kpipewire_vaapi_logging: VAAPI: entrypoint 8 of profile 13 is not supported by
the device "/dev/dri/renderD128"
kpipewire_vaapi_logging: VAAPI: entrypoint 6 of profile 6 is not supported by
the device "/dev/dri/renderD128"
kpipewire_vaapi_logging: VAAPI: entrypoint 8 of profile 6 is not supported by
the device "/dev/dri/renderD128"
kpipewire_vaapi_logging: VAAPI: entrypoint 6 of profile 7 is not supported by
the device "/dev/dri/renderD128"
kpipewire_vaapi_logging: VAAPI: entrypoint 8 of profile 7 is not supported by
the device "/dev/dri/renderD128"
kpipewire_vaapi_logging: VAAPI: Mesa Gallium driver 26.0.6-arch1.1 for AMD
Ryzen 7 9700X 8-Core Processor (radeonsi, raphael_mendocino, ACO, DRM 3.64,
6.18.26-1-MANJARO) in use for device "/dev/dri/renderD129"
zsh: segmentation fault (core dumped) spectacle
I asked chatgpt for help (I don't know how to debug this) in diagnosing the
issue and it summarised it as follows:
Spectacle/KPipeWire crashes (segfault) when VAAPI enumerates multiple DRM
devices in a hybrid NVIDIA + AMD system where AMD VAAPI fails initialization
and NVIDIA VAAPI shows unbound/null driver contexts.
Logs:
(Please see the attached files)
STEPS TO REPRODUCE
1. Run spectacle normally or through terminal (in a hybrid AMD iGPU Nvidia dGPU
setup)
2. Try to record a full screen video and then end the recording
3. Video recording fails
OBSERVED RESULT
Video fails to record
(it works fine when using LIBVA_DRIVER_NAME=nvidia spectacle)
EXPECTED RESULT
Spectacle should:
- gracefully ignore VAAPI devices that fail initialization
- not crash if one GPU backend fails
- fall back to software encoding or a single working GPU backend
ADDITIONAL INFORMATION
GPU setup:
NVIDIA RTX 5070 (NVIDIA-SMI 595.71.05)
AMD Ryzen 7 9700X integrated Radeon graphics (iGPU)
VAAPI stack:
libva + mesa VAAPI (radeonsi)
libva-nvidia-driver present
PipeWire + KPipeWire used for screen capture
spectacle --version
spectacle 6.6.4
kinfo:
Operating System: Manjaro Linux
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.25.0
Qt Version: 6.11.0
Kernel Version: 6.18.26-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 9700X 8-Core Processor
Memory: 16 GB of RAM (14.8 GB usable)
Graphics Processor 1: NVIDIA GeForce RTX 5070/PCIe/SSE2
Graphics Processor 2: NVIDIA GeForce RTX 5070/PCIe/SSE2
--
You are receiving this mail because:
You are watching all bug changes.