chhh / batmass

Mass spectrometry data visualization
https://batmass.org
Apache License 2.0
36 stars 8 forks source link

JVM creation failed #7

Closed Alemarcohen closed 6 years ago

Alemarcohen commented 7 years ago

I just downloaded Batmass on my Window7 computer, and when I run it I get the following error:

JVM creation failed

Any ideas? Thanks Alex

chhh commented 7 years ago

@Alemarcohen Hi Alex, Most likely you don't have enough RAM for the default configuration. By default the JVM starts with -Xmx4G parameter, which requires the system to have at least 4GB of available memory.

If that is the problem, you can lower the memory requirement in the config file (see here - open <install_path>/etc/batmass.conf, find default_options string there and change -J-Xmx4G to something lower, e.g. -J-Xmx2G)

Could you also please run in cmd.exe java -version command and post results here?

Alemarcohen commented 7 years ago

Dmitry

I had already fixed the problem. I had installed batmass in an additional hard drive (/:e not c:) and batmatfave me that error. I reinstalled in c: and reconfigured the path to JRE... Working sweet now, THANKS!!!

Alex

On Jun 30, 2017, at 5:57 PM, Dmitry Avtonomov notifications@github.com wrote:

Hi Alex, Most likely you don't have enough RAM for the default configuration. By default the JVM starts with "-Xmx4G" parameter, which requires the system to have at least 4GB of available memory.

If that is the problem, you can lower the memory requirement in the config file (see here - open /etc/batmass.conf, find default_options string there and change -J-Xmx4G to something lower, e.g. -J-Xmx2G)

Could you also please run in cmd.exe java -version command and post results here?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

chhh commented 7 years ago

@Alemarcohen Installation path was likely not the problem, but JRE config can definitely be screwed sometimes for no apparent reason. I'm hoping to update BatMass in the next 6 months, so don't uninstall, run it from time to time and you'll get automatic notifications about the updates! :)

If you have any particular needs/ideas to be implemented, don't hesitate to leave them here in the bug tracker!

Alemarcohen commented 7 years ago

Can the spectra be linked yo the TIC instead of the 2D map?? Couldn't figure that out! Best! Alex

On Jun 30, 2017, at 10:40 PM, Dmitry Avtonomov notifications@github.com wrote:

@Alemarcohen Installation path was likely not the problem, but JRE config can definitely be screwed sometimes for no apparent reason. I'm hoping to update BatMass in the next 6 months, so don't uninstall, run it from time to time and you'll get automatic notifications about the updates! :)

If you have any particular needs/ideas to be implemented, don't hesitate to leave them here in the bug tracker!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

chhh commented 7 years ago

Yes, but that's not really functional. The spectrum and chromatogram viewers need to be rewritten completely, then all will work as you expect. That's on the list for improvements.

Titan100 commented 6 years ago

@chhh I have a same issue "JVM Failed". I tried to change -J-Xmx4G to -J-Xmx2G as you suggested and ran as administrator to save the change but still the same error pops up. I have herewith attached java -version screenshot.

2018-08-06 10_25_35-c__windows_system32_cmd exe

chhh commented 6 years ago

@Titan100 In some cases it can't find a java installation and I don't know why. However, there's a way to tell BatMass exactly where to look for java. In the same batmass.conf file, uncomment the line that starts with #jdkhome=..., i.e. change it to jdkhome=... and use the path to your java installation, e.g. "C:\Programs\Java\zulu-jdk-8". You don't necessarily need the who JDK (which is the Java Development Kit), you technically need only the JRE (Java Runtime Environment), but the current way Oracle started distributing their JRE is a little tricky as it copies parts of the JRE on Windows to /System32 directory, for example. So the simplest in your case would be to install a JDK (either from Oracle, or a pre-built OpenJDK (Java 8 x64) which I would recommend) and use the installation path for jdkhome=....

Titan100 commented 6 years ago

@chhh Hi, I set the java path and ran the batmass and showed the attached issue below. I cannot visualize the chromatogram and other, instead it shows me as attached below. Right click on LC-MS (.mzXML) file did not show "view option" instead showed be the source codes. Please refer to the attachments

issue_2018-08-06 17_38_42-batmass issue2_2018-08-06 17_41_12-batmass

chhh commented 6 years ago

Interesting, this is definitely not what's supposed to happen. I see that it didn't recognize the mzXML file at all, it doesn't have an icon etc.

Can you please try downloading just the zip file distribution of batmass (i.e. without the installer), here's the link. Unzip it, then run <unzipped-path>/bin/batmass64.exe. If it doesn't find java, edit the config file as before. Upon the first run you should get a notification balloon in the bottom right corner that updates are available, click it and install the updates. I just tried it and it worked for me.

Titan100 commented 6 years ago

Hi @chhh Still same issue. It did not recognize .mzXML file. Downloaded zip file, unzipped, and ran batmass64.exe. Here is the screenshot. image

image image

chhh commented 6 years ago

Ok, super strange, I can't reproduce. Go to main menu Help -> About and please post the content here.

You'll see something like

Product Version: BatMass 201510222201
Java: 1.8.0_144; Java HotSpot(TM) 64-Bit Server VM 25.144-b01
Runtime: Java(TM) SE Runtime Environment 1.8.0_144-b01
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (batmass)
User directory: C:\Users\chhh\AppData\Roaming\.batmass\dev
Cache directory: C:\Users\chhh\AppData\Roaming\.batmass\dev\var\cache

Quit batmass and manually delete your equivalent of C:\Users\chhh\AppData\Roaming\.batmass directory. Can you try it in a virtual machine? I just installed a new Ubuntu into VMWare Player, downloaded the zip distro of batmass, ran ./<batmass>/bin/batmass and this worked.