Clients crash randomly
#1

So I've been making a RP server for a long time and something just keeps bugging me.

I've made a huge map by myself and it include more than 7000 objects so I had to use a streamer. I tried optimizing it to a point where it should work find but some players still crash for no apparent reason.

Something I've done:

Код:
//ongamemodeinit
Streamer_SetVisibleItems(STREAMER_TYPE_OBJECT, 750);
I did some optimization that other talk about on the forum.

I did basically everything I could and people still crash. I looked up the crash logs online but there's nothing about it.

Do you have any recommendations for me?
Maybe it's not because of objects?

Thanks in advanced.

EDIT:

When I spawn this happens:

Код:
SA-MP 0.3.7-R3
Exception At Address: 0x007F0BF7
Base: 0x040B0000

Registers:
EAX: 0x00000000	EBX: 0x00B1C22C	ECX: 0x1840F620	EDX: 0x1840F620
ESI: 0x00000000	EDI: 0x1840F630	EBP: 0x0FE5F6E4	ESP: 0x0177F4F4
EFLAGS: 0x00010246

Stack:
+0000: 0x1840F630   0x1849EA68   0x006D3585   0x00000000
+0010: 0x1840F620   0x1821EB98   0x1849EA68   0x1840F630
+0020: 0x116A6AA0   0x0FE5F6E4   0x00B2CA84   0x00000001
+0030: 0x116A6AA0   0x1840F620   0x006DFA8B   0x00B1C22C
+0040: 0x0FE5F6E4   0x00000000   0x00000000   0x116A6AA0
+0050: 0x00000001   0x00000478   0x00000479   0x00B1C22C
+0060: 0x006E3391   0x00000000   0x00000001   0x000006E7
+0070: 0x00000001   0x03E39DF8   0x00000000   0x004985DF
+0080: 0xFFFFFFFF   0x00000001   0x000006E7   0x0177F7A4
+0090: 0x00000000   0x0177F7AC   0x00000000   0x76BF0801
+00A0: 0x76B984C0   0x00000000   0x00000000   0x00000001
+00B0: 0x0177F5C4   0x76B98827   0x76BF0818   0x00000000
+00C0: 0x3F7F4449   0x00000000   0x00002710   0x00002710
+00D0: 0x0177F7A4   0x0074529F   0x00000001   0x03E39DF8
+00E0: 0x00000001   0x000F4240   0x005617C5   0x00561A17
+00F0: 0x00483DEF   0x00000000   0x49742400   0xC9742400
+0100: 0xC9742400   0x49742400   0xC9742400   0x49742400
+0110: 0x00000000   0x0000053F   0x0177F6D0   0x00000000
+0120: 0x1840E020   0x0047CCC4   0x00000000   0x00000175
+0130: 0xFFFFFFFF   0x00000001   0x03E39DF8   0x0177F6E0
+0140: 0x00000000   0x004682A2   0x00000001   0x00000001
+0150: 0x000000A5   0x19CB3A58   0x000000B8   0x00002000
+0160: 0x000D0218   0x000000B8   0x03E30000   0x0177F710
+0170: 0x00000039   0x44D48EEC   0xC484A730   0x41BC3C84
+0180: 0x19C94190   0x000000C0   0x00469EF7   0x0000053F
+0190: 0x000053E8   0x008EA0A8   0x000053E8   0x008EA0A8
+01A0: 0x0000000C   0x00408967   0x00000432   0x03E39DF8
+01B0: 0x0177F798   0x00000000   0x0047EFC8   0x00000432
+01C0: 0x00000002   0x03E39DF8   0x00000000   0x00000247
+01D0: 0x00000000   0x04167D5C   0x3F7FDFF2   0xBD0018F8
+01E0: 0x00000000   0x03E30000   0x3D0018F8   0x3F7FDFF2
+01F0: 0x00000000   0x000000B8   0x00000000   0x00000000
+0200: 0x3F800000   0x0FA00000   0x19CB5288   0x76BAEAD7
+0210: 0x116A6AA0   0x04167FF5   0x000001D6   0x00000001
+0220: 0x0177FA5C   0x00000001   0x00007001   0x19CB5288
+0230: 0x3F7FDFF2   0xBD0018F8   0x00000000   0x03E30000
+0240: 0x3D0018F8   0x0177F788   0x00838353   0xFFFFFFFF
+0250: 0x0177F794   0x00838D7D   0xFFFFFFFF   0x00469EF7
+0260: 0x000006E7   0x0177F7B4   0x04161A5E   0x04161C14
+0270: 0x19CB5288   0x00000479   0x00000001   0x00000479

SCM Op: 0x6E7, lDbg: 1 LastRendObj: 870

Game Version: US 1.0

State Information: Ped Context: 0
Reply
#2

Quote:
Originally Posted by andrejc999
Посмотреть сообщение
Do you have any recommendations for me?
Yes. Post their crash log(s).
Reply
#3

Finally got it...
Код:
SA-MP 0.3.7
Exception At Address: 0x007324B6
Base: 0x04480000

Registers:
EAX: 0xC1000000 EBX: 0x0000002F ECX: 0x16C0A9A8 EDX: 0x000000C7
ESI: 0x00000007 EDI: 0x0ED855D8 EBP: 0x17B71C88 ESP: 0x0028FCA4
EFLAGS: 0x00210293

Stack:
+0000: 0x04640D48   0x04640D48   0x000000C7   0x00000000
+0010: 0xFFFFFFFF   0x00FFFFFF   0x0028FD14   0x08FE9574
+0020: 0x62BC2DC4   0x00000001   0x07481D80   0x0AD95D10
+0030: 0x00000001   0x0028FCF8   0x6B65017F   0x0000001C
+0040: 0x0028FCF8   0x67315F47   0x08FE9574   0x0028FD14
+0050: 0x0AD95AE0   0x0028FD1C   0x6B64CD5E   0x07481D80
+0060: 0x0028FD14   0x0000001C   0x071BE2E0   0x00000000
+0070: 0x0000001C   0x00000001   0x0028FD50   0xBEEE4600
+0080: 0x0000001C   0x00000001   0xD9B83032   0x000000C8
+0090: 0x00000000   0x434788DD   0x00000000   0x0028FD2C
+00A0: 0x0028FF78   0x76B77D59   0x00732639   0x17B71C88
+00B0: 0x000000C7   0x050116B8   0x00732BDC   0x04640D48
+00C0: 0x17B71C88   0x000000C7   0x76B77D59   0x0000001A
+00D0: 0x04011B54   0x00733F2A   0x05011600   0x446A8367
+00E0: 0x00000001   0x045203A7   0x0053E01E   0x00000000
+00F0: 0x0053EAA6   0x03FD9AE4   0x0053EAC4   0x43C80000
+0100: 0x43960000   0x0053ECC2   0x00000001   0x00619B71
+0110: 0x0000001A   0x00000001   0x00000001   0x0000000A
+0120: 0x00748DA0   0x0000001A   0x00000001   0x750A1245
+0130: 0x00000000   0x0028FF88   0x7EFDE000   0x01FA0000
+0140: 0x4DFBCEB6   0x03FA10F0   0x00000008   0x00000100
+0150: 0x00000008   0x00000102   0x43C80000   0x43960000
+0160: 0x00000000   0x00000000   0x00000320   0x00000258
+0170: 0x00000000   0x00000001   0x00670496   0x00000113
+0180: 0x00000001   0x00000000   0x001D0618   0x00000190
+0190: 0x0000012C   0x0000002C   0x0028FE2C   0x00825EA4
+01A0: 0x750A1245   0x00000000   0x7EFDE000   0xFFFFFFFF
+01B0: 0x00821D17   0x00000065   0x00000065   0x0028FF88
+01C0: 0x008246F1   0x00400000   0x00000000   0x01AE3068
+01D0: 0x0000000A   0x00000094   0x00000006   0x00000001
+01E0: 0x00001DB1   0x00000002   0x76726553   0x20656369
+01F0: 0x6B636150   0x00003120   0x00000000   0x00000000
+0200: 0x00000000   0x00000000   0x00000000   0x00000000
+0210: 0x00000000   0x00000000   0x00000000   0x00000000
+0220: 0x00000000   0x00000000   0x00000000   0x00000000
+0230: 0x00000000   0x00000000   0x00000000   0x00000000
+0240: 0x00000000   0x00000000   0x00000000   0x00000000
+0250: 0x00000000   0x00000000   0x00000000   0x00000000
+0260: 0x00000000   0x00824588   0x0028FF88   0x00000000
+0270: 0x7EFDE000   0xC0000005   0x00000000   0x01AE3068

SCM Op: 0x6BD, lDbg: 0 LastRendObj: 982

Game Version: US 1.0

State Information: Ped Context: 0
P1 (19,266)
Another one:

Код:
SA-MP 0.3.7
Exception At Address: 0x007324B6
Base: 0x04190000

Registers:
EAX: 0xC1000000 EBX: 0x0000002F ECX: 0x1626DA30 EDX: 0x000000E3
ESI: 0x00000007 EDI: 0x173332D0 EBP: 0x174963B4 ESP: 0x0028FCA4
EFLAGS: 0x00010293

Stack:
+0000: 0x04350D48   0x04350D48   0x000000E3   0x00000000
+0010: 0xFFFFFFFF   0xFFFFFFFF   0x00FFFFFF   0x07BD879C
+0020: 0x62BC2DC4   0x00000001   0x019A4180   0x071E7E30
+0030: 0x00000001   0x0028FCF8   0x6B65017F   0x0000001C
+0040: 0x0028FCF8   0x67315F47   0x07BD879C   0x0028FD14
+0050: 0x071E7C00   0x0028FD1C   0x6B64CD5E   0x019A4180
+0060: 0x0028FD14   0x0000001C   0x071DE2E0   0x00000000
+0070: 0x0000001C   0x00000001   0x0028FD50   0xBE891A00
+0080: 0x0000001C   0x00000001   0xC30F428C   0x000000E4
+0090: 0x00000000   0x4363BB73   0x00000000   0x0028FD2C
+00A0: 0x0028FF78   0x76B77D59   0x00732639   0x174963B4
+00B0: 0x000000E3   0x04C316B8   0x00732BDC   0x04350D48
+00C0: 0x174963B4   0x000000E3   0x76B77D59   0x0000001A
+00D0: 0x047814C4   0x00733F2A   0x04C31600   0x44686FC2
+00E0: 0x00000001   0x042303A7   0x0053E01E   0x00000000
+00F0: 0x0053EAA6   0x04749AE4   0x0053EAC4   0x43C80000
+0100: 0x43960000   0x0053ECC2   0x00000001   0x00619B71
+0110: 0x0000001A   0x00000001   0x00000001   0x0000000A
+0120: 0x00748DA0   0x0000001A   0x00000001   0x750A1245
+0130: 0x00000000   0x0028FF88   0x7EFDE000   0x01EC0000
+0140: 0x4EAB1722   0x04EC10F0   0x00000008   0x00000100
+0150: 0x00000008   0x00000102   0x43C80000   0x43960000
+0160: 0x00000000   0x00000000   0x00000320   0x00000258
+0170: 0x00000000   0x00000001   0x0020050E   0x00000200
+0180: 0x00000000   0x012C0190   0x00227BC4   0x00000190
+0190: 0x0000012C   0x0000002C   0x0028FE2C   0x00825EA4
+01A0: 0x750A1245   0x00000000   0x7EFDE000   0xFFFFFFFF
+01B0: 0x00821D17   0x00000065   0x00000065   0x0028FF88
+01C0: 0x008246F1   0x00400000   0x00000000   0x017B3068
+01D0: 0x0000000A   0x00000094   0x00000006   0x00000001
+01E0: 0x00001DB1   0x00000002   0x76726553   0x20656369
+01F0: 0x6B636150   0x00003120   0x00000000   0x00000000
+0200: 0x00000000   0x00000000   0x00000000   0x00000000
+0210: 0x00000000   0x00000000   0x00000000   0x00000000
+0220: 0x00000000   0x00000000   0x00000000   0x00000000
+0230: 0x00000000   0x00000000   0x00000000   0x00000000
+0240: 0x00000000   0x00000000   0x00000000   0x00000000
+0250: 0x00000000   0x00000000   0x00000000   0x00000000
+0260: 0x00000000   0x00824588   0x0028FF88   0x00000000
+0270: 0x7EFDE000   0xC0000005   0x00000000   0x017B3068

SCM Op: 0x2BF, lDbg: 0 LastRendObj: 982

Game Version: US 1.0

State Information: Ped Context: 0
Same address different base, what does it mean?

EDIT: Something else,

I removed over 800 objects one by one because that's what the editor does. Could this be the thing that's causing these crashes?
Reply
#4

Quote:

SCM Op: 0x2BF, lDbg: 0 LastRendObj: 982

Your problem is with object ID 982 that makes people crash.

https://dev.prineside.com/en/gtasa_s...982-fenceshit/
Reply
#5

I don't understand why it crashes people?

EDIT:

Here are the objects:

Код:
CreateDynamicObject(982, -321.51929, 1507.44983, 75.22069,   0.00000, 0.00000, 90.00000, 3);
CreateDynamicObject(982, -334.29794, 1507.43994, 75.22069,   0.00000, 0.00000, 90.00000, 3);
CreateDynamicObject(982, -347.10858, 1520.26965, 75.02023,   0.00000, 0.00000, 0.00000, 3);
CreateDynamicObject(982, -334.33792, 1533.08167, 75.02589,   0.00000, 0.00000, 90.00000, 3);
CreateDynamicObject(982, -308.77441, 1533.06702, 75.02589,   0.00000, 0.00000, 90.00000, 3);
CreateDynamicObject(982, -295.98245, 1520.30994, 75.02590,   0.00000, 0.00000, 0.00000, 3);
I created them in world 3 because that's where the race event is.
Reply
#6

Objects that crash:

1215, 982

Why?
Reply
#7

I think it's not because of objects. I tried removing those that cause a crash and yet another one comes out so that's not the problem.

Player crash on first spawn for some reason. People who have a crashfix for their GTA game don't crash at all so I don't know what to do. I'm planning to open the server soon but I have to fix this first.

I've been destroying my head with this for last 7 days and still can't find a fix.

Should I provide you with more information like my includes or something, if it helps?

EDIT:

If it helps here ya go:

Код:
#include <a_samp>
#undef MAX_PLAYERS
#define MAX_PLAYERS 100
#include <fixes2>
#include <a_players>
#include <YSI\y_iterate>
#include <YSI\y_timers>
#include <streamer>
#include <sscanf2>
#include <OnPlayerUseVending>
#include <strlib>
#include <Dini2>
#include <PawnCMD>
#include <DialogCenter>
#include <timerfix>
Another thing, Dini2 is faster than y_ini that's why I'm using it and I guess I'll stick with it.


EDIT 2: I fixed it.

I was adding a component to a vehicle that doesn't support it, that's why it crashed all the time.
Some of the other crashes were because of some little things I poorly scripted and it's all fine now.

Thanks anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)