https://kotlinlang.org logo
Title
l

Lazard

02/23/2021, 11:52 AM
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
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

olonho

02/23/2021, 12:19 PM
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

Lazard

02/23/2021, 12:23 PM
Ok thank you, I didn't see this issue
o

olonho

02/23/2021, 3:35 PM
if you see JVM crashes on Linux please use Ubuntu-provided JVM builds, i.e.
sudo apt install openjdk-14-jdk
export JAVA_HOME=/usr/lib/jvm/java-14-openjdk-amd64k-14-jdk
We’ll try to improve compatibility with other JDKs in upcoming releases.
👆 1
:tnx: 5