NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.23k stars 14.22k forks source link

kdenlive: Nearly unreadable text in some panels #323296

Open lelgenio opened 4 months ago

lelgenio commented 4 months ago

Describe the bug

From 24.05 and forward, some panels in in kdenlive (In particular the Effects panel) have a black text color, even when using the default dark theme.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install NixOs 24.05
  2. Install Kdenlive from nixpkgs (via environment.systemPackages or profile)
  3. Look at the "Effects" panel

Expected behavior

Text should be readable

Screenshots

In my main computer: image

In a computer with minimal configuration, with NixOs 24.05 Gnome: image

Additional context

Notify maintainers

@turion

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
$ nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.95, NixOS, 24.05 (Uakari), 24.05.20240629.9354f82`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/r5clili0iqprbn4dnngkywsgxm51a5cw-source`

Add a :+1: reaction to issues you find important.

nixos-discourse commented 4 months ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/kdenlive-theme-is-broken/20719/3

turion commented 4 months ago

I cannot reproduce in KDE/Plasma. Maybe this is Gnome, or at least non-KDE specific? Can you post the warnings from the console (which are clipped in the screenshot) in detail here? It seems like there is some warning about color schemes that I don't have.

turion commented 4 months ago

Can reproduce in a VM with this minimal config:

{
    imports = [
      ./common/x11.nix
    ];

    services.xserver.enable = true;
    environment.systemPackages = with pkgs; [
      kdenlive
    ];
  }

So I'm pretty sure this is a non-KDE issue.

turion commented 4 months ago

Unfortunately I don't get your warning about color themes:

>>> machine.execute("env XDG_RUNTIME_DIR=$PWD DISPLAY=:0.0 kdenlive >&2 &")
(0, '')

>>> machine # QStandardPaths: wrong permissions on runtime directory /tmp, 0777 instead of 0700
machine # QStandardPaths: wrong permissions on runtime directory /tmp, 0777 instead of 0700
machine # Could not detect package type, probably default? App dir is "/nix/store/065kg8g9acxvf9fhzjdnkqh6wdcm9vyn-kdenlive-23.08.5/bin"
machine # No LADSPA plugins were found!
machine # 
machine # Check your LADSPA_PATH environment variable.
machine # profilePath from KdenliveSetting::mltPath:  "/nix/store/4f5x4xlsx6ylgw1fhwapmp14z1g6jc4z-mlt-7.24.0/share/mlt/profiles"                                                                                [F2] Menu - CPython 3.11.9 
machine # profilePath from appDir/../share:  "/nix/store/065kg8g9acxvf9fhzjdnkqh6wdcm9vyn-kdenlive-23.08.5/share/mlt-7/profiles"
machine # profilePath from build-time MLT_DATADIR:  "/nix/store/4f5x4xlsx6ylgw1fhwapmp14z1g6jc4z-mlt-7.24.0/share/mlt-7/profiles"
machine # meltPath from KdenliveSetting::meltPath:  "/nix/store/4f5x4xlsx6ylgw1fhwapmp14z1g6jc4z-mlt-7.24.0/bin/melt"
machine # plugin not available: "region"
machine # Empty metadata for  "glsl.manager"
machine # Empty metadata for  "telecide"
machine # plugin not available: "avfilter.acompressor"
K900 commented 4 months ago

Does this still happen with kdePackages.kdenlive?

turion commented 4 months ago

It's unclear:

image

There is no dark theme available with kdePackages.kdenlive, so can't test.

K900 commented 4 months ago

That is kind of working as intended. It should inherit your desktop theme.

turion commented 4 months ago

In Gnome with this config the text is fine:

{
    imports = [
      ./common/user-account.nix
    ];

    services.displayManager.autoLogin = {
      enable = true;
      user = "alice";
    };

    services.xserver.enable = true;
    services.xserver.desktopManager.gnome.enable = true;
    services.xserver.displayManager.gdm.enable = true;
    environment.systemPackages = with pkgs; [
      kdePackages.kdenlive
      kdePackages.breeze
    ];
  }

Even when selecting a dark theme. @lelgenio can you tell us more about your config? And can you try kdePackages.kdenlive?

lelgenio commented 4 months ago

@turion

It seems like there is some warning about color schemes that I don't have.

nix run nixpkgs#kdenlive


Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Could not detect package type, probably default? App dir is "/nix/store/kj1n50zfbw5jw9wmkbm9sin9kz80gm4l-kdenlive-23.08.5/bin"
kf.config.core: Watching absolute paths is not supported "/nix/store/3mld6h5mzgrpibd23xj6ail2ggwpx8rc-breeze-qt5-5.27.11-bin/share/color-schemes/BreezeDark.colors"
No LADSPA plugins were found!

Check your LADSPA_PATH environment variable.
profilePath from KdenliveSetting::mltPath:  "/nix/store/yz1770c47kcdhkl7lzjmgmqqd3cvnrbl-mlt-7.24.0/share/mlt-7/profiles"
meltPath from KdenliveSetting::meltPath:  "/nix/store/yz1770c47kcdhkl7lzjmgmqqd3cvnrbl-mlt-7.24.0/bin/melt"
plugin not available: "region"
Empty metadata for  "telecide"
Empty metadata for  "glsl.manager"
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.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.rgbparade"
plugin not available: "frei0r.scale0tilt"
plugin not available: "frei0r.tehRoxx0r"
plugin not available: "frei0r.vectorscope"
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"
kf.service.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
=== /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER
QQmlEngine::setContextForObject(): Object already has a QQmlContext
:::: NOT FOUND DOCUMENT GUIDES !!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!
qrc:/qml/timeline.qml:503: ReferenceError: proxy is not defined
qrc:/qml/timeline.qml:483: ReferenceError: proxy is not defined
==== NO PREVIOUS TIMELINE
::::::::::: connecting timeline:  QUuid("{efe2c3f3-fa36-48da-81ce-c857f51d9ccd}") , DUR:  0
root context get sub model new function
HHHHHHHHHHHH
INVALID BIN PLAYLIST...
=== OPENING FILE WITH TRACKS:  5
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2

Mãe, [01/07/2024 08:26]
___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
===== ACTIVATING DOCUMENT:  QUuid("{efe2c3f3-fa36-48da-81ce-c857f51d9ccd}") 
::::::::::::::::::::::
==== NO PREVIOUS TIMELINE
==== ABORTING NO TIMELINE AVAILABLE
::::::==

CLOSING TIMELINE MODEL

::::::::
========== READY FOR TASK DISCARD ON:  3
QPaintDevice: Cannot destroy paint device that is being painted


nix run nixpkgs#kdePackages.kdenlive


qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
Could not detect package type, probably default? App dir is "/nix/store/44lhw5n464wsvvb8i592ngq6d3vx7r8j-kdenlive-24.02.2/bin"
No LADSPA plugins were found!

Check your LADSPA_PATH environment variable.
profilePath from KdenliveSetting::mltPath:  "/nix/store/yz1770c47kcdhkl7lzjmgmqqd3cvnrbl-mlt-7.24.0/share/mlt-7/profiles"
meltPath from KdenliveSetting::meltPath:  "/nix/store/fpwn822hkg2k85665k6zbgv8d1lbiz2z-mlt-7.24.0/bin/melt"
plugin not available: "region"
Empty metadata for  "telecide"
Empty metadata for  "glsl.manager"
plugin not available: "avfilter.acompressor"
plugin not available: "avfilter.aecho"
plugin not available: "avfilter.agate"
plugin not available: "avfilter.atadenoise"
plugin not available: "avfilter.bs2b"
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.random"
plugin not available: "avfilter.removegrain"
plugin not available: "avfilter.separatefields"
plugin not available: "avfilter.shuffleplanes"
plugin not available: "avfilter.sofalizer"
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.rgbparade"
plugin not available: "frei0r.scale0tilt"
plugin not available: "frei0r.tehRoxx0r"
plugin not available: "frei0r.vectorscope"
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"
=== /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER
begin
OpenGL vendor "Intel"
OpenGL renderer "Mesa Intel(R) HD Graphics 620 (KBL GT2)"
OpenGL threaded? true
OpenGL ES? false
OpenGL maximum texture size = 16384
OpenGL maximum viewport size = 16384 x 16384
end
begin
OpenGL vendor "Intel"
OpenGL renderer "Mesa Intel(R) HD Graphics 620 (KBL GT2)"
OpenGL threaded? true
OpenGL ES? false
OpenGL maximum texture size = 16384
OpenGL maximum viewport size = 16384 x 16384
end
:::: NOT FOUND DOCUMENT GUIDES !!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!
qrc:/qml/timeline.qml:509: ReferenceError: proxy is not defined
qrc:/qml/timeline.qml:489: ReferenceError: proxy is not defined
==== NO PREVIOUS TIMELINE
::::::::::: connecting timeline:  QUuid("{86f7c4a1-06d1-4385-a72a-bf931e2b80a3}") , DUR:  0
root context get sub model new function
HHHHHHHHHHHH
INVALID BIN PLAYLIST...
=== OPENING FILE WITH TRACKS:  5
:::: FOUND TRACTOR WITH TRACKS:  2

__________________________
qrc:/qml/TrackHead.qml:449:21: QML Image: Failed to get image from provider: image://icon/kdenlive-show-audio
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
qrc:/qml/TrackHead.qml:449:21: QML Image: Failed to get image from provider: image://icon/kdenlive-show-audio
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
qrc:/qml/TrackHead.qml:449:21: QML Image: Failed to get image from provider: image://icon/kdenlive-show-audio
qrc:/qml/TrackHead.qml:449:21: QML Image: Failed to get image from provider: image://icon/kdenlive-show-audio
===== ACTIVATING DOCUMENT:  QUuid("{86f7c4a1-06d1-4385-a72a-bf931e2b80a3}") 
::::::::::::::::::::::
==== NO PREVIOUS TIMELINE
==== ABORTING NO TIMELINE AVAILABLE
::: REQUESTING SELECTION CLEAR!!!!!!
::::::==

CLOSING TIMELINE MODEL

::::::::
... FOUND CLIP:  "2"  =  "Sequências"
========== READY FOR TASK DISCARD ON:  3
begin
begin
QPaintDevice: Cannot destroy paint device that is being painted


@K900

Does this still happen with kdePackages.kdenlive?

I get a working white theme, just like @turion's screenshot.

@turion

In Gnome with this config the text is fine: ... Even when selecting a dark theme.

Yup! Same result on the default-gnome machine.

@lelgenio can you tell us more about your config?

The simplest of the affected systems is living-room laptop, which should have a relatively vanilla gnome configuration: https://gist.github.com/lelgenio/8adf4303297734759b3eaf7d0912ad2f

My main computer is also affected, but it has like 7200 LOC in configurations, I think we should just ignore it. Here's the config: https://git.lelgenio.com/lelgenio/nixos-config

K900 commented 4 months ago

So, Qt5 bad, Qt6 good, correct?

lelgenio commented 4 months ago

Yes

K900 commented 4 months ago

Then we should maybe accelerate directing people to the KF6 version.