• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Programmer [OTX 2] Freeze in 1 char when running more then 3 MCs

potinho

Advanced OT User
Joined
Oct 11, 2009
Messages
1,493
Solutions
17
Reaction score
187
Location
Brazil
I want to fix this problem in my OTX2: A player leaves 3 or 4 characters in the MC, after a certain time, only one of them freezes (as if it were lag/freeze) and dies, but the others continue normally (maybe it happens with 1 char, not confirmed yet).
I can't reproduce this, seems to be in random times. Seems to be not firewall rules. Want someone with experience with this kind of bug.
 
drop that shit bro i've seen you working on that distribution for years and there is always another bug that has been already fixed in newer tfs. understand that is deprecated buggy asfk and no longet supported
 
Looking at the source, memory management relies heavily on raw pointers without smart pointers. This makes the code prone to memory leaks over time, especially with multiple MCs active.

I can’t say for sure that this is the exact cause of your freeze, but it’s a real risk worth investigating.

Try monitoring the server’s RAM usage while MCs are active and check if it keeps growing continuously.

If that’s the case, the proper fix would be refactoring the codebase to use std::shared_ptr / std::unique_ptr, which eliminates this class of issues at a structural level.
 
I tested with both clients and the bug occurs in both:


I'm investigating at both the source and client levels; this silent disconnect is extremely annoying. We need to log where possible disconnects occur so that when it happens (sometimes hours later) we can identify where it occurred.
 
Back
Top