https://kotlinlang.org logo
Title
t

Thomas

01/06/2021, 10:12 AM
Hi everyone. There might be an issue regarding responsiveness... Before I open an issue on GitHub, would someone please kindly verify if this is reproducable? Running a short demo on Ubuntu 20.04 causes a Compose for Desktop app to become unresponsive if the theme is switched while the app is running. So, on Ubuntu 20.04 • run this app (button presses print hello • While the app is running, open Settings and change the scheme to/from dark mode • now button clicks no longer print something
package com.thomaskuenneth
import androidx.compose.desktop.Window
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
fun main() = Window {
Box(contentAlignment = Alignment.Center,
modifier = Modifier.fillMaxSize()) {
Button(onClick = {
println("Hello")
}) {
Text("Hallo")
}
}
}
c

Colton Idle

01/06/2021, 6:22 PM
dont run ubuntu or else i would try. sorry
👍 1
t

Thomas

01/08/2021, 1:06 PM
a

Alexandru Hadăr

01/08/2021, 3:14 PM
@Thomas the video appears to be corrupt in your issue. I'm on ubuntu 20.04. I shall try in max. 1 hour your issue and come back
t

Thomas

01/08/2021, 3:18 PM
Thanks for pointing this out. Hm. On Windows inside Chrome the clip plays fine. Does it not show at all, or is the content scrambled? Anyway, thanks a lot for trying on your machine
a

Alexandru Hadăr

01/08/2021, 3:19 PM
Doesn't show at all. I'm on firefox on Linux
On chrome I can play it, though
👍 1
t

Thomas

01/08/2021, 3:25 PM
There's a question on Ask Ubuntu reagrding Firefox not playing MP4s, and the posters say some H.264 stuff might be missing... Have not tried myself because my Ubuntu sits inside a VirutalBox, so using it primarily for testing purposes... https://askubuntu.com/q/1170482
a

Alexandru Hadăr

01/08/2021, 3:50 PM
@Thomas I can confirm your bug. Also, if you resize your window, it does not resize the content.
Looks like a complete freeze to me, because I can't close the window either
t

Thomas

01/08/2021, 3:56 PM
Yes, that's what I notice, too. Should probably add this to the issue. Thanks a lot for checking this. Came across this during my investigations regarding Dark Mode (maybe you have seen my posts here)
a

Alexandru Hadăr

01/08/2021, 4:08 PM
Yeah, I remember. Glad I could help
❤️ 1
t

Thomas

01/08/2021, 4:09 PM
Much appreciated