openmultiplayer / server-beta-old

open.mp server beta releases
142 stars 14 forks source link

[BUG]: Random Crashes #42

Closed realhus closed 2 years ago

realhus commented 2 years ago

Description

My game randomly freezes. Warning(opcode 0x38B): Exception 0xC0000005 at 0x4C8F24

How to reproduce this bug

Unfortunately, I couldn't reproduce it. it just happens randomly.

Relevant log output

ChatLogs : Warning(opcode 0x38B): Exception 0xC0000005 at 0x4C8F24 Nothing in server logs

open.mp server version

Beta 2

Operating system or distribution

Windows11

Contact information

sus#8803 in discord

Additional information

The server doesn't crash. my game freezes and I have to exit it with the task manager. I cannot play for 1minute straight without crashing. I tried to reproduce it but couldn't, it happens randomly I don't encounter this in SAMP. No op-codes on samp are shown

AmyrAhmady commented 2 years ago

All I can tell is it's related to vehicles, and most likely related to vehicle upgrades, such as components and mod Would be really great if you find a way to reproduce this for us

realhus commented 2 years ago

All I can tell is it's related to vehicles, and most likely related to vehicle upgrades, such as components and mod Would be really great if you find a way to reproduce this for us

I'm still trying to reproduce it. here are some things I tried 1- removed all vehicle components by hooking addvehiclecomponent function and making it return 0. The game still crashed. 2- I totally removed all vehicles on the server , the crash is gone 3- I loaded the same vehicles again using a filterscript, it didn't crash 4 - I joined the server from android (without removing vehicles) it didnt crash it occurs only at one specific location in the map. might be due to too many vehicles in the same area. I'm not sure . I'll update you if I find something

AmyrAhmady commented 2 years ago

Thanks

realhus commented 2 years ago

I was able to reproduce it with this script. just run this gamemode and use /SF command to teleport to an area with vehicles. It crashes for me in open.mp and works fine in samp.

bare.txt

I think it crashes when there are too many vehicle models loaded in a specific area

Crash

AddVehicle(id,Float:x,Float:y,Float:z,Float:rz,c1=-1,c2=-1,c=60)
{
   return CreateVehicle(id,x,y,z,rz,c1,c2,c,false);
}

No Crash

AddVehicle(id,Float:x,Float:y,Float:z,Float:rz,c1=-1,c2=-1,c=60)
{
   return CreateVehicle(411,x,y,z,rz,c1,c2,c,false);
}
AmyrAhmady commented 2 years ago

That will help a lot, thanks

realhus commented 2 years ago

The issue is fixed after using another downgrade patch