Not enough memory at start-up: JNI error

Having trouble installing Oxygen? Got a bug to report? Post it all here.
drkbts
Posts: 4
Joined: Thu Apr 12, 2007 7:45 am

Not enough memory at start-up: JNI error

Post by drkbts »

Oxygen 8.1 (running on 'Windows XP Prof for Tablets', Sun Java 6, 2Gig, HP TC4400) randomly will not start properly and reports an error "JNI error: not enough memory'. A second attempt to start up is usually successful. Seems like a Java issue. Any clues what is going on? Any help is appreciated.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Go to the oXygen install folder and edit the oxygen8.1.ini file. On the line Virtual Machine Parameters replace -Xmx40:32:700P with -Xmx512m, save the oxygen8.1.ini file and restart oXygen 8.1. Does it report the same error?


Regards,
Sorin
drkbts
Posts: 4
Joined: Thu Apr 12, 2007 7:45 am

Post by drkbts »

With this change, it randomly reports the same problem. A second attempt at startup usually works.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

We will investigate the problem of the shortcut launcher. Please change the -Xmx256m parameter to -Xmx512m in the java command in the oxygen.bat script located in the oXygen install folder and start oXygen from a command line with the command:

Code: Select all

oxygen.bat
executed in the oXygen install folder. This should start up oXygen without problems.


Regards,
Sorin
drkbts
Posts: 4
Joined: Thu Apr 12, 2007 7:45 am

Post by drkbts »

The provided work around does not work as it does not change the behavior. In all cases, the behavior is similar: failure to launch after login with a 'not enough memory' message, and successful start subsequently.

Somehow the first attempt puts the JRE (or Oxygen) in a different mode so that subsequent starts are OK.

I have no clue what is going on. Let me know if you need more detailed information.

Ton
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Please edit [oXygen8.1-install-folder]\oxygen.bat, replace -Xmx512m with -Xmx256m in the java command on the last line of the file, start oXygen from a command line using the command:

Code: Select all

oxygen.bat
Does it work also at the first startup after login? Does it work only starting with the second startup?


Regards,
Sorin
drkbts
Posts: 4
Joined: Thu Apr 12, 2007 7:45 am

Post by drkbts »

Nothing works, included the suggested solutions. Just installed version 8.2 and the behavior is exactly the same.

First time fails, second time OK. Upon successful start , Oxygen takes moderate resources (unlike some others who report excessive amounts of CPU cycles).

Would it be possible for you to send me a special 'debug' version to better figure out what is going on?

Ton
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

drkbts wrote:unlike some others who report excessive amounts of CPU cycles
What is "some others"? Other applications?

What is the version and vendor of the Java virtual machine that runs oXygen? You can find them in the Help -> About dialog, the System properties tab, the properties java.vm.version and java.vm.vendor.

Try also to run oXygen with a different version of the Java virtual machine by specifying the full path to java.exe in oxygen.bat and running the command

Code: Select all

oxygen.bat
in oXygen install folder. When you specify the full path to java.exe in oxygen.bat the command is like:

Code: Select all

"C:\Program Files\Java\jre1.5.0_06\bin\java.exe" -Xmx256m -Dsun.java2d.noddraw=true ...
Regards,
Sorin
RogerP
Posts: 17
Joined: Fri May 11, 2007 2:58 pm
Location: Brunel University, UK

Post by RogerP »

I have the same problem with a slightly different scenario.

1) The "Out of memory error" used to occur occasionally (versions 8.1 and before) if I had been using or was currently using Netbeans. BTW: I have 2Gbytes of RAM.

2) With 8.2 it ALWAYS occurs when the file "oxygen.exe" is run (this is what the desktop icon points to). It does NOT occur if I start <oXygen> from the oxygen.bat file (Xmx256 or Xmx512 -- it doesn't matter). This suggests something about the Java platform it's finding.

3) I have various 1.5 series JREs and a couple of 1.6 JREs.

I, too, would be glad if this could be sorted out.

Thx.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

RogerP wrote:With 8.2 it ALWAYS occurs when the file "oxygen.exe" is run (this is what the desktop icon points to). It does NOT occur if I start <oXygen> from the oxygen.bat file
It seems there is a memory allocation problem with the oxygen.exe launcher. Until we fix the problem please start oXygen using the oxygen.bat script the first time after a Windows login.


Regards,
Sorin
RogerP
Posts: 17
Joined: Fri May 11, 2007 2:58 pm
Location: Brunel University, UK

Post by RogerP »

sorin wrote:... please start oXygen using the oxygen.bat script the first time after a Windows login.


Regards,
Sorin
Thanks for your reply.

I don't understand! It's not just the first time after a Windows login but every time I try to launch <oXygen/>, no matter whether the BAT file was used previously or not.

Regards.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

We reported the problem to the developers of the Windows installer application used for the oXygen installer. Please start oXygen only with the oxygen.bat script until we fix it.


Regards,
Sorin
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

RogerP wrote:I, too, would be glad if this could be sorted out.
I sent you a new oXygen launcher to test on your Tablet PC running Windows XP. Please let us know if this launcher reports the same error or it can start up the oXygen application.


Thank you,
Sorin
Post Reply