syvaidya / openstego

OpenStego is a steganography application that provides two functionalities: a) Data Hiding: It can hide any data within an image file. b) Watermarking: Watermarking image files with an invisible signature. It can be used to detect unauthorized file copying.
https://www.openstego.com
GNU General Public License v2.0
1.15k stars 212 forks source link

Heap out of memory error #22

Closed YPoujol closed 5 years ago

YPoujol commented 6 years ago

Hi, I try Openstego to hide a message in JPEG file of 9 Mbytes. The process hang up with an error message "java.lang.OutOfMemoryError". I try to raise the size of the heap in the .bat file Xmx2048m or Xmx2g. The application does not start up anymore.

The application processes acurately small jpeg files.

Best regards

syvaidya commented 6 years ago

Are you using 64-bit JRE? You can't increase Xmx to more than 1.5GB with 32-bit JRE.

JacobValdemar commented 6 years ago

I got the same error - was using a 50MB JPG cover file.

YPoujol commented 6 years ago

I am using jre 1.8.0-161-b12 X64 on Windows 10.

De : Samir Vaidya [mailto:notifications@github.com] Envoyé : samedi 17 février 2018 13:13 À : syvaidya/openstego openstego@noreply.github.com Cc : YPoujol poujol@club-internet.fr; Author author@noreply.github.com Objet : Re: [syvaidya/openstego] Heap out of memory error (#22)

Are you using 64-bit JRE? You can't increase Xmx to more than 1.5GB with 32-bit JRE.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/syvaidya/openstego/issues/22#issuecomment-366437338 , or mute the thread https://github.com/notifications/unsubscribe-auth/AiE_dU2KYPMaz3CcQveCiTKNGRkHvvEiks5tVsJOgaJpZM4Rpzmk .

syvaidya commented 6 years ago

If you have 64-bit JRE and have enough RAM you should be able to increase Xmx to 2g or more. If it is not starting, then please post here what error you see. Try starting the app from command line (openstego.bat) - it should show error in command window.

syvaidya commented 6 years ago

@JacobValdemar did you try increasing the Xmx to 2g or more?