Description
Server crashes if pickup is created during the player spawn callback and then closed with Ctrl+C.
Reproducible
Always
What you were doing when the bug happened
I was trying to create an example for a plugin I was working on. When I noticed I get a crash when I try to close the server. I thought I did something wrong and verified all possible causes. I eventually tracked it down to this point and tried in the official plugin and got the same result.
What you think caused the bug
I couldn't possibly know that in this situation.
Just paste the following code into a blank script and start the server with it:
function onPlayerSpawn(player)
{
pickup <- CreatePickup(367, 0, 99, player.Pos, 100, false);
}
Join the server and spawn in the game. Now try to close the server console window with Ctr+C while spawned in game.
If you create the pickup anywhere else then the crash no longer occurs.
@S.L.C it never crashes for me i tried placing it on first and last line in onPlayerSpawn it works fine. i am using 32bit version of serverEdit : Sorry i didn't read that Ctrl + C thing actually it crashes with this error
Problem signature:
Problem Event Name: APPCRASH
Application Name: server32.exe
Application Version: 0.0.0.0
Application Timestamp: 56d615d6
Fault Module Name: server32.exe
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 56d615d6
Exception Code: c0000005
Exception Offset: 0006640d
OS Version: 6.1.7600.2.0.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
Do you have the server.conf plugin?
It's connected with this (http://forum.vc-mp.org/?topic=513.msg3451#msg3451).