Title
Kdenlive Clip/Project Monitor missing or grey after Kicksecure/Whonix “software rendering in VMs” profile sets QMLSCENE_DEVICE=softwarecontext
Summary
After applying Kicksecure/Whonix environment hardening (specifically the script /etc/profile.d/20_software_rendering_in_vms.sh), Kdenlive started launching but the Clip Monitor and Project Monitor were either missing or showed a grey/empty area. Audio playback still worked.
The issue occurred across:
-
Debian-packaged Kdenlive
-
Flatpak version
-
AppImage version
So it was not package-specific.
System context
-
Debian-based system with Kicksecure hardening
-
KDE Plasma / Qt-based desktop
-
AMD Radeon Graphics (radeonsi, Renoir)
-
OpenGL working normally (
glxinfoshows AMD renderer) -
VAAPI functional (verified via
vainfo) -
MLT works correctly (
meltruns SDL/XGL consumers)
Symptom
-
Kdenlive starts normally
-
Project opens
-
Timeline works
-
Audio playback works
-
Video monitors (Clip/Project) are missing or grey
-
Multiple QML warnings appear
Debug findings
The key issue was an environment variable:
QMLSCENE_DEVICE=softwarecontext
This was set globally by:
/etc/profile.d/20_software_rendering_in_vms.sh
Script logic summary:
-
checks
eglinfo -
if it detects
llvmpipe, forces:export QMLSCENE_DEVICE=softwarecontext -
intended for VM fallback rendering safety
However on this system:
eglinfo shows BOTH:
- AMD Radeon (radeonsi)
- llvmpipe (secondary contexts)
This caused a false positive detection, triggering software rendering mode even though hardware acceleration is available.
Root cause
The script assumes:
if ANY llvmpipe appears → system is software-rendered → force Qt software rendering
But modern systems may show:
-
multiple EGL contexts
-
mixed renderer outputs
-
fallback llvmpipe contexts alongside real GPU contexts
This results in incorrect global environment override.
Fix
Temporary per-session fix:
unset QMLSCENE_DEVICE
kdenlive
Or safer launch wrapper:
alias kdenlive='env -u QMLSCENE_DEVICE kdenlive'
Result
After unsetting QMLSCENE_DEVICE, Kdenlive monitors immediately worked again (Clip + Project Monitor restored, GPU rendering functional).
Recommendation
-
Avoid global forcing of
QMLSCENE_DEVICE=softwarecontexton hybrid systems -
Improve EGL detection logic to ensure:
-
AMD/NVIDIA GPU presence takes priority over llvmpipe fallback contexts
-
or require only llvmpipe, not “any occurrence”
-
Optional note
This likely affects other Qt Quick / QML applications, not only Kdenlive.