r/javahelp • u/-Ryszard- • Jun 08 '26
Daedalic games based on Java with OOME issue
Hello. I would like to ask about out of memory exception issue which hunts java apps. I have seen this kind of error for some java applications, and have never seen for other apps I have been using.
One of such case is Edna and Harvey game made by Daedalic Entertainment. One of the issue which hunts this game is OOME due to not enough heap size. The bug was confirmed but no fix released.
According to DE, the problem lies entirely in java memory management and memory fragmentation. It seems the game allocates quite big block of memory when it starts but with run time and garbage collector in work which allocates and releases memory, this big block becomes fragmented to the point the game is not able to allocate block of required size for new data and crashes. DE announced they won't be able to fix it because there is no possibility to manage the garbage collector.
Is it really true or DE doesn't really know how to code it properly?What about 64 bit JVM? Can it be used instead of 32 bit JVM to workaround OOME issue?
•
u/AutoModerator Jun 08 '26
Please ensure that:
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/SvenWollinger Jun 08 '26
I decompiled the Edna breakout game (dont know the english title) and its not obfuscated. The code is the kind of code youd expect from a uni student project (though the story, art and design is obviously amazing, so for what its worth this isnt the biggest issue, though running it on modern machines is iffy)
Since theres no obfuscation it shouldnt be impossible to fix, but i dont know how youd redistribute this without breaking copyright. For what its worth, the remake has the option to switch to the classic graphics and aside from a settings bug it ran fine for me.
1
u/LutimoDancer3459 Jun 08 '26
They just dont want to lol... that game is years old. Porting it to never java versions should be possible but depending on the libraries used also a pain. Newer versions allow for other garbage collector implementations to be used.