Skip to content
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

okhttp3.OkhttpClient.<clinit>(OkHttpClient.kt:1073) 在类加载时报错 StackOverflowError #8556

Open
niusme opened this issue Oct 15, 2024 · 1 comment
Labels
bug Bug in existing code

Comments

@niusme
Copy link

niusme commented Oct 15, 2024

okhttp3.OkhttpClient.(OkHttpClient.kt:1073) 在类加载时报错 StackOverflowError。
默认栈针大小为256k(多次重启有概率类加载成功),调整为512k后问题得到解决。

jdk 版本为 openjdk11。

想请教一下作者,是什么原因导致的?

@niusme niusme added the bug Bug in existing code label Oct 15, 2024
@yschimke
Copy link
Collaborator

Translation

Okhttp3.okhttpClient. (OkhttpClient.kt: 1073) Errors StackoverFlowerror when class loading.
The default stack needle size is 256K (multiple restarts are successfully loaded successfully), and the problem after adjustment to 512K is solved.

The JDK version is openjdk11.

Want to ask the author, what causes it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in existing code
Projects
None yet
Development

No branches or pull requests

2 participants