Game crashes continously after some time because of lack of memory

First at all, I'm still a beginner to programming, it would be very nice if someone wanted to help me overcome this bug, but I seeking patience, please. I wanted to try and create a game using LibGDX and I wanted to be crossplatform for both Android and Desktop devices. Also I started looking into networking and I managed to, when the game starts, to choose between to be a host or a client. When host is chosen, a server initializes at port 12345 and starts a new thread which sends data of the players' positions. The thing is it's supossed this to be in a Desktop device and also the device participates into the game as a player, but after more or less 30 seconds from when it started both the game and the IDE (Intellij) crashes and even the computer's screen reboots itself. After some time, a message from the computer appears, warning me that the IDE used to much memory and so. I checked if there's a Thread issue, as for too much threads made or something similar, but I checked and only Threads are active during the program. On the other side, when client is chosen, it attempts to connect to port 12345 and the main screen appears on the phone, but the host's player just doesn't update, it just remains there. It should receive the packet from the server, but it just doesn't update. And no, it doesn't crash or anything else, I've checked it. I have a log to share, I'll upload it as a file, I hope it helps with something. I tried remediating it with AI's help, but it just doesn't give me the right answer. I hope someone could help me figure it out. Anything that would be needed to succeed, any explanation/log, please tell me so I can show it to you. Thanks a lot. This same issue is opened in GitHub, if it is more comfortable for you, you can answer me right here: https://github.com/2Sebastian2/DandysWorld/issues/1#issue-3263914452
GitHub
Game crashes continously after some time because of lack of memory ...
First at all, I'm still a beginner to programming, it would be very nice if someone wanted to help me overcome this bug, but I seeking patience, please. I wanted to try and create a game using ...
1 Reply
JavaBot
JavaBot2mo ago
This post has been reserved for your question.
Hey @seby! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?