Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatpak crashes when typing on KDE #410

Open
eclipseo opened this issue Oct 28, 2023 · 5 comments
Open

Flatpak crashes when typing on KDE #410

eclipseo opened this issue Oct 28, 2023 · 5 comments

Comments

@eclipseo
Copy link

Since the latest version, every time I type in Element, it crashes.

I use Fedora 39, Plasma under wayland.

The latest working version is ecd5a820c14ce6598f5d9dc049d89763165ea9e63232d6523422563431b77d37

with flatpak update --commit ecd5a820c14ce6598f5d9dc049d89763165ea9e63232d6523422563431b77d37 im.riot.Riot

@SISheogorath
Copy link
Collaborator

Do you have any error outputs? Also does it also take place if you use flatseal or alike to use XWayland instead?

@liutaurasa
Copy link

Same here, Fedora 39.

$ flatpak info im.riot.Riot

Element - Create, share, communicate, chat and call securely, and bridge to
other apps

          ID: im.riot.Riot
         Ref: app/im.riot.Riot/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.11.46
     License: Apache-2.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 325.8 MB
     Runtime: org.freedesktop.Platform/x86_64/23.08
         Sdk: org.freedesktop.Sdk/x86_64/23.08

      Commit: bdcc7fff8359d927f25226eae8389210dba3789ca5d06042d6c9c133e6b1ceb1
      Parent: c6c423a3b66d7a047646fafa7376d18f410f877f040aeab058ef0d8438861a19
     Subject: Update element-desktop-1.11.45.tar.gz to 1.11.46 (1e63e1d0)
        Date: 2023-10-10 18:15:11 +0000

Does not work. Starts Element window, but all elements inside the window are broken or invisible, everything is distorted.
Here is what I see in console:

Errors:
link failed but did not provide an info log
[68:1030/174153.888507:ERROR:shared_context_state.cc(83)] Skia shader compilation error
------------------------
// Vertex SKSL
#extension GL_NV_shader_noperspective_interpolation: require
uniform float4 sk_RTAdjust;in float2 position;in float2 localCoord;noperspective out float2 vlocalCoord_S0;void main() {// Primitive Processor QuadPerEdgeAAGeometryProcessor
vlocalCoord_S0 = localCoord;sk_Position = position.xy01;}
// Fragment SKSL
#extension GL_NV_shader_noperspective_interpolation: require
const int kFillAA_S1_c0 = 1;
const int kInverseFillBW_S1_c0 = 2;
const int kInverseFillAA_S1_c0 = 3;
uniform float4 ucircle_S1_c0;uniform sampler2D uTextureSampler_0_S0;
noperspective in float2 vlocalCoord_S0;half4 Circle_S1_c0(half4 _input) {
half4 _tmp_0_inColor = _input;
half d;
if (int(1) == kInverseFillBW_S1_c0 || int(1) == kInverseFillAA_S1_c0) {
d = half((length((ucircle_S1_c0.xy - sk_FragCoord.xy) * ucircle_S1_c0.w) - 1.0) * ucircle_S1_c0.z);
} else {
d = half((1.0 - length((ucircle_S1_c0.xy - sk_FragCoord.xy) * ucircle_S1_c0.w)) * ucircle_S1_c0.z);
}
return half4(half4(int(1) == kFillAA_S1_c0 || int(1) == kInverseFillAA_S1_c0 ? saturate(d) : half(d > 0.5 ? 1 : 0)));
}

half4 Blend_S1(half4 _src, half4 _dst) {
return blend_modulate(_src, Circle_S1_c0(_src));}

void main() {// Stage 0, QuadPerEdgeAAGeometryProcessor
half4 outputColor_S0 = half4(1);float2 texCoord;texCoord = vlocalCoord_S0;outputColor_S0 = (blend_modulate(sample(uTextureSampler_0_S0, texCoord), half4(1)));const half4 outputCoverage_S0 = half4(1);half4 output_S1;output_S1 = Blend_S1(outputCoverage_S0, half4(1));{ // Xfer Processor: Porter Duff
sk_FragColor = outputColor_S0 * output_S1;}}
// Vertex GLSL
#version 300 es

#extension GL_NV_shader_noperspective_interpolation : require
precision mediump float;
precision mediump sampler2D;
uniform highp vec4 sk_RTAdjust;
in highp vec2 position;
in highp vec2 localCoord;
noperspective out highp vec2 vlocalCoord_S0;
void main() {
    vlocalCoord_S0 = localCoord;
    gl_Position = vec4(position, 0.0, 1.0);
    gl_Position = vec4(gl_Position.xy * sk_RTAdjust.xz + gl_Position.ww * sk_RTAdjust.yw, 0.0, gl_Position.w);
}

// Fragment GLSL
#version 300 es

#extension GL_NV_shader_noperspective_interpolation : require
uniform highp vec2 u_skRTFlip;
precision mediump float;
precision mediump sampler2D;
out mediump vec4 sk_FragColor;
uniform highp vec4 ucircle_S1_c0;
uniform sampler2D uTextureSampler_0_S0;
noperspective in highp vec2 vlocalCoord_S0;
void main() {
highp     vec4 sk_FragCoord = vec4(gl_FragCoord.x, u_skRTFlip.x + u_skRTFlip.y * gl_FragCoord.y, gl_FragCoord.z, gl_FragCoord.w);
    mediump vec4 outputColor_S0 = vec4(1.0);
    highp vec2 texCoord = vlocalCoord_S0;
    outputColor_S0 = texture(uTextureSampler_0_S0, texCoord, -0.5);
    mediump float _3_d = (1.0 - length((ucircle_S1_c0.xy - sk_FragCoord.xy) * ucircle_S1_c0.w)) * ucircle_S1_c0.z;
    mediump vec4 output_S1 = vec4(clamp(_3_d, 0.0, 1.0));
    {
        sk_FragColor = outputColor_S0 * output_S1;
    }
}


Errors:
link failed but did not provide an info log

Updated to the commit mentioned above - and it all worked again.

$ flatpak info im.riot.Riot

Element - Create, share, communicate, chat and call securely, and bridge to
other apps

          ID: im.riot.Riot
         Ref: app/im.riot.Riot/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.11.45
     License: Apache-2.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 325.5 MB
     Runtime: org.freedesktop.Platform/x86_64/22.08
         Sdk: org.freedesktop.Sdk/x86_64/22.08

      Commit: ecd5a820c14ce6598f5d9dc049d89763165ea9e63232d6523422563431b77d37
      Parent: d96e634584aeaffce21df058fb019900140fba8556abc21158e9e4209d46ccfa
     Subject: Upgrade to Element 1.11.45 (228f25ed)
        Date: 2023-09-29 11:36:14 +0000

@SISheogorath
Copy link
Collaborator

Might be related to #411?

@tyHdev
Copy link

tyHdev commented Nov 8, 2023

I am experiencing the same behavior. Switching to the release associated with the commit indicated above also resolved the problem for me.

flatpak update --commit ecd5a820c14ce6598f5d9dc049d89763165ea9e63232d6523422563431b77d37 im.riot.Riot

@SISheogorath SISheogorath changed the title Latest version is not working. Flatpak crashes when typing on KDE Nov 18, 2023
@Minionflo
Copy link

If i execute the command
flatpak update --commit ecd5a820c14ce6598f5d9dc049d89763165ea9e63232d6523422563431b77d37 im.riot.Riot
i get: error: Server returned status 404
Any other ideas how i could fix the issue for the moment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants