in a Windows 10/11 command line interface (CMD or PowerShell), an error occurs related to Jansi library. The error specifically mentions an EXCEPTION_ACCESS_VIOLATION in the Java Runtime Environment (JRE). This issue does not occur when running under Linux, when using the Git-Bash or when starting Quarkus via Gradle (./gradlew quarkusDev).
Expected behavior
No JVM crash.
Actual behavior
After successfully building the application, the VM crashes when starting the Quarkus shell, resulting in an EXCEPTION_ACCESS_VIOLATION error. The attached core dump file shows that the error originates from the Jansi library and occurs during a native call.
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffc325df8df, pid=2300, tid=10592
quarkus create app org.foo:reproduce-me --gradlecd reproduce-mequarkus dev
Output of uname -a or ver
Microsoft Windows [Version 10.0.22000.2057]
Output of java -version
openjdk version "19.0.2" 2023-01-17 OpenJDK Runtime Environment (build 19.0.2+7-44) OpenJDK 64-Bit Server VM (build 19.0.2+7-44, mixed mode, sharing) But happens also with 17.0.2 and others.
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.1.2.Final
Build tool (ie. output of mvnw --version or gradlew --version)
Gradle 8.1.1
Build time: 2023-04-21 12:31:26 UTC
Revision: 1cf537a851c635c364a4214885f8b9798051175b
Kotlin: 1.8.10
Groovy: 3.0.15
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 19.0.2 (Oracle Corporation 19.0.2+7-44)
OS: Windows 11 10.0 amd64
Additional information
It seems to be related to the Windows CMD/Powershell environment in conjunction with Jansi 2.4.0. Initially, there was a suspicion that it could be an access rights issue on Windows, so all access protection was temporarily disabled for testing purposes. However, this did not resolve the problem. If the issue is indeed with Jansi itself, it may be necessary to report the bug to the Jansi project for further investigation and resolution.
What I find particularly peculiar is that the error does not occur when using Gradle directly via gradlew quarkusDev. In the end, aren't they both supposed to be using the same JVM and doing the same thing? Or am I mistaken in my understanding?
Describe the bug
When starting Quarkus with the command
quarkus dev
in a Windows 10/11 command line interface (CMD or PowerShell), an error occurs related to Jansi library. The error specifically mentions an EXCEPTION_ACCESS_VIOLATION in the Java Runtime Environment (JRE). This issue does not occur when running under Linux, when using the Git-Bash or when starting Quarkus via Gradle (
./gradlew quarkusDev
).Expected behavior
No JVM crash.
Actual behavior
After successfully building the application, the VM crashes when starting the Quarkus shell, resulting in an EXCEPTION_ACCESS_VIOLATION error. The attached core dump file shows that the error originates from the Jansi library and occurs during a native call.
hs_err_pid2300.log
from above:
How to Reproduce?
Steps to reproduce:
quarkus create app org.foo:reproduce-me --gradle
cd reproduce-me
quarkus dev
Output of
uname -a
orver
Microsoft Windows [Version 10.0.22000.2057]
Output of
java -version
openjdk version "19.0.2" 2023-01-17 OpenJDK Runtime Environment (build 19.0.2+7-44) OpenJDK 64-Bit Server VM (build 19.0.2+7-44, mixed mode, sharing) But happens also with 17.0.2 and others.
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.1.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.1.1
Build time: 2023-04-21 12:31:26 UTC Revision: 1cf537a851c635c364a4214885f8b9798051175b
Kotlin: 1.8.10 Groovy: 3.0.15 Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021 JVM: 19.0.2 (Oracle Corporation 19.0.2+7-44) OS: Windows 11 10.0 amd64
Additional information
It seems to be related to the Windows CMD/Powershell environment in conjunction with Jansi 2.4.0. Initially, there was a suspicion that it could be an access rights issue on Windows, so all access protection was temporarily disabled for testing purposes. However, this did not resolve the problem. If the issue is indeed with Jansi itself, it may be necessary to report the bug to the Jansi project for further investigation and resolution.
What I find particularly peculiar is that the error does not occur when using Gradle directly via gradlew quarkusDev. In the end, aren't they both supposed to be using the same JVM and doing the same thing? Or am I mistaken in my understanding?