Bug 446170

Summary: Timeline panel does not render properly on 30 bit displays
Product: [Applications] kdenlive Reporter: bogdan
Component: Timeline & EditingAssignee: Jean-Baptiste Mardelle <jb>
Status: CONFIRMED ---    
Severity: normal CC: bogdan, julius.kuenzel
Priority: NOR    
Version First Reported In: 21.12.1   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot
Kdenlive AppImage works on 24 bits color (8 bit/color)
effects panel is not populated on 30 bit displays

Description bogdan 2021-11-27 19:06:26 UTC
Created attachment 144007 [details]
screenshot

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
The tracks panel is not rendered. Unable to add video or audio tracks. It works fine on 8-bit display settings

STEPS TO REPRODUCE
1. start the application
2. Look at the tracks panel
3. 

OBSERVED RESULT
No tracks slots are available to add your video or audio tracks

EXPECTED RESULT
Tracks slots should be available to add your video or audio tracks like on 8 bit displays

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version:   5.18.4
KDE Frameworks Version:  5.68
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Comment 1 Julius Künzel 2022-01-11 04:25:39 UTC
Thanks for your report!

Please let us know what packaging type (Flatpak, Appimage, PPA,…) you use. Also please test if it still happens with an other packaging type.
And do you use Wayland or X11?

In addition would be also be helpful if you could paste your system information (available in the Plasma System Settings) here.
Comment 2 bogdan 2022-01-11 04:55:48 UTC
(In reply to Julius Künzel from comment #1)
> Thanks for your report!
> 
> Please let us know what packaging type (Flatpak, Appimage, PPA,…) you use.
> Also please test if it still happens with an other packaging type.
> And do you use Wayland or X11?
> 
> In addition would be also be helpful if you could paste your system
> information (available in the Plasma System Settings) here.

I tried 21.08 and 21.12.1 and both exhibit the same issue. I use the AppImage version since ubuntu is so much behind anything with KDE.

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.11.0-44-generic
OS Type: 64-bit
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 62.7 GiB of RAM

I am using X11 with 30 bit color and AMDGPU Pro driver.  Wayland as far as I know does not support 30 bit colors yet.

Most KDE and QT applications work just fine., kdenlive mostly works but it has the reported issue, probably that panel does something different.
Comment 3 Julius Künzel 2022-01-11 14:07:43 UTC
Thanks for the additional info! Can you maybe try the appimage from here: https://binary-factory.kde.org/job/Kdenlive_Stable_appimage-centos7/ ? This Appimage is NOT PRODUCTION READY (we are aware that there are several startup errors and a strange font), but it is packaged different and many issues are due to packaging issues. Another option would be to try the PPA or Flatpak? This way we can check whether it is a packaging issue with the Appimage…
Comment 4 bogdan 2022-01-11 16:37:15 UTC
Created attachment 145330 [details]
Kdenlive AppImage works on 24 bits color (8 bit/color)

I did not try the appimage you have suggested, but the one I have downloaded from the downloads page and the tracks pannel show up correctly. Therefore I am convinced that the problem with the panel is the way it renders in 30-bit color displays. 

However, I am going to try the flatpack and Appimage from the centos directory that you have suggested, although based on my experience with 30-bit color displays I am skeptical that the results will be better.

I attached a new screenshot showing that the appimage I have works correctly on 24 bit color displays
Comment 5 bogdan 2022-01-11 17:09:11 UTC
I tried the centos Appimage and it has the same issues and in addition, it complains about KIO access at startup, which the official one does not.

I also tried the PPA version, which besides screwing up by plasma widgets did nothing more. 

As I envisioned, the other versions did not work either and I am convinced is a rendering problem for the tracks pannel, which I believe has a different rendering.

Both Blender and Openshot work just fine on 30 bit displays
Comment 6 Julius Künzel 2022-01-11 18:51:31 UTC
Thanks for making these test! The timeline panel is written in QML while most of the other panels are QWidgets so that might be the reason. 

One last question for the moment: the effects list (on your first screenshot it is on the left side above the timeline tabbed together with eg. the Project Bin) is also written in QML does this one render correct?
Comment 7 bogdan 2022-01-12 04:40:59 UTC
Created attachment 145350 [details]
effects panel is not populated on 30 bit displays

The effects tab is also empty in a 30-bit display,  whereas on a 24-bit display is populated with an expandable list. It looks likely that QML panels do not display correctly in 30-bit color displays. Perhaps QML needs some tweaking.  I attached a screenshot focusing on the effects panel.
Comment 8 Julius Künzel 2022-01-14 01:35:07 UTC
Okay, thanks! So it is definitely a QML issue. I did a quick research but couldn't find any useful information about this. Also I think nobody in the dev team has a 30bit Monitor atm to debug it so it unfortunately might not be fixed very soon :-(
Comment 9 bogdan 2022-01-14 04:24:58 UTC
I understand. I still think it is important for any visual-oriented software to support 30-bit colors.  It is amazing that the penetration of such technologies takes such a long time.  I have a 30-bit monitor and card supporting 30 bit since 2014, as I am a photographer hobbyist.   They are more expensive indeed. The problem is that Apple is not pushing it and nothing gets done. 

In any case, thanks for trying, and if you want me to test anything do not hesitate to contact me.