Gamemode fails to load on linux server
#1

Hi! I've been facing problems with our linux hosted server.
When we start the gamemode, everything loads up perfectly according to the server log (mysql, whirpool and the other plugins are fine too) it also loads our things like doors, interiors and things like that from scriptfiles correctly. But the Gamemode stays unknown.
You actually !CAN! join the server, and somehow the gamemode starts, you can log in and play, but... The gamemode somehow messes up the dialogs for itself, forgets dialog ids, commands. It just gets crazy.. For example cars blow up randomly when you enter them. And the interesting part is this, that it only loads somewhat "half" of the gamemode.

Nativechecker didnt find any errors, but crashdetect displayed some lines, like this:

Код:
[19:03:05] [debug] Run time error 4: "Array index out of bounds"
[19:03:05] [debug]  Accessing element at index 65535 past array upper bound 1999
[19:03:05] [debug] AMX backtrace:
[19:03:05] [debug] #0 000e0188 in ?? (0x00000000, 0x45046eac, 0xc4904f33, 0x41c051ec, 0x43af3937, 0x00000087, 0x000000b1, 0x447a0000)
[19:03:05] [debug] #1 00144e60 in public LoadCar ()
[19:03:05] [debug] #2 000e5aa4 in public AllCarSpawn ()
[19:03:05] [debug] #3 0014faa0 in public Itter_OnGameModeInit ()
[19:03:05] [debug] #4 native CallLocalFunction () [080dfac0] from samp03svr
[19:03:05] [debug] #5 0002d798 in public SSCANF_OnGameModeInit ()
[19:03:05] [debug] #6 native CallLocalFunction () [080dfac0] from samp03svr
[19:03:05] [debug] #7 0000ca0c in public OnGameModeInit ()
[19:03:05] Number of vehicle models: 38

Here the log continues, but IMO this is when I stopped the server :D

[19:03:05] New version of CrashDetect is available for download (4.13)
[19:03:19] [debug] Server received interrupt signal
[19:03:19] [debug] Native backtrace:
[19:03:19] [debug] #0 f69cca5b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[19:03:19] [debug] #1 f69c5852 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[19:03:19] [debug] #2 f69c635c in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[19:03:19] [debug] #3 f69c67ae in _ZN11CrashDetect11OnInterruptEPv () from plugins/crashdetect.so
[19:03:19] [debug] #4 f69cc6fd in ?? () from plugins/crashdetect.so
[19:03:19] [debug] #5 f76e5bd0 in ?? ()
[19:03:19] [debug] #6 f76e5be9 in ?? ()
[19:03:19] [debug] #7 f73c325a in nanosleep () from /lib/i386-linux-gnu/libc.so.6
[19:03:19] [debug] #8 f73f3105 in usleep () from /lib/i386-linux-gnu/libc.so.6
[19:03:19] [debug] #9 080aa172 in ?? () from ./samp03svr
[19:03:19] [debug] #10 f732b637 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
[19:03:19] [debug] #11 0804b4e1 in ?? () from ./samp03svr
We're running Ubuntu 16.04 and every server plugin is the latest
It worked without any problem for the last one and a half months but now omg..
If its not enough, we tried weeks or months old backups, hoping they would still work, but without success..

Does anyone have any idea what the heck is going on?
Reply
#2

[19:03:05] [debug] Run time error 4: "Array index out of bounds"
[19:03:05] [debug] Accessing element at index 65535 past array upper bound 1999

[19:03:05] [debug] AMX backtrace:
[19:03:05] [debug] #0 000e0188 in ?? (0x00000000, 0x45046eac, 0xc4904f33, 0x41c051ec, 0x43af3937, 0x00000087, 0x000000b1, 0x447a0000)
[19:03:05] [debug] #1 00144e60 in public LoadCar ()



Out of bounds for array size of 2000.
Trying to access 65535 is invalid something (probably vehicleid since 2k is max vehicles).

Function where these happens is unknown ( ?? ) but it is called from LoadCar public.

The rest is up to you to debug. I guess you are loading way to much vehicles from database or something like that. When i say way to much i mean more then 2000 since that is maximum allowed in samp (without kurta's streamer plugin)
Reply
#3

Something, something, INVALID_VEHICLE_ID. Too many vehicles to be created, perhaps? If no more vehicles can be created then CreateVehicle/AddStaticVehicle will return INVALID_VEHICLE_ID (65535).

If I interpret that ?? line (https://www.h-schmidt.net/FloatConverter/IEEE754.html), I get these coordinates:
Код:
2118.917, -1154.475, 24.04
So you may want to start your search there. If that line is in fact actually referring to a CreateVehicle/AddStaticVehicle statement then you are trying to create a vehicle with modelid 0 which will conveniently also return INVALID_VEHICLE_ID.
Reply
#4

Currently there are only about 10 rows (cars) in our database, and the cars only spawn in the game when its owner is logged in. Also, a week ago, when everything was still working, there were over 5000+ cars in the database and it worked flawlessly. Everything worked flawlessly then..
Reply
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
Something, something, INVALID_VEHICLE_ID. Too many vehicles to be created, perhaps? If no more vehicles can be created then CreateVehicle/AddStaticVehicle will return INVALID_VEHICLE_ID (65535).

If I interpret that ?? line (https://www.h-schmidt.net/FloatConverter/IEEE754.html), I get these coordinates:
Код:
2118.917, -1154.475, 24.04
So you may want to start your search there. If that line is in fact actually referring to a CreateVehicle/AddStaticVehicle statement then you are trying to create a vehicle with modelid 0 which will conveniently also return INVALID_VEHICLE_ID.
YAY! There were two cars on this positions which crashed the gamemode. Thanks for your answer, helped a lot man!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)