Consensys / jc-kzg-4844

Building and packaging of the Java bindings in C-KZG-4844
Apache License 2.0
4 stars 9 forks source link

Facing App Crash #40

Closed NickSneo closed 5 months ago

NickSneo commented 8 months ago

Hey, I have included this library in web3j - https://github.com/web3j/web3j/pull/2000 for sending Blob Txs But I am facing app crash and errors when running any function that includes functions from this library.

Errors -

JVMDUMP039I Processing dump event "abort", detail "" at 2024/02/06 16:20:07 - please wait.
JVMDUMP032I JVM requested System dump using '/Users/nicks/Desktop/coding/projects/Web3App/core.20240206.162007.59144.0001.dmp' in response to an event
JVMDUMP010I System dump written to /Users/nicks/Desktop/coding/projects/Web3App/core.20240206.162007.59144.0001.dmp
JVMDUMP032I JVM requested Java dump using '/Users/nicks/Desktop/coding/projects/Web3App/javacore.20240206.162007.59144.0002.txt' in response to an event

Let me know if I should share other details or I am missing something

NickSneo commented 8 months ago

I was able to solve this. Issue was with the IBM Java 17 JDK version, switched to other JDK (Amazon Java 17) and it worked fine.

Thanks!

NickSneo commented 8 months ago

Reopened the issue, in case someone wants to investigate further why did it fail with IBM JDK 17.0.6 version.

StefanBratanov commented 8 months ago

Hi @NickSneo thank you for raising, will look into testing with this specific JDK version.

StefanBratanov commented 8 months ago

Hi @NickSneo I know it's an older issue, but do you somehow have access to the dump?

NickSneo commented 8 months ago

Hey @StefanBratanov , I can reproduce it and get the dump if you require. But its size was over 6GB

StefanBratanov commented 8 months ago

Hey @StefanBratanov , I can reproduce it and get the dump if you require. But its size was over 6GB

I see. Maybe it would be easier if I can reproduce. What exact version of IBM JDK are you using and are you using Docker to test?

NickSneo commented 8 months ago

IBM JDK 17.0.6 version I added it as a dependency in web3j for EIP4844 support - https://github.com/web3j/web3j/pull/2000 When you run these tests - https://github.com/web3j/web3j/blob/master/crypto/src/test/java/org/web3j/crypto/BlobUtilsTest.java with above mentioned IBM JDK you will get the error while with other JDK like Amazon Corretto 17.0.10 it gets resolved

StefanBratanov commented 8 months ago

Hi @NickSneo I cloned the codebase and tried running this test and it works for me. I am using this version of the JDK: https://github.com/ibmruntimes/semeru17-binaries/releases/download/jdk-17.0.6%2B10_openj9-0.36.0/ibm-semeru-open-jdk_x64_linux_17.0.6_10_openj9-0.36.0.tar.gz Is it correct? I use Windows as well, not sure if that can make the difference.

NickSneo commented 5 months ago

Closing the issue