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
Default Scala threadpool fails to initialize under 20.2 while 20.1 works perfectly #2843
Comments
@pshirshov Please share the reproducer for the reported error. |
This is a known thing in Scala 2.13 where Statics.VM uses methodhandles, for example scala/bug#11634. I think if you add the scalameta jar with the correct substitutions and initialize Statics.VM at build time, it should work as expected:
On my machine (I didn't build in Docker) it prints :
|
It works well on 20.1, so I'm not sure if it's really just a Scala issue. Thanks for the workaround though, I'll try it. |
Upd: the workaround works. Though I believe it still a good idea to investigate why did it work before 20.2. |
The underlying issue here is incomplete |
I'm getting the following stacktrace on
native-image
20.2 when my Scala application tries to executeExecutionContext.global
:Exactly the same code works perfectly when built on 20.1.
I have both these lines in my NI arguments:
It happens on both Java 8 and Java 11 versions:
The text was updated successfully, but these errors were encountered: