View Single Post
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#704
Originally Posted by Kegetys View Post
I'm trying to run OpenWIG in my N9, it starts fine and I can load a wherigo cartridge but when I try to start it fails with:

java.lang.OutOfMemoryError: [B
at s.a(Unknown Source)
at bj.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at java.lang.Thread.startup(Unknown Source)

in err.txt.

I used runmidlet to start it, I tried adding -Xmx128m parameter to runmidlet but it didnt work as it just tried to load a jar file with that name. I also tried executing it like this:

/opt/phoneme/bin/cvm -Xmx128m -Dmicroedition.profiles=MIDP-2.1 -Dsun.midp.library.name=midp -Dsun.midp.home.path=/opt/phoneme/midp/midp_linux_fb_gcc -Dcom.sun.midp.mainClass.name=com.sun.midp.main.Cdc MIDletSuiteLoader sun.misc.MIDPLauncher -suitepath OpenWIG.jar -jadpath OpenWIG.jad -1 gui.Mid
let

But it still results in the same OutOfMemoryError. Is there something more that needs to be done to increase the memory limit or could it be some other bug?
Normally, setting the Xmx128m flag should suffice. I would be
quite surprised if a midlet would need that much of memory,
so it's quite likely a bug (either in the app or in the vm).

Davy
 

The Following 2 Users Say Thank You to DavyP For This Useful Post: