I tried to create a new Compose Desktop project to...
# compose-desktop
l
I tried to create a new Compose Desktop project to see if the laggy UI on Linux was fixed running the project fails with this error : see thread However if I set the env var
SKIKO_RENDER_API
to
SOFTWARE
it works just fine so it's definitely an OpenGL problem. Anyone has the same problem ? I'm on Ubuntu 18.04.5 LTS
Copy code
Shader compilation error
------------------------
   1	uniform sampler2D uTextureSampler_0_Stage0;
   2	noperspective in half3 vinShadowParams_Stage0;noperspective in half4 vinColor_Stage0;out half4 sk_FragColor;
   3	void main() {half4 outputColor_Stage0;half4 outputCoverage_Stage0;{ // Stage 0, RRectShadow
   4	half3 shadowParams;shadowParams = vinShadowParams_Stage0;outputColor_Stage0 = vinColor_Stage0;half d = length(shadowParams.xy);float2 uv = float2(shadowParams.z * (1.0 - d), 0.5);half factor = sample(uTextureSampler_0_Stage0, uv).000r.a;outputCoverage_Stage0 = half4(factor);}{ // Xfer Processor: Porter Duff
   5	sk_FragColor = outputColor_Stage0 * outputCoverage_Stage0;}}
Errors:
error: 4: floating-point value is too large: 1.0
1 error

free(): invalid pointer
o
Yes, this bug is known, will try to address in update release. Use software rendering for now. https://github.com/JetBrains/compose-jb/issues/416
l
Ok thank you, I didn't see this issue