Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing server via default actor parameters #440

Open
MuthaX opened this issue Oct 23, 2022 · 0 comments
Open

Crashing server via default actor parameters #440

MuthaX opened this issue Oct 23, 2022 · 0 comments

Comments

@MuthaX
Copy link

MuthaX commented Oct 23, 2022

Conditions:

  • At least 1 player online.
  • At least 1 actor created with (for example):
    CreateDynamicActor(0, 1921.0, -1436.0, 17.0, 100.0, false, 100.0, -1, -1, -1, 150.0, STREAMER_TAG_AREA:-1, 0);
  • Having at least 1 loaded FilterScript (it can be empty FS)
  • server crashes after server console receives 'gmx' command.

Enviroment conditions:

  • samp 0.3.7
  • Only streamer plugin (latest v2.9.5 release)
  • Clear gamemode
#include <a_samp>
#include <streamer.cpp>
public OnGameModeInit() {
	CreateDynamicActor(0, 1921.0, -1436.0, 17.0, 100.0, false, 100.0, -1, -1, -1, 150.0, STREAMER_TAG_AREA:-1, 0);
}

Crashlog:

[23:48:23] [debug] Server crashed due to an unknown error
[23:48:23] [debug] Native backtrace:
[23:48:23] [debug] #0 004792fa in ?? () from samp-server.exe
[23:48:23] [debug] #1 51b6f0f3 in ?? () from plugins\streamer.DLL
[23:48:23] [debug] #2 51b6eba9 in ?? () from plugins\streamer.DLL
[23:48:23] [debug] #3 00469a66 in ?? () from samp-server.exe
[23:48:23] [debug] #4 0048d4db in ?? () from samp-server.exe
[23:48:23] [debug] #5 0049b4a1 in ?? () from samp-server.exe
[23:48:23] [debug] #6 0049b4b1 in ?? () from samp-server.exe

Temporary solution

It seems that intetiorid=-1 OR/AND virtualworld=-1 in CreateDynamicActor leads to server crash.
In case interiorid=0, virtualworld=0 (non -1) there is no problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant