Radoslaw Juszczyk
05/07/2023, 8:01 AMandroidx.compose.ui.window.DIalog
. I swear it worked fine couple of days before...
fun main() = application {
Window(onCloseRequest = ::exitApplication) {
var isOpen by remember { mutableStateOf(false) }
MaterialTheme {
Button(onClick = {
isOpen = true
}) {
Text("OPEN")
}
}
if (isOpen) {
Dialog(
onCloseRequest = {
isOpen = false
},
title = "test"
) {
Text("DIALOG")
}
}
}
}
This is the code to reproduce it.
Has anyone experienced anything similar?
The crash happens in java (I have tried different runtimes with the same result):
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffd5da76641, pid=2652, tid=14860
#
# JRE version: OpenJDK Runtime Environment (20.0.1+9) (build 20.0.1+9-29)
# Java VM: OpenJDK 64-Bit Server VM (20.0.1+9-29, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# V [jvm.dll+0x436641]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# <https://bugreport.java.com/bugreport/crash.jsp>
#