View Issue Details

IDProjectCategoryView StatusLast Update
0001684Multi Theft Auto : San AndreasScriptingpublic2007-03-04 14:03
Reportererorr404Assigned ToIJs 
Status resolvedResolutionfixed 
Product Versionblue_sa.r2.a12 
Target VersionFixed in Versionmtasadm_v1.0-dp1 
Summary0001684: Lot's of output at the same time crashes the server

I did 108 outputConsole's without realizing it, and the server crashed. There should be a limit to how many outputs can be done, or a delay between them if there are a lot.

TagsNo tags attached.



2006-11-27 02:44

administrator   ~~0003673

I tried this, but no crash, paste a script that causes it every time


2006-11-27 04:52

developer   ~~0003674

Last edited: 2006-11-27 04:54

This time it disconnected me from the server, the server didn't crash.

Here's the code (there are 6 teams and 18 radar areas):
local teams = getElementsByType ( "team" )
local radarareas = getElementsByType ( "radararea" )
for areaKey,areaValue in radarareas do
for teamKey,teamValue in teams do
outputConsole ( "Area " .. areaKey .. ", part of team " .. getTeamName ( getElementParent ( areaValue ) ) .. ", has " .. area_health[areaValue][teamValue] .. " health to team " .. getTeamName ( teamValue ), player )

The map on the server is, the console command for this is 'healthflood.'


2007-01-20 17:33

administrator   ~~0003915

Please test with new resources stuff.


2007-03-03 13:05

updater   ~~0004095

Last edited: 2007-03-03 13:08

The server didn't crash even after:
for i=1,1500000 do outputConsole( "test string..." ) end

ERROR: Running script () entered an infinite/long loop. Server is terminating!

The client just gets a network trouble message. No actual crashes, so probably fixed.

BTW, would it be possible to end the resource, instead of the server?


2007-03-04 14:03

administrator   ~~0004115

Probably. That infinite loop check is like 3 years old, so it may be time to renew it some time.

Issue History

Date Modified Username Field Change