nSystemz / Nemesus-Roleplay-Legacy

Nemesus-Roleplay Samp Gamemode
Other
17 stars 3 forks source link

Hier die Debug Logs zu meinem Callback Problem bei nExpress Zeitungsjob #8

Closed DJNK01 closed 1 year ago

DJNK01 commented 2 years ago
[01:04:45] [debug] #97 00da28a8 in ?? (1, 34) in NemesusRoleplay.amx
[01:04:45] [debug] #98 00da28a8 in ?? (1, 34) in NemesusRoleplay.amx
[01:04:45] [debug] #99 00da28a8 in ?? (1, 34) in NemesusRoleplay.amx
[01:04:45] [debug] #100 00da28a8 in public OnPlayerStateChange (1, 34) in NemesusRoleplay.amx
[01:05:53] [debug] Long callback execution detected (hang or performance issue)
[01:05:53] [debug] AMX backtrace:
[01:05:53] [debug] #0 00c0c7f4 in ?? (34, 1082130432, 1) in NemesusRoleplay.amx
[01:05:53] [debug] #1 00cc6918 in ?? (34) in NemesusRoleplay.amx
[01:05:53] [debug] #2 00cc4d34 in ?? (34) in NemesusRoleplay.amx
[01:05:53] [debug] #3 006cb504 in public Timer4 () in NemesusRoleplay.amx
[01:05:55] [debug] Long callback execution detected (hang or performance issue)
[01:05:55] [debug] AMX backtrace:
[01:05:55] [debug] #0 00da1d3c in ?? (1, 34) in NemesusRoleplay.amx
[01:05:55] [debug] #1 00da28a8 in ?? (1, 34) in NemesusRoleplay.amx
[01:05:55] [debug] #2 00da28a8 in ?? (1, 34) in NemesusRoleplay.amx
[01:05:55] [debug] #3 00da28a8 in ?? (1, 34) in NemesusRoleplay.amx
[01:05:55] [debug] #4 00da28a8 in ?? (1, 34) in NemesusRoleplay.amx

[01:04:45] [debug] #100 00da28a8 in public OnPlayerStateChange (1, 34) in NemesusRoleplay.amx
[01:04:45] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[01:04:45] [debug]  Stack pointer (STK) is 0x22BDB338, heap pointer (HEA) is 0x22BDB2FC
[01:04:45] [debug] AMX backtrace:

[01:04:37] [debug] Long callback execution detected (hang or performance issue)
[01:04:37] [debug] AMX backtrace:
[01:04:37] [debug] #0 00c0c73c in ?? (34, 1084227584, 1) in NemesusRoleplay.amx
[01:04:37] [debug] #1 00378e78 in public cmd_lock (34, 582857492) in NemesusRoleplay.amx
[01:04:37] [debug] #2 native CallLocalFunction () in samp03svr
[01:04:37] [debug] #3 0000190c in public OnPlayerCommandText (34, 582857468) in NemesusRoleplay.amx
[01:04:44] [debug] Long callback execution detected (hang or performance issue)
[01:04:44] [debug] AMX backtrace:
[01:04:44] [debug] #0 00c0c7dc in ?? (34, 1082130432, 1) in NemesusRoleplay.amx
[01:04:44] [debug] #1 00cc6918 in ?? (34) in NemesusRoleplay.amx
[01:04:44] [debug] #2 00cc4d34 in ?? (34) in NemesusRoleplay.amx
[01:04:44] [debug] #3 006cb504 in public Timer4 () in NemesusRoleplay.amx
[01:04:45] [debug] Long callback execution detected (hang or performance issue)
[01:04:45] [debug] AMX backtrace:
[01:04:16] [debug] #100 00da28a8 in public OnPlayerStateChange (1, 34) in NemesusRoleplay.amx
[01:04:16] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[01:04:16] [debug]  Stack pointer (STK) is 0x22BDB338, heap pointer (HEA) is 0x22BDB2FC
[01:04:16] [debug] AMX backtrace:

[sampgdk:error] Too many callback arguments (at most 32 allowed)[sampgdk:error] Too many callback arguments (at most 32 allowed)[sampgdk:error] Too many callback arguments (at most 32 allowed)[sampgdk:error] Too many callback arguments (at most 32 allowed)[sampgdk:error] Too many callback arguments (at most 32 allowed)[sampgdk:error] Too many callback arguments (at most 32 allowed)[sampgdk:error] Too many callback arguments (at most 32 allowed)[sampgdk:error] Too many callback arguments (at most 32 allowed)
Spaex commented 2 years ago

Hmm scheint als würde es ein Problem mit deinem Stack Speicher geben. In den zwei in der Fehlermeldung erwähnten Funktionen ist das einzige was etwas Laufzeit hat die Funktion GetRandomHouse da es hier 749 Einträge durchläuft aus der DB. Das dürfte aber kaum ein Problem sein da wir das so im Livebetrieb mit 100 Usern hatten und es nie ein Problem gab. Auch krieg ich das weder auf meinem vServer noch auf meinem Linux Subsystem reproduziert. Selbst wenn ich meinen Bruder dazu nötige den Job gleichzeitig mit mir auszuführen haben wir es nie geschafft den Fehler zu reproduzieren. Hast du auch die komplette Datenbank importiert aus der nrp.sql? Bzw. sind auch alle Häuser bis ID 748 drin? Hat der Server genügend Performance oder läuft dein Server permanent auf Anschlag was die Leistung angeht? Das wäre auch ne mögliche Erklärung wenn die Operationen zu lang brauchen und dann mit anderen aufrufen auf den Stack kollidieren?

DJNK01 commented 2 years ago

Hey. Ich lasse den Server auf einem HP Server laufen mit 32gb RAM und einem XEON. Auslastung ist vollkommen in Ordnung. Ich habe mit Nemesus geschrieben. Es kann sein, da ihr mit c++ gearbeitet habt, dass ich die Distributables brauche um alles korrekt zum laufen zu bekommen. Das wurde in dem Video leider nicht gesagt. Heftig wäre, wenn ihr erklären könnt wie man das richtig einstellt, um die c++ basierten Plugins richtig zum laufen bekommen