Bug 499483

Summary: QBackingStoreDefaultCompositor: Failed to build graphics pipeline
Product: [Applications] kdenlive Reporter: stemy
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: REOPENED ---    
Severity: crash CC: balooii, irfanhakim.as, julius.kuenzel, sobersthebear
Priority: NOR    
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description stemy 2025-02-03 23:55:04 UTC
SUMMARY
The app crash at startup.

STEPS TO REPRODUCE
1. Launch the app.


OBSERVED RESULT
Crash without having showed a single window.

EXPECTED RESULT
The app is launched.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-1007-lowlatency (64-bit)
Graphics Platform: Wayland
Processors: 6 × Intel® Core™ i5-8500 CPU @ 3.00GHz
Memory: 15.5 Gio of RAM
Graphics Processor: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2

ADDITIONAL INFORMATION
The console output

stem@stem-kubuntu:~$ flatpak run --branch=stable --arch=x86_64 --command=kdenlive --file-forwarding org.kde.kdenlive @@ %F @@
kf.config.core: Watching absolute paths is not supported "/usr/share/color-schemes/BreezeLight.colors"
kf.notifications: Failed to play sound with canberra: File or data not found
kf.config.core: Watching absolute paths is not supported "/usr/share/color-schemes/BreezeDark.colors"
Starting render server
profilePath from KdenliveSetting::mltPath:  "/app/share/mlt-7/profiles"
meltPath from KdenliveSetting::meltPath:  "/app/bin/melt"
plugin not available: "region"
Could not parse stylesheet of object AssetPanel(0x5801cece9a10)
Could not parse stylesheet of object TransitionStackView(0x5801cf24d050)
Could not parse stylesheet of object EffectStackView(0x5801ceabf930)
Could not parse stylesheet of object MixStackView(0x5801cf20cec0)
Empty metadata for  "telecide"
kf.i18n: Trying to convert empty KLocalizedString to QString.
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.delay0r"
plugin not available: "frei0r.delaygrab"
plugin not available: "frei0r.facebl0r"
plugin not available: "frei0r.facedetect"
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"
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.blur"
plugin not available: "movit.sharpen"
plugin not available: "movit.diffusion"
plugin not available: "movit.flip"
plugin not available: "movit.glow"
plugin not available: "movit.lift_gamma_gain"
plugin not available: "movit.mirror"
plugin not available: "movit.opacity"
plugin not available: "movit.rect"
plugin not available: "movit.saturation"
plugin not available: "movit.unsharp_mask"
plugin not available: "movit.vignette"
plugin not available: "movit.white_balance"
plugin not available: "timewarp"
kf.kio.widgets: Failed to check which JobView API is supported "org.freedesktop.DBus.Error.ServiceUnknown"
qt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version 7.1 GPL version 2 or later
qt.multimedia.ffmpeg: Available HW decoding frameworks:
qt.multimedia.ffmpeg:      vulkan
qt.multimedia.ffmpeg: Available HW encoding frameworks:
qt.multimedia.ffmpeg:      vulkan
Could not parse stylesheet of object AssetPanel(0x5801cece9a10)
begin
OpenGL vendor ""
OpenGL renderer ""
OpenGL threaded? false
OpenGL ES? true
OpenGL maximum texture size = 3801209
OpenGL maximum viewport size = 271384704 x 32766
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShaderProgram::uniformLocation(Ytex): shader program is not linked
QOpenGLShaderProgram::uniformLocation(Utex): shader program is not linked
QOpenGLShaderProgram::uniformLocation(Vtex): shader program is not linked
QOpenGLShaderProgram::uniformLocation(colorspace): shader program is not linked
QOpenGLShaderProgram::uniformLocation(projection): shader program is not linked
QOpenGLShaderProgram::uniformLocation(modelView): shader program is not linked
QOpenGLShaderProgram::attributeLocation(vertex): shader program is not linked
QOpenGLShaderProgram::attributeLocation(texCoord): shader program is not linked
end
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 matrix;
    float opacity;
};

uniform buf _19;

attribute vec4 vertexCoord;
varying vec4 color;
attribute vec4 vertexColor;
attribute float _qt_order;

void main()
{
    gl_Position = _19.matrix * vertexCoord;
    color = vertexColor * _19.opacity;
    gl_Position.z = _qt_order * gl_Position.w;
}


Failed to build graphics pipeline state
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 modelViewMatrix;
    mat4 projectionMatrix;
    vec2 textureScale;
    float dpr;
    vec4 color;
};

uniform buf _17;

varying vec2 sampleCoord;
attribute vec2 tCoord;
attribute vec4 vCoord;
attribute float _qt_order;

void main()
{
    sampleCoord = tCoord * _17.textureScale;
    vec4 xformed = _17.modelViewMatrix * vCoord;
    gl_Position = _17.projectionMatrix * vec4(floor((xformed.xyz * _17.dpr) + vec3(0.5)) / vec3(_17.dpr), xformed.w);
    gl_Position.z = _qt_order * gl_Position.w;
}


Failed to build graphics pipeline state
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 matrix;
    float opacity;
};

uniform buf _19;

attribute vec4 vertexCoord;
varying vec4 color;
attribute vec4 vertexColor;
attribute float _qt_order;

void main()
{
    gl_Position = _19.matrix * vertexCoord;
    color = vertexColor * _19.opacity;
    gl_Position.z = _qt_order * gl_Position.w;
}


Failed to build graphics pipeline state
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 matrix;
    float opacity;
};

uniform buf _19;

attribute vec4 vertexCoord;
varying vec4 color;
attribute vec4 vertexColor;
attribute float _qt_order;

void main()
{
    gl_Position = _19.matrix * vertexCoord;
    color = vertexColor * _19.opacity;
    gl_Position.z = _qt_order * gl_Position.w;
}


Failed to build graphics pipeline state
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 modelViewMatrix;
    mat4 projectionMatrix;
    vec2 textureScale;
    float dpr;
    vec4 color;
};

uniform buf _17;

varying vec2 sampleCoord;
attribute vec2 tCoord;
attribute vec4 vCoord;
attribute float _qt_order;

void main()
{
    sampleCoord = tCoord * _17.textureScale;
    vec4 xformed = _17.modelViewMatrix * vCoord;
    gl_Position = _17.projectionMatrix * vec4(floor((xformed.xyz * _17.dpr) + vec3(0.5)) / vec3(_17.dpr), xformed.w);
    gl_Position.z = _qt_order * gl_Position.w;
}


Failed to build graphics pipeline state
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 matrix;
    float opacity;
};

uniform buf _19;

attribute vec4 vertexCoord;
varying vec4 color;
attribute vec4 vertexColor;
attribute float _qt_order;

void main()
{
    gl_Position = _19.matrix * vertexCoord;
    color = vertexColor * _19.opacity;
    gl_Position.z = _qt_order * gl_Position.w;
}


Failed to build graphics pipeline state
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 matrix;
    float opacity;
};

uniform buf _19;

attribute vec4 vertexCoord;
varying vec4 color;
attribute vec4 vertexColor;
attribute float _qt_order;

void main()
{
    gl_Position = _19.matrix * vertexCoord;
    color = vertexColor * _19.opacity;
    gl_Position.z = _qt_order * gl_Position.w;
}


Failed to build graphics pipeline state
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 modelViewMatrix;
    mat4 projectionMatrix;
    vec2 textureScale;
    float dpr;
    vec4 color;
};

uniform buf _17;

varying vec2 sampleCoord;
attribute vec2 tCoord;
attribute vec4 vCoord;
attribute float _qt_order;

void main()
{
    sampleCoord = tCoord * _17.textureScale;
    vec4 xformed = _17.modelViewMatrix * vCoord;
    gl_Position = _17.projectionMatrix * vec4(floor((xformed.xyz * _17.dpr) + vec3(0.5)) / vec3(_17.dpr), xformed.w);
    gl_Position.z = _qt_order * gl_Position.w;
}


Failed to build graphics pipeline state
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 matrix;
    float opacity;
};

uniform buf _19;

attribute vec4 vertexCoord;
varying vec4 color;
attribute vec4 vertexColor;
attribute float _qt_order;

void main()
{
    gl_Position = _19.matrix * vertexCoord;
    color = vertexColor * _19.opacity;
    gl_Position.z = _qt_order * gl_Position.w;
}


Failed to build graphics pipeline state
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 matrix;
    float opacity;
};

uniform buf _19;

attribute vec4 vertexCoord;
varying vec4 color;
attribute vec4 vertexColor;
attribute float _qt_order;

void main()
{
    gl_Position = _19.matrix * vertexCoord;
    color = vertexColor * _19.opacity;
    gl_Position.z = _qt_order * gl_Position.w;
}


Failed to build graphics pipeline state
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 modelViewMatrix;
    mat4 projectionMatrix;
    vec2 textureScale;
    float dpr;
    vec4 color;
};

uniform buf _17;

varying vec2 sampleCoord;
attribute vec2 tCoord;
attribute vec4 vCoord;
attribute float _qt_order;

void main()
{
    sampleCoord = tCoord * _17.textureScale;
    vec4 xformed = _17.modelViewMatrix * vCoord;
    gl_Position = _17.projectionMatrix * vec4(floor((xformed.xyz * _17.dpr) + vec3(0.5)) / vec3(_17.dpr), xformed.w);
    gl_Position.z = _qt_order * gl_Position.w;
}


Failed to build graphics pipeline state
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 matrix;
    float opacity;
};

uniform buf _19;

attribute vec4 vertexCoord;
varying vec4 color;
attribute vec4 vertexColor;
attribute float _qt_order;

void main()
{
    gl_Position = _19.matrix * vertexCoord;
    color = vertexColor * _19.opacity;
    gl_Position.z = _qt_order * gl_Position.w;
}


Failed to build graphics pipeline state
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 vertexTransform;
    mat3 textureTransform;
    float opacity;
    int textureSwizzle;
};

uniform buf _17;

varying vec2 v_texcoord;
attribute vec2 texcoord;
attribute vec3 position;

void main()
{
    v_texcoord = (_17.textureTransform * vec3(texcoord, 1.0)).xy;
    gl_Position = _17.vertexTransform * vec4(position, 1.0);
}


QBackingStoreDefaultCompositor: Failed to build graphics pipeline
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 vertexTransform;
    mat3 textureTransform;
    float opacity;
    int textureSwizzle;
};

uniform buf _17;

varying vec2 v_texcoord;
attribute vec2 texcoord;
attribute vec3 position;

void main()
{
    v_texcoord = (_17.textureTransform * vec3(texcoord, 1.0)).xy;
    gl_Position = _17.vertexTransform * vec4(position, 1.0);
}


QBackingStoreDefaultCompositor: Failed to build graphics pipeline
Failed to compile shader: 
Source was:
#version 100

struct buf
{
    mat4 vertexTransform;
    mat3 textureTransform;
    float opacity;
    int textureSwizzle;
};

uniform buf _17;

varying vec2 v_texcoord;
attribute vec2 texcoord;
attribute vec3 position;

void main()
{
    v_texcoord = (_17.textureTransform * vec3(texcoord, 1.0)).xy;
    gl_Position = _17.vertexTransform * vec4(position, 1.0);
}


QBackingStoreDefaultCompositor: Failed to build graphics pipeline
stem@stem-kubuntu:~$
Comment 1 Irfan 2025-02-12 17:34:31 UTC
Having the exact same issue, except that it does technically show a single window before crashing - which is its "loading screen" that shows upon launch before it actually launches the application.

Kdenlive version (Flatpak):

```
Kdenlive        org.kde.kdenlive        24.12.1 stable
```

System information:

```
Operating System: EndeavourOS 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.6.70-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2
Manufacturer: ASUS
```

Log from launching the app until it crashes (posted as a link due to character limit): [QBackingStoreDefaultCompositor: Failed to build graphics pipeline](https://gist.github.com/irfanhakim-as/4f51e6718b0a157e4d89b2aa2b9543a5)
Comment 2 Irfan 2025-02-18 06:16:43 UTC
(In reply to Irfan from comment #1)
> Having the exact same issue, except that it does technically show a single
> window before crashing - which is its "loading screen" that shows upon
> launch before it actually launches the application.
> 
> Kdenlive version (Flatpak):
> 
> ```
> Kdenlive        org.kde.kdenlive        24.12.1 stable
> ```
> 
> System information:
> 
> ```
> Operating System: EndeavourOS 
> KDE Plasma Version: 6.2.5
> KDE Frameworks Version: 6.10.0
> Qt Version: 6.8.1
> Kernel Version: 6.6.70-1-lts (64-bit)
> Graphics Platform: Wayland
> Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
> Memory: 31.3 GiB of RAM
> Graphics Processor: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2
> Manufacturer: ASUS
> ```
> 
> Log from launching the app until it crashes (posted as a link due to
> character limit): [QBackingStoreDefaultCompositor: Failed to build graphics
> pipeline](https://gist.github.com/irfanhakim-as/
> 4f51e6718b0a157e4d89b2aa2b9543a5)

Still facing the same error on the latest update (Flatpak) version `24.12.2`:

```
QBackingStoreDefaultCompositor: Failed to build graphics pipeline
```
Comment 3 Julius Künzel 2025-02-19 11:51:25 UTC
Thanks for your report!

Please provide a backtrace for the crash as described here https://kdenlive.org/en/bug-reports/ and here https://docs.flatpak.org/en/latest/debugging.html

Note: Please avoid to post super long logs as a post here, send them as an attachment instead please.

Please remember to change the status of this report when providing the requestes details.
Comment 4 Bug Janitor Service 2025-03-06 03:47:23 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2025-03-21 03:47:10 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.
Comment 6 Elias 2025-04-19 03:12:27 UTC
I've had this exact same problem for two months. reinstalled, scrubbed all trace of the flatpak and any kdenlive files. just updated to fedora 42, still getting the exact. same. problem.
Comment 7 Irfan 2025-04-23 00:57:23 UTC
(In reply to Elias from comment #6)
> I've had this exact same problem for two months. reinstalled, scrubbed all
> trace of the flatpak and any kdenlive files. just updated to fedora 42,
> still getting the exact. same. problem.

On the exact same boat here. The app still works though on a separate machine of mine that runs the same distro and Kdenlive version, it also has an NVIDIA GPU albeit a different one (1650 Super).

If you could provide more information as detailed by the other user/contributor, Julius that'd be great:

> Please provide a backtrace for the crash as described here https://kdenlive.org/en/bug-reports/ and here https://docs.flatpak.org/en/latest/debugging.html
> Note: Please avoid to post super long logs as a post here, send them as an attachment instead please.
> Please remember to change the status of this report when providing the requestes details.
Comment 8 Irfan 2025-04-23 08:18:09 UTC
Idk what exactly fixed it, but I had just updated my EndeavourOS system and Flatpak and Kdenlive now launches perfectly fine again!

My current system information:

```
Operating System: EndeavourOS 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.12.24-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080 Ti
Manufacturer: ASUS
```

My Kdenlive Flatpak is still running version `25.04.0`, so something from either the system or Flatpak update might have fixed the cause.
Comment 9 Irfan 2025-04-25 00:30:22 UTC
(In reply to Irfan from comment #8)
> Idk what exactly fixed it, but I had just updated my EndeavourOS system and
> Flatpak and Kdenlive now launches perfectly fine again!

Nevermind, the issue has resurfaced, somehow and I still cannot launch Kdenlive. I have now idea how this app could be so fragile, even when it's installed as a Flatpak.
Comment 10 balooii 2025-04-25 11:49:58 UTC
The provided logs suggest that there may be a problem with detecting OpenGL as vendor and renderer are reported as empty "". It should print something about Nvidia if that is the GPU you're using.

```
OpenGL vendor ""
OpenGL renderer ""
OpenGL threaded? false
OpenGL ES? true
OpenGL maximum texture size = 3801209
OpenGL maximum viewport size = 271384704 x 32766
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
```

I would suggest to
* check that your nvidia drivers are up-to-date, as well as the flatpak GL runtime. The runtime should be called like this `org.freedesktop.Platform.GL.nvidia-<MAJORVERSION>-<MINORVERSION>`.
* try to start the app via appimage instead of flatpak
* try accessing OpenGL info about your system without using Kdenlive e.g. by running command `glxinfo -B`. This should also show vendor/renderer information.
* if it still cant detect your GPU as openGL renderer, try starting the app with these environment variables set QT_QUICK_BACKEND=software QT_OPENGL=software
Comment 11 Irfan 2025-04-28 10:52:24 UTC
(In reply to balooii from comment #10)
> * check that your nvidia drivers are up-to-date, as well as the flatpak GL
> runtime. The runtime should be called like this
> `org.freedesktop.Platform.GL.nvidia-<MAJORVERSION>-<MINORVERSION>`.

My NVIDIA drivers were up-to-date, as well as my Flatpak GL runtime(s):

```sh
❯ modinfo nvidia | grep ^version
version:        570.144
```

```sh
❯ flatpak list --user | grep -i org.freedesktop.Platform.GL.nvidia
nvidia-570-124-04       org.freedesktop.Platform.GL.nvidia-570-124-04           1.4
nvidia-570-144  org.freedesktop.Platform.GL.nvidia-570-144              1.4
```

> * try to start the app via appimage instead of flatpak

I was able to download and launch the AppImage version `24.12.3`.

> * try accessing OpenGL info about your system without using Kdenlive e.g. by
> running command `glxinfo -B`. This should also show vendor/renderer
> information.

I got this output:

```sh
❯ glxinfo -B
name of display: :1
display: :1  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 12288 MB
    Total available memory: 12288 MB
    Currently available dedicated video memory: 9868 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 570.144
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 570.144
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 570.144
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
```

> * if it still cant detect your GPU as openGL renderer, try starting the app
> with these environment variables set QT_QUICK_BACKEND=software
> QT_OPENGL=software

I added these env variables through Flatseal, and it launches the app successfully - tho I assume this is not a viable workaround and is merely for troubleshooting?

I've also added the logs when launching the Flatpak through the terminal, here: https://gist.github.com/irfanhakim-as/4f51e6718b0a157e4d89b2aa2b9543a5#file-launch_kdenlive_28-04-2025-log.

Thanks for the helpful troubleshooting instructions btw, sorry for returning late as I've only gotten access to my PC after the weekend.
Comment 12 balooii 2025-04-28 11:34:31 UTC
Hey, thanks for the detailed response.

> I added these env variables through Flatseal, and it launches the app successfully - tho I assume this is not a viable workaround and is merely for troubleshooting?

yes exactly, just for troubleshooting. You should remove those env vars again for further testing.

As it works with appimage maybe there is an issue with something in the cache or configuration. Can you temporarily move away your local kdenlive flatpak directory so it will create a new pristine profile and try again?

```
mv ~/.var/app/org.kde.kdenlive ~/.var/app/org.kde.kdenlive.bak
```

If that works move it back and move away just the cache subdirectory in it.

Next thing we could try if you get the same info from glxinfo when you run it inside flatpak. Luckily its available on flathub:
```
flatpak install org.freedesktop.Platform.GlxInfo
flatpak run org.freedesktop.Platform.GlxInfo -B
```

On my system this gives me the same output as when running glxinfo natively.
Comment 13 Irfan 2025-04-28 14:24:12 UTC
(In reply to balooii from comment #12)
> Hey, thanks for the detailed response.

No, you!

> As it works with appimage maybe there is an issue with something in the
> cache or configuration. Can you temporarily move away your local kdenlive
> flatpak directory so it will create a new pristine profile and try again?

I've done this before, and have done this again, and yea doing this does not fix it.

> Next thing we could try if you get the same info from glxinfo when you run
> it inside flatpak. Luckily its available on flathub:
> ```
> flatpak install org.freedesktop.Platform.GlxInfo
> flatpak run org.freedesktop.Platform.GlxInfo -B
> ```
> 
> On my system this gives me the same output as when running glxinfo natively.

Do you know which of these should I install?

```
❯ flatpak install --user org.freedesktop.Platform.GlxInfo
Looking for matches…
Similar refs found for ‘org.freedesktop.Platform.GlxInfo’ in remote ‘flathub’ (user):

   1) app/org.freedesktop.Platform.GlxInfo/x86_64/21.08
   2) app/org.freedesktop.Platform.GlxInfo/x86_64/22.08
   3) app/org.freedesktop.Platform.GlxInfo/x86_64/23.08
   4) app/org.freedesktop.Platform.GlxInfo/x86_64/24.08
   5) app/org.freedesktop.Platform.GlxInfo/x86_64/20.08
```

For now, I've installed what I assume is the latest (24.08) and got this result:

```sh
❯ flatpak run org.freedesktop.Platform.GlxInfo -B
name of display: :1
display: :1  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 12288 MB
    Total available memory: 12288 MB
    Currently available dedicated video memory: 9760 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 570.144
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 570.144
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 570.144
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
```
Comment 14 balooii 2025-04-30 06:59:58 UTC
> Do you know which of these should I install?
> For now, I've installed what I assume is the latest (24.08)

That's the same version I went with as well :thumbsup:

Given these results, I would have to check the code in Kdenlive and/or find a way to reproduce this to find out more. Cannot think of more things you could try to assist troubleshooting this issue atm. Maybe just double-check in Flatseal that Kdenlive has access to your GPU device=all. Should be default though.
Comment 15 Irfan 2025-04-30 09:56:01 UTC
(In reply to balooii from comment #14)
> Maybe just double-check
> in Flatseal that Kdenlive has access to your GPU device=all. Should be
> default though.

Yep, it's at its default (besides some additional permissions to certain locations/directories) and `device` is set to `all`.

I'm just really curious how it was broken for many months on my desktop (gone through several updates), worked again at some point after a full system update - but only for a little bit bcos soon after I realise that it's not launching again.
Comment 16 balooii 2025-05-08 15:47:39 UTC
Not much new to report just that I remembered that I could use prime as I have an additional Nvidia GPU in my laptop (RTX 3050) besides my main integrated Intel GPU.
-> No crash in neither Flatpak or AppImage using the same driver version you reported...

Log:
begin
OpenGL vendor "NVIDIA Corporation"
OpenGL renderer "NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2"
OpenGL threaded? true
OpenGL ES? false
OpenGL maximum texture size = 32768
OpenGL maximum viewport size = 32768 x 32768
end

---

I noticed you both reported Wayland use. While it worked for me I didn't try using Nvidia GPU also as my main GPU used by my wayland compositor. 
So could be there is some issue on that front (wayland/nvidia has had issues for years though it seemingly got a lot there are still wayland compositors out there which still don't support/recommend it).
Maybe the AppImage works because its using xwayland instead of wayland? Check that via the help menu | Components and try disabling wayland in flatseal to force it to use x11/xwayland. (assuming your compositor support xwayland for legacy apps, but I guess they all do?)
Comment 17 Irfan 2025-05-09 02:48:31 UTC
(In reply to balooii from comment #16)
> Maybe the AppImage works because its using xwayland instead of wayland?
> Check that via the help menu | Components and try disabling wayland in
> flatseal to force it to use x11/xwayland. (assuming your compositor support
> xwayland for legacy apps, but I guess they all do?)

Interesting, Flatseal shows that the Flatpak default has all of these settings; `socket=x11`, `socket=wayland`, and `socket=fallback-x11` enabled. As is, launching the Flatpak causes a crash.

However, if I disable `socket=wayland`, the Flatpak does launch. I then also verified that the now launched Flatpak is reported as a X11 window and not Wayland.

Then I went back and tried launching the AppImage, which does launch (very quickly, I guess Flatpaks are indeed a bit slower), and checked to confirm if it's not running on Wayland, but... it was reported as a Wayland window and not X11.

In both cases, how I checked was using this command in KDE Plasma, while the app is running:

```sh
qdbus6 org.kde.KWin /KWin org.kde.KWin.showDebugConsole
```

Not sure what this means, ultimately haha.
Comment 18 balooii 2025-05-09 08:16:35 UTC
> Interesting, Flatseal shows that the Flatpak default has all of these settings
Yeah, that's why I suggested to remove some to enforce it using either one or the other. I'm not sure how the selection process goes and which takes precedence if both options are available.

> However, if I disable `socket=wayland`, the Flatpak does launch. I then also verified that the now launched Flatpak is reported as a X11 window and not Wayland.
Cool, then we have confirmed its a wayland thing!

> Then I went back and tried launching the AppImage, which does launch (very quickly, I guess Flatpaks are indeed a bit slower), and checked to confirm if it's not running on Wayland, but... it was reported as a Wayland window and not X11.
> In both cases, how I checked was using this command in KDE Plasma, while the app is running:

Could you check this within the app? | Help | About Kdenlive | Components
Just to confirm if this has anything to do with flatpak or if the crash happens on both appimage/flatpak using wayland/nvidia/kwin/plasma.
On my system this method gives me different reports for the four scenarios so seems to be reliable way to detect what is actually used:

KDE Flatpak runtime (Wayland)
KDE Flatpak runtime (Xcb)
Arch Linux (Wayland)
Arch Linux (Xcb)

Tested cases:

force wayland, flatpak
flatseal: remove socket=x11 socket=fallback-x11 permissions, keep socket=wayland -> flatpak run

force x11/xwayland, flatpak
flatseal: remove socket=wayland, keep socket=x11 socket=fallback-x11 -> flatpak run

force wayland, appimage
QT_QPA_PLATFORM=wayland ./kdenlive-25.04.0-x86_64.AppImage

force x11/xwayland, appimage
QT_QPA_PLATFORM=xcb ./kdenlive-25.04.0-x86_64.AppImage

Thanks!
Comment 19 Irfan 2025-05-09 10:36:51 UTC
(In reply to balooii from comment #18)
> Tested cases:
> 
> force wayland, flatpak
> flatseal: remove socket=x11 socket=fallback-x11 permissions, keep
> socket=wayland -> flatpak run

The app crashed.

> force x11/xwayland, flatpak
> flatseal: remove socket=wayland, keep socket=x11 socket=fallback-x11 ->
> flatpak run

The app launched just fine, and `Help > About Kdenlive > Components` returned these:

```
Kdenlive: 25.04.0
MLT: 7.30.0
FFmpeg
KDE Frameworks: 6.13.0
Qt: Using 6.8.3 and built against 6.8.3
KDE Flatpak runtime (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.12.24-1-lts
```

> force wayland, appimage
> QT_QPA_PLATFORM=wayland ./kdenlive-25.04.0-x86_64.AppImage

The app launched just fine, but I couldn't get to the menu bar... my desktop uses a global menu bar, and the app's menu/toolbar does not appear on it as it normally does otherwise.

Checking with the `qdbus6` command though, it is running a Wayland window and not X11.

> force x11/xwayland, appimage
> QT_QPA_PLATFORM=xcb ./kdenlive-25.04.0-x86_64.AppImage

The app launched just fine, and `Help > About Kdenlive > Components` returned these:

```
Kdenlive: 25.04.0
MLT: 7.30.0
FFmpeg
KDE Frameworks: 6.13.0
Qt: Using 6.8.3 and built against 6.8.3
EndeavourOS (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.12.24-1-lts
```
Comment 20 balooii 2025-05-13 20:01:47 UTC
Is rendering mode in Plasma set to Vulkan? If so can you set it to OpenGL?

(just saw this mentioned in https://bugs.kde.org/show_bug.cgi?id=503162)