Video editing software fails to launch on Whonix (Virtualbox/KVM)

Shotcut and Kdenlive both fail to launch on latest Whonix, even though they launch and work without issues on Mint in Virtual Box.

I tested with a freshly installed Whonix Workstation to make sure, that it’s not just mine.

Try to increase VM RAM.

Which virtualizer? Try a non-Whonix VM such as a Debian VM.

If that does not help, bugs must be reported directly against Debian and/or the original developers of the software.

Generic Bug Reproduction likely required.

Virtual Box.

I increased ram to 8GB and it did nothing. It launches and works on Linux Mint without issues with 4GB.

I tested in on Debian now and it works just fine on it. This has something to do with Whonix.

As a sidenote, when I installed Shotcut via Flatpak. It launches, but it doesn’t display any video only audio and I can’t add anything to the timeline.

Compare VirtualBox host software settings: working vs broken VMs

Specifically 3D acceleration might make a difference. See:
Kicksecure Tuning chapter Hardware-accelerated Graphics in Kicksecure wiki

(Whonix is based on Kicksecure.)

Did you try them yourself?

Here’s what kdenlive says when I try to launch it

Could not detect package type, probably default? App dir is "/usr/bin"
profilePath from appDir/../share:  "/usr/share/mlt-7/profiles"
meltPath from KdenliveSetting::rendererPath:  ""
meltPath from profilePath/../../../bin:  "/usr/bin/melt-7"
Empty metadata for  "avcolour_space"
Empty metadata for  "avcolor_space"
Empty metadata for  "avdeinterlace"
Empty metadata for  "swscale"
Empty metadata for  "swresample"
Empty metadata for  "deinterlace"
Empty metadata for  "glsl.manager"
Empty metadata for  "movit.convert"
Empty metadata for  "movit.crop"
Empty metadata for  "movit.resample"
Empty metadata for  "movit.resize"
Empty metadata for  "audiochannels"
Empty metadata for  "audioconvert"
Empty metadata for  "imageconvert"
Empty metadata for  "telecide"
plugin not available: "avfilter.acompressor"
plugin not available: "avfilter.aecho"
plugin not available: "avfilter.agate"
plugin not available: "avfilter.atadenoise"
plugin not available: "avfilter.bwdif"
plugin not available: "avfilter.deblock"
plugin not available: "avfilter.dedot"
plugin not available: "avfilter.deflate"
plugin not available: "avfilter.derain"
plugin not available: "avfilter.doubleweave"
plugin not available: "avfilter.field"
plugin not available: "avfilter.framestep"
plugin not available: "avfilter.fspp"
plugin not available: "avfilter.graphmonitor"
plugin not available: "avfilter.hqdn3d"
plugin not available: "avfilter.inflate"
plugin not available: "avfilter.lagfun"
plugin not available: "avfilter.loudnorm"
plugin not available: "avfilter.mcdeint"
plugin not available: "avfilter.random"
plugin not available: "avfilter.removegrain"
plugin not available: "avfilter.separatefields"
plugin not available: "avfilter.shuffleplanes"
plugin not available: "avfilter.sr"
plugin not available: "avfilter.tmix"
plugin not available: "avfilter.w3fdif"
plugin not available: "avfilter.weave"
plugin not available: "avfilter.yadif"
plugin not available: "frei0r.baltan"
plugin not available: "frei0r.bgsubtract0r"
plugin not available: "frei0r.bigsh0t_eq_mask"
plugin not available: "frei0r.bigsh0t_eq_to_rect"
plugin not available: "frei0r.bigsh0t_eq_to_stereo"
plugin not available: "frei0r.bigsh0t_hemi_to_eq"
plugin not available: "frei0r.bigsh0t_rect_to_eq"
plugin not available: "frei0r.bigsh0t_stabilize_360"
plugin not available: "frei0r.bigsh0t_transform_360"
plugin not available: "frei0r.delay0r"
plugin not available: "frei0r.delaygrab"
plugin not available: "frei0r.lightgraffiti"
plugin not available: "frei0r.lightgraffiti"
plugin not available: "frei0r.tehRoxx0r"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa.9354877"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "movit.unsharp_mask"
plugin not available: "timewarp"
plugin not available: "region"
=== /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.audiosource"
kf.service.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
kf.service.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
QQmlEngine::setContextForObject(): Object already has a QQmlContext
zsh: segmentation fault (core dumped)  kdenlive

No.

If that does not help, bugs must be reported directly against Debian and/or the original developers of the software.

For your knowledge the same issue is in kicksecure vb, but not on Debian guest with kicksecure installed.

I don’t know how they are supposed to fix a problem on kicksecure / whonix workstation. You need to fix it.

Understood.

I cannot.

Bugs must be reported directly against Debian and/or the original developers of the software. This is because Kicksecure / Whonix in principle still “is Debian”. All it has is extra software packages, configurations. Nothing in principle makes it “no longer Debian”. Technically, it’s still fully binary compatible with Debian.

Debian didn’t say that derivatives aren’t allowed to report bugs. (As long as they’re binary compatible, meaning not recompiling binary packages from Debian which Kicksecure / Whonix isn’t doing.)

Also upstream developers (original creators) of the software can be contacted as their application crashing with a segfault without user actionable advice on what to change can be considered a bug.

Not very helpful but I can report that I have used Kdenlive successfully on Whonix Workstation.

using qubes?

Try:

unset QMLSCENE_DEVICE

And then try to start from command line.

This is most likely the issue. Reproducible for me.

Search the forums and/or source code for QMLSCENE_DEVICE to learn about the background why this

QMLSCENE_DEVICE=softwarecontext

was enabled by default. In short: It was to fix other applications that need this in VMs.

And before you’re asking, no, it’s unrelated to security.
Worst case side effect: select slow running other graphical applications.
In other words, is OK. Does not harm security. You can safely use run the following command.

I’ll write documentation about this in the near future.

After this works for me.

1 Like

That is it. Thank you for solving this this issue. I had a hunch it had something to do with Qt.

Whonix is not meant to be used for GPU intensive programs since Whonix runs primary in a virtual machine and most hypervisors do not have excellent track-record when it comes to graphical performance.

Whonix is not meant to be used for GPU intensive programs

This, and in addition to that, Kdenlive might be the most bug-written, terrible piece of software to ever be cleared for deployment.

Even an online editor will yield better results with far less headache.

See: Renderer