Demolidores
New Member
- Joined
- Dec 12, 2009
- Messages
- 4
- Reaction score
- 0
By the logs that you sent, it looks something related to Banishments.
Did you ban the account or ban the IP of someone recently?
I think there is a known error regarding the IP Ban on olde versions of otxserver. I suggest you to check this part of code and compare with the otxserver oficial repository
The bug was probably always there, but Ubuntu 14 might have used an older library that handled it more gracefully. Make sure all variables are declared in talkactions.h/cpp and add null checks. E.g.I suspected this and removed all the bans from the database, but it didn't solve it, this source has never had a problem, I've been using it for years, it started after migrating from Ubuntu 14 to Ubuntu 20
if (!player) {
return;
}
The bug was probably always there, but Ubuntu 14 might have used an older library that handled it more gracefully. Make sure all variables are declared in talkactions.h/cpp and add null checks. E.g.
C++:if (!player) { return; }
Also check your banishment info talkaction Lua script for bugs.
You can check line 347 in talkactions.cpp, it's trying to do something likeView attachment 79277
Post automatically merged:
View attachment 79278
The error without -Ofast and with -O1 was a little different, does this give you any clues?
xyz->abc()
and xyz
might be null. So you need to do if (!xyz) { return false; }
before.Talkaction::executeSay
#include <sstream>
to the top of your file.You can check line 347 in talkactions.cpp, it's trying to do something likexyz->abc()
andxyz
might be null. So you need to doif (!xyz) { return false; }
before.
Btw the screenshots you sent are the wrong method, it's inTalkaction::executeSay
Post automatically merged:
Btw, if your server is based on this source code, try adding#include <sstream>
to the top of your file.