SayText2 crash

All other Source.Python topics and issues.
MrMalina
Member
Posts: 53
Joined: Mon Apr 08, 2013 2:40 pm
Location: Russian Federation

SayText2 crash

Postby MrMalina » Wed Nov 09, 2016 5:26 pm

Hello, I installed the latest version of sp (build 490) of 6 November. Operating System: Windows, game - CS: GO.
When you use function SayText2 server crash, the code below:

Syntax: Select all

from events import Event
from messages import SayText2
from players.helpers import index_from_userid

@Event("player_say")
def player_say(args):
userid = args.get_int("userid")
index = index_from_userid(userid)

print("USERID", userid)
print("INDEX", index)

print("CREATE MESSAGE")
msg = SayText2(message="PonyTest322")

print("SEND MESSAGE")
msg.send(index)
print("DONE")


What error?

Screenshoots:
Image
Image
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: SayText2 crash

Postby L'In20Cible » Wed Nov 09, 2016 6:39 pm

This is caused by the patch I added in for issue #124, works fine for OB games but doesn't for CS:GO (and probably Blade). Doing some testings right now to figure out what is going on, thanks for reporting.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: SayText2 crash

Postby L'In20Cible » Wed Nov 09, 2016 7:00 pm

Seems like the memory leak was only present on OrangeBox. Sent out millions of messages using the initial Vector class without memory increasing. I added a #ifdef to the header and it should be done compiling in 30-45 minutes: http://builds.sourcepython.com/job/Sour ... 0Building/

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 19 guests