battlecatsultimate / BCU-java-PC

battle cats ultimate, a fan-made battle cats emulator.
94 stars 72 forks source link

BCU keeps crashing every five minutes and I have no idea why #115

Closed M1lkkk closed 5 months ago

M1lkkk commented 5 months ago

A lot of times, it crashes for no reason, especially when I'm choosing music or a background. The error I keep getting is 'Java heap space in AWT-EventQueue-0.' I have no idea why it crashes. Please help.

MandarinSmell commented 5 months ago

It's because BCU lacked memory space. Java doesn't fully use your PC's RAM, and it uses, as default, 25% of your RAM size (i.e. 8GB RAM -> Using about 2GB RAM)

You can check how much memory space BCU has by checking left upper corner in main menu, text saying Memory Used : XXX / YYY MB where YYY is BCU's max possible memory size

If YYY value doesn't match your 25% of RAM, that means you might have installed incorrect Java. This doesn't mean that memory space size must match exact 25% of your RAM, for example, as stated above, if you had 8GB of RAM, then BCU may have value around 2048MB, such as 2136, or 2497, but not like 253, or 518

If you confrimed that memory space doesn't match size of 25% of your RAM, then you will have to check your OS type; whether it's 32bit system or 64bit system. After this, delete Java via control panel (if you are on Windows), or any possible program manager, then install proper java below here

https://www.java.com/en/download/manual.jsp

If it did match the size, then you gotta upgrade your PC, or remove some custom packs in there. More packs, more memory size required

MandarinSmell commented 5 months ago

Closing issue due to inactivity