[Plugin] GVar Plugin
#83

Firstly: I know that this looks really really stupid, but I needed to test this plugin under really heavy stress (lots of huge string writing per second), because I have a thing in my mind to script in the future which uses this plugin a lot (SetGVarString), and I want to be sure it handles lots of messages being written in memory.

Code:
pawn Код:
for( new i = 0; i < 10000; i ++ )
{
    SetGVarString( "HugeMessageForShowOff", gsBigString, i );
    printf( "%d", i );
}
for( new i = 0; i < 10000; i ++ )
{
    SetGVarString( "HugeMessageForShowOff", gsBigString, i );
    printf( "%d", i );
}
(gsBigString is a string with size ~8300, currently around 7300 characters were used to be written)

When I first "loadfs" in console, it writes fine in memory (verified using task manager), but after few more "reloadfs", it takes only few more kilobytes/megabytes (which is ok), but after ~10 "reloadfs" it starts giving these:
pawn Код:
[11/01/2015 23:36:57] [debug] Run time error 7: "Stack underflow"
[11/01/2015 23:36:57] [debug]  Stack pointer (STK) is 0x4076BC, stack top (STP) is 0x4076BC
[11/01/2015 23:36:57] [debug] AMX backtrace:
[11/01/2015 23:36:57] [debug] Run time error 7: "Stack underflow"
[11/01/2015 23:36:57] [debug]  Stack pointer (STK) is 0x4076BC, stack top (STP) is 0x4076BC
[11/01/2015 23:36:57] [debug] AMX backtrace:
[11/01/2015 23:36:57] [debug] Run time error 7: "Stack underflow"
[11/01/2015 23:36:57] [debug]  Stack pointer (STK) is 0x4076BC, stack top (STP) is 0x4076BC
[11/01/2015 23:36:57] [debug] AMX backtrace:
[11/01/2015 23:36:57] [debug] Run time error 7: "Stack underflow"
[11/01/2015 23:36:57] [debug]  Stack pointer (STK) is 0x4076BC, stack top (STP) is 0x4076BC
[11/01/2015 23:36:57] [debug] AMX backtrace:
[11/01/2015 23:36:57] [sampgdk] error: Too many callback arguments (at most 32 allowed)
[11/01/2015 23:36:57] [debug] Run time error 7: "Stack underflow"
[11/01/2015 23:36:57] [debug]  Stack pointer (STK) is 0x4076BC, stack top (STP) is 0x4076BC
[11/01/2015 23:36:57] [debug] AMX backtrace:
[11/01/2015 23:36:57] [sampgdk] error: Too many callback arguments (at most 32 allowed)
over and over without it crashing the server. I see that this is also a sampGDK problem.

(if I use just one big loop with that gsBigString, it starts giving errors after a few thousands, but at ~90000 (maximum at 99999) it crashes the server)

When I tried it with a timer:
pawn Код:
SetTimerEx( "WorkTimer", 2_000, 0, "i", 0 ); // OnFilterScriptInit

forward WorkTimer( number );
public WorkTimer( number )
{
    for( new i = number; i < number+10000; i ++ )
    {
        SetGVarString( "HugeMessageForShowOff", gsBigString, i );
        printf( "%d", i );
    }
    number = number+10000;
    SetTimerEx( "WorkTimer", 2_000, 0, "i", number );
    return 1;
}
it crashed after "221102":
pawn Код:
[11/01/2015 23:52:15] [debug] Server crashed while executing maps.amx
[11/01/2015 23:52:15] [debug] AMX backtrace:
[debug] #0 native SetGVarString () from gvar.DLL
[debug] #1 000018ec in public WorkTimer (0x00035b60) from maps.amx
[11/01/2015 23:52:15] [debug] // no information being printed at this debug
(I had more RAM available, 5gb were used out of 8gb)

I want to know if this can be solved, or if I should stay at testing it less agressive.
Reply


Messages In This Thread
GVar Plugin - by Incognito - 29.05.2010, 08:29
Re: [REL] GVar Plugin v1.0 - by Sergei - 29.05.2010, 09:10
Re: [REL] GVar Plugin v1.0 - by xxmitsu - 29.05.2010, 09:56
Re: [REL] GVar Plugin v1.0 - by bpeterson - 29.05.2010, 10:17
Re: [REL] GVar Plugin v1.0 - by Incognito - 29.05.2010, 10:23
Re: [REL] GVar Plugin v1.0 - by [HUN]Gamestar - 29.05.2010, 14:34
Re: [REL] GVar Plugin v1.0 - by Victor - 29.05.2010, 14:51
Re: [REL] GVar Plugin v1.0 - by [HUN]Gamestar - 29.05.2010, 15:10
Re: [REL] GVar Plugin v1.0 - by Toni - 29.05.2010, 16:29
Re: [REL] GVar Plugin v1.0 - by Johnny_Xayc - 29.05.2010, 16:56
Re: [REL] GVar Plugin v1.0 - by Sergei - 29.05.2010, 18:08
Re: [REL] GVar Plugin v1.0 - by Calgon - 29.05.2010, 19:04
Re: [REL] GVar Plugin v1.0 - by MPKaboose - 29.05.2010, 19:21
Re: [REL] GVar Plugin v1.0 - by Incognito - 29.05.2010, 20:05
Re: [REL] GVar Plugin v1.0 - by [HUN]Gamestar - 29.05.2010, 20:18
Re: [REL] GVar Plugin v1.0 - by Sergei - 29.05.2010, 20:23
Re: [REL] GVar Plugin v1.0 - by nemesis- - 29.05.2010, 23:52
Re: [REL] GVar Plugin v1.0 - by Sergei - 30.05.2010, 06:31
Re: [REL] GVar Plugin v1.0 - by nemesis- - 30.05.2010, 16:52
Re: [REL] GVar Plugin v1.0 - by d0 - 30.05.2010, 17:11
Re: [REL] GVar Plugin v1.0 - by nemesis- - 30.05.2010, 20:30
Re: [REL] GVar Plugin v1.0 - by Sergei - 30.05.2010, 20:55
Re: [REL] GVar Plugin v1.0 - by nemesis- - 30.05.2010, 21:39
Re: [REL] GVar Plugin v1.0 - by Sergei - 30.05.2010, 21:43
Re: [REL] GVar Plugin v1.0 - by nemesis- - 30.05.2010, 22:05
Re: [REL] GVar Plugin v1.0 - by Sergei - 30.05.2010, 22:12
Re: [REL] GVar Plugin v1.0 - by Calgon - 30.05.2010, 22:15
Re: [REL] GVar Plugin v1.0 - by nemesis- - 30.05.2010, 22:33
Re: [REL] GVar Plugin v1.0 - by Kyosaur - 30.05.2010, 22:38
Re: [REL] GVar Plugin v1.0 - by Sergei - 30.05.2010, 22:43
Re: [REL] GVar Plugin v1.0 - by pyrodave - 30.05.2010, 23:11
Re: [REL] GVar Plugin v1.0 - by Grim_ - 31.05.2010, 00:06
Re: [REL] GVar Plugin v1.1 - by Incognito - 31.05.2010, 03:25
Re: [REL] GVar Plugin v1.1 - by Grim_ - 31.05.2010, 04:18
Re: [REL] GVar Plugin v1.1 - by Sergei - 31.05.2010, 07:14
Re: [REL] GVar Plugin v1.1 - by Rac3r - 31.05.2010, 09:52
Re: [REL] GVar Plugin v1.2 - by nemesis- - 20.06.2010, 16:42
Re: [REL] GVar Plugin v1.2 - by yezizhu - 21.07.2010, 07:31
Re: [REL] GVar Plugin v1.2 - by Sergei - 21.07.2010, 09:09
Re: [REL] GVar Plugin v1.2 - by yezizhu - 21.07.2010, 11:52
Re: [REL] GVar Plugin v1.2 - by -Davee- - 02.08.2010, 14:56
Re: [REL] GVar Plugin v1.2 - by Incognito - 17.08.2010, 10:04
Respuesta: [REL] GVar Plugin v1.2 - by DarkChildren - 17.08.2010, 18:30
Re: [REL] GVar Plugin v1.2 - by nemesis- - 21.08.2010, 23:19
Re: [REL] GVar Plugin v1.3 - by Johnny_Xayc - 04.09.2010, 07:55
Re: [REL] GVar Plugin v1.3 - by DiddyBop - 09.09.2010, 14:28
Re: [REL] GVar Plugin v1.3 - by Calgon - 09.09.2010, 16:36
Re: [REL] GVar Plugin v1.3 - by papedo - 28.10.2010, 21:02
Re: [REL] GVar Plugin v1.3 - by yezizhu - 06.11.2010, 06:00
Re: [REL] GVar Plugin v1.3 - by Sergei - 06.11.2010, 09:51
Re: [REL] GVar Plugin v1.3 - by yezizhu - 06.11.2010, 14:36
Re: [REL] GVar Plugin v1.3 - by Babul - 16.11.2010, 16:22
Re: [REL] GVar Plugin v1.3 - by TheGuardianAngel - 16.11.2010, 16:57
Re: [REL] GVar Plugin v1.3 - by Sergei - 16.11.2010, 18:56
Re: [REL] GVar Plugin v1.3 - by Slice - 16.11.2010, 20:14
Re: [REL] GVar Plugin v1.3 - by Sergei - 17.11.2010, 02:44
Re: [REL] GVar Plugin v1.3 - by HACKHERS - 05.12.2010, 17:32
Re: [REL] GVar Plugin v1.3 - by Scenario - 05.12.2010, 18:02
Re: [REL] GVar Plugin v1.3 - by papedo - 16.09.2011, 17:14
Re: [REL] GVar Plugin v1.3 - by kurta999 - 16.09.2011, 18:00
Re: [REL] GVar Plugin v1.0 - by henry jiggy - 25.09.2011, 20:47
Re: [REL] GVar Plugin v1.3 - by NeyMar96 - 25.12.2011, 18:00
Re: [REL] GVar Plugin v1.3 - by kurta999 - 25.12.2011, 18:26
Re: [REL] GVar Plugin v1.3 - by NeyMar96 - 26.12.2011, 10:52
Re: [REL] GVar Plugin v1.3 - by kurta999 - 26.12.2011, 11:11
Re: [REL] GVar Plugin v1.3 - by RAEN - 18.02.2012, 11:43
Re: [REL] GVar Plugin v1.3 - by [Diablo] - 18.02.2012, 12:13
Re: [REL] GVar Plugin v1.3 - by Ewwe - 24.05.2012, 14:52
Re: [REL] GVar Plugin v1.3 - by kurta999 - 24.05.2012, 14:55
Re: [REL] GVar Plugin v1.3 - by AndreT - 15.02.2013, 15:24
Re: [REL] GVar Plugin v1.3 - by SDraw - 15.02.2013, 15:33
Re: GVar Plugin - by SlonCHL - 24.11.2013, 07:23
Re: GVar Plugin - by Quis - 15.01.2014, 05:36
Re: GVar Plugin - by iZN - 15.01.2014, 06:56
Re: GVar Plugin - by SlonCHL - 02.06.2014, 05:59
Re: GVar Plugin - by iZN - 02.06.2014, 07:03
Re: GVar Plugin - by iFarbod - 02.06.2014, 07:25
Re: GVar Plugin - by SlonCHL - 02.06.2014, 10:58
Re: GVar Plugin - by kurta999 - 22.07.2014, 20:54
Re: GVar Plugin - by driftpower - 22.07.2014, 21:02
Re: GVar Plugin - by Sojo12 - 25.07.2014, 09:35
Re: GVar Plugin - by Arastair - 29.11.2014, 10:37
Re: GVar Plugin - by IstuntmanI - 11.01.2015, 21:15
Re: GVar Plugin - by Crayder - 12.01.2015, 05:44
Re: GVar Plugin - by IstuntmanI - 12.01.2015, 11:33
Re: GVar Plugin - by WLSF - 15.01.2015, 11:57
Re: GVar Plugin - by Marcuse - 27.02.2015, 13:14
Re: GVar Plugin - by AroseKhanNiazi - 27.02.2015, 15:46
Re: GVar Plugin - by RaeF - 05.04.2015, 00:09
Re: GVar Plugin - by IstuntmanI - 11.07.2015, 21:32
Re: GVar Plugin - by KingHual - 11.07.2015, 21:49
Re: GVar Plugin - by IstuntmanI - 11.07.2015, 21:56
Re: GVar Plugin - by kurta999 - 11.07.2015, 23:24
Re: GVar Plugin - by IstuntmanI - 11.07.2015, 23:46
Re: GVar Plugin - by kurta999 - 11.07.2015, 23:48
Re: GVar Plugin - by Incognito - 15.07.2015, 23:14
Re: GVar Plugin - by BladeFire - 16.07.2015, 08:43
Re: GVar Plugin - by DanielCortez - 19.07.2015, 15:06
Re: GVar Plugin - by Incognito - 20.07.2015, 04:33
Re: GVar Plugin - by RaeF - 20.07.2015, 05:05
Re: GVar Plugin - by Crayder - 20.07.2015, 08:10
Re: GVar Plugin - by Logofero - 26.07.2015, 17:00
Re: GVar Plugin - by IstuntmanI - 28.07.2015, 19:39
Re: GVar Plugin - by nGen.SoNNy - 18.02.2016, 10:53
Re: GVar Plugin - by IstuntmanI - 18.02.2016, 13:52
Re: GVar Plugin - by nGen.SoNNy - 23.02.2016, 14:28
Re: GVar Plugin - by Jastak - 23.02.2016, 19:52
Re: GVar Plugin - by nGen.SoNNy - 13.05.2016, 23:08
Re: GVar Plugin - by IstuntmanI - 14.05.2016, 00:36
Re: GVar Plugin - by Knollle - 11.06.2016, 13:16
Re: GVar Plugin - by Killer_Klient - 04.12.2017, 21:32

Forum Jump:


Users browsing this thread: 11 Guest(s)