You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
G:>java -jar i-ncript-1.4.0.jar
Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space
at java.base/com.sun.crypto.provider.CipherCore.prepareInputBuffer(CipherCore.java:908)
at java.base/com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:730)
at java.base/com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436)
at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2205)
at com.i_comit.windows.AES.doCrypto(AES.java:76)
at com.i_comit.windows.AES.encrypt(AES.java:44)
at com.i_comit.windows.AES_T.lambda$AESQuery$0(AES.java:136)
at com.i_comit.windows.AES_T$$Lambda$148/0x0000000800d48b40.accept(Unknown Source)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at com.i_comit.windows.AES_T.AESQuery(AES.java:134)
at com.i_comit.windows.AES.lambda$AESThread$0(AES.java:32)
at com.i_comit.windows.AES$$Lambda$136/0x0000000800d47a58.run(Unknown Source)
at java.base/java.lang.Thread.run(Thread.java:833)
The text was updated successfully, but these errors were encountered:
Closing issue because it is fixed with release 1.4.4. It was because I called the progress bar thread twice, one in the HotFiler class and one in the AES class.
If the OutOfMemoryError issue persists, that is an issue of your heap size not big enough (When you start the app via cmd it will tell you your heap size).
To fix this, run the app via command line but also add the -Xms flag like so: java -Xms1g -Xms2g -jar i-ncript-1.4.4-jar-with-dependencies.jar (for release 1.4.4).
-Xms1g means that the initial heap size is 1GB (1g) and you can also say -Xms512m (512GB).
-Xmx2g means that the maximum heap size is 2GB(2g).
G:>java -jar i-ncript-1.4.0.jar
Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space
at java.base/com.sun.crypto.provider.CipherCore.prepareInputBuffer(CipherCore.java:908)
at java.base/com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:730)
at java.base/com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436)
at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2205)
at com.i_comit.windows.AES.doCrypto(AES.java:76)
at com.i_comit.windows.AES.encrypt(AES.java:44)
at com.i_comit.windows.AES_T.lambda$AESQuery$0(AES.java:136)
at com.i_comit.windows.AES_T$$Lambda$148/0x0000000800d48b40.accept(Unknown Source)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at com.i_comit.windows.AES_T.AESQuery(AES.java:134)
at com.i_comit.windows.AES.lambda$AESThread$0(AES.java:32)
at com.i_comit.windows.AES$$Lambda$136/0x0000000800d47a58.run(Unknown Source)
at java.base/java.lang.Thread.run(Thread.java:833)
The text was updated successfully, but these errors were encountered: