How do I fix error popups being empty?
# compose-desktop
m
How do I fix error popups being empty?
k
Start by showing some code behind this screen
z
I've also encountered this a lot for many different errors, just assumed it was some quirk with compose desktop
k
This looks like a generic error dialog shown by Swing from its default exception handler. The empty button is the clearest indication that this isn’t a compose dialog - it’s the default Metal Ocean theme
m
Here's an easy reproducer:
Copy code
@Composable
fun App() {
    throw IllegalStateException("Some Error")
}
a
It’s a Swing dialog Compose is showing when (as you’ve showed) there’s an exception in a composition. But I’m getting this on
Copy code
fun main() = singleWindowApplication {
    throw IllegalStateException("This should not be called")
}
m
Here's that exact same code on my Linux machine.
a
What JVM are you using?
z
Also what compose multiplatform version?
m
OpenJDK 21.0.7, Compose Multiplatform 1.7.3