When someone wants to say something in chat, noone can see the message.(they can see 3-5 words message)
Then lag the server and we see [...\sh_core.lua:2076] stack overflow
There is that file(2060-2077): [url]http://pastebin.com/5aL7WdYR[/url]
There is all file: [url]http://pastebin.com/C8qHNhpN[/url]
Can you use pastebin instead of megaupload? I'm not sitting waiting 45 seconds just to read an openaura file.
Uploaded.
[lua] -- A function to get a cached text size.
function openAura:GetCachedTextSize(font, text)
if (!self.CachedTextSizes) then
self.CachedTextSizes = {};
end;
if ( !self.CachedTextSizes[font] ) then
self.CachedTextSizes[font] = {};
end;
if ( !self.CachedTextSizes[font][text] ) then
surface.SetFont(font);
self.CachedTextSizes[font][text] = { surface.GetTextSize(text) };
end;
return unpack( self.CachedTextSizes[font][text] );
end;[/lua]
I can't see how that can cause a stack overflow. I blame Conna; you should probably pester him to fix it.
how is he supposed to fix it when he is homeless
Woah someone removed my post on here.. :(
[lua]function openAura:GetCachedTextSize(font,text)
self.CachedTextSizes = self.CachedTextSizes or {}
self.CachedTextSizes[font] = self.CachedTextSizes[font] or {}
if not self.CachedTextSizes[font][text] then
surface.SetFont(font)
self.CachedTextSizes[font][text] = surface.GetTextSize(text)
end
return self.CachedTextSizes[font][text]
end
[/lua]
Try using this instead. (Replace the function)
[editline]3rd June 2011[/editline]
It's possible unpack was causing it. Otherwise there's no reason to stack overflow as there's no real call.
It appears when you write something in russian, not english.
It's not working. I can't type something in chat now.(With this fix)
Strange. Undo the fix and inform Conna that unicode breaks his chatbox or something.
I know and i tryed to ask you, guys, to help me:)
Sorry, you need to Log In to post a reply to this thread.