-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jansi crashes JVM #66
Comments
@chirino Following up on this issue. Did someone have a chance to look into it? |
Workaround for fusesource/jansi#66
Workaround for fusesource/jansi#66
We also encountered this issue in Kotlin: https://youtrack.jetbrains.com/issue/KT-17031. Would be nice to know if there are plans to investigate into it. Thanks! |
I'm willing to investigate this issue, but I'm not sure I can see any way out. It seems to me that the problem comes from trying to load the same native library in 2 different versions, and that's definitely not supported by the JVM afaik. |
Just in case anyone else encounter the problem (as me with Gradle 7.3.3):
|
Could it be related to #216 ? |
I do not think so. It is more or less original issue. Here is a problem thread dump:
It is the same "trying to load the same native library in 2 different versions" you stated above:
So in my case the fix is to downgrade jansi version for the whole project. |
Seeing this in 2.4.0 via Maven
|
Unfortunately, there's no way to load two native libraries in different versions, so the workaround is to force the version of jansi used. |
Gradle is bundled with Jansi 1.14 and sets the system property
library.jansi.path
to avoid extracting its native libraries to a temp directory avoid problems with system that don't give execute permissions to temp directories. If a build script invokes the Java compiler then compilation is performed in the same JVM as Gradle. The user provides an annotation processor that internally uses an older version of Jansi (I believe 1.11). It seems that Jansi uses the wrong native libraries and crashes the JVM. If Java compilation is done in a forked JVM process then all is good.You can find an excerpt here (full core dump):
The original issue was reported here. It also describes the affected operating systems. This integration test might help with understanding the issue.
The text was updated successfully, but these errors were encountered: