This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jpcsp Java problem
#1
psp 
Hey Guys,
first of all, my english is not the very best so please, forgive me.
But now the problem:

I want to play Monster Hunter Freedom United and have some trouble with the emulator.

When i want to start the game the cmd.exe says :
Running Jpcsp 32bit...
Exception in thread "GUI" java.lang.OutOfMemoryError: Java heap space
at jpcsp.MainGUI.loadFile(MainGUI.java:1442)
at jpcsp.MainGUI.OpenFileActionPerformed(MainGUI.java:1395)
at jpcsp.MainGUI.access$500(MainGUI.java:110)
at jpcsp.MainGUI$6.actionPerformed(MainGUI.java:409)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue$4.run(Unknown Source)

_______________________
Please! could someone help me?!
Reply
#2
Hey elektro12,

Not sure if you're even still waiting on an answer, but maybe this will help someone else out...

Which version are you trying to run? How large is the file you are trying to load? This is just pure speculation from the limited info you sent, but it might be due to the fact that the file size exceeds the max memory, but is less than 1GB. From briefly looking at the code, it appears that files larger than 1GB will be loaded in chunks. However, if you are running on WinXP, it looks like the batch file that starts up the app sets your max memory to 768MB. So if the file is under 1GB but over 768MB, you're likely to have an issue.

Depending on how much RAM you have, try increasing the max heap size.
if %ERRORLEVEL% EQU 0 set MAX_MEM_SIZE=768m
That's the line you'd be concerned about. Try bumping that up to 1024m and try again.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)