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

[bug] Streamer crashes the server if call samp Kick function from sampgdk #2

Closed
TheHoda opened this issue Mar 21, 2014 · 7 comments
Closed

Comments

@TheHoda
Copy link

TheHoda commented Mar 21, 2014

I'm using latest sampgdk version, the problem with calling callback OnPlayerDisconnect when using Kick is solved but sometimes now I get a exception of attempt to read/write protected memory!

It's like related to streamer..
Problem Event Name: APPCRASH
Application Name: samp-server.exe
Application Version: 0.3.6.0
Application Timestamp: 52fc71b4
Fault Module Name: streamer.DLL
Fault Module Version: 2.7.0.0
Fault Module Timestamp: 52e7f30f
Exception Code: c0000005
Exception Offset: 0000ebc1
OS Version: 6.2.9200.2.0.0.256.4
Locale ID: 1033
Additional Information 1: e00f
Additional Information 2: e00ff5d5afb09c9691538e3324d69a4d
Additional Information 3: d456
Additional Information 4: d45628be9c6c974490440abc7fb6534e

@samp-incognito
Copy link
Owner

Could you see if this fixes it? https://github.com/samp-incognito/samp-streamer-plugin/releases/download/v2.7.1/streamer-plugin-2.7.1.zip

That is compiled with the latest version of sampgdk, minus the amx_FindPublic``/amx_Exec/amx_Callback hooks. If that doesn't solve it, then it must be some problem with sampgdk.

@TheHoda
Copy link
Author

TheHoda commented Apr 7, 2014

I have checked this for ten times and seems like the problem is gone! However I still don't close this issue because I'm going to make sure it's not solved by random.

@TheHoda
Copy link
Author

TheHoda commented May 23, 2014

Sorry I didn't work on project for a while, now again started developing and again this happened.
Visual studio reports that crash is in streamer.dll
This happens sometimes after using samp Kick native

@TheHoda
Copy link
Author

TheHoda commented May 28, 2014

I found another related info that seems like this happens more if player lost network connection for 1 sec(timeout) and get kicked as soon as his next try. Maybe because there is no delay or any timer issue ?

@samp-incognito
Copy link
Owner

It's something I can't really fix if sampgdk is causing it. I can't imagine any other reason why this would be happening. Perhaps try reporting it to Zeex?

FYI: Compiling a debug version of streamer.dll and attaching the Visual Studio debugger to samp-server.exe will show you exactly where the first exception occurs in the code, which would be most helpful to anyone trying to fix this.

@TheHoda
Copy link
Author

TheHoda commented May 30, 2014

I'm pretty sure there is no problem with sampgdk since whenever I unload the streamer and use default sa-mp natives for objects and etc this doesn't happen. Also visual studio reports that crash happens in streamer.dll.
If you can give me a debug binary file with pdb file then I can test this for you and report it so you can fix it

@samp-incognito
Copy link
Owner

What I'm saying is that the crash is occurring inside of streamer.dll, yes, but the crash is probably originating inside of the sampgdk library, which is statically linked to streamer.dll.

You can see for yourself, though: http://d-h.st/WGr#.U4jWYSiO5ak

@saya1337 saya1337 mentioned this issue Sep 15, 2015
@samp-pinch samp-pinch mentioned this issue Oct 11, 2017
@ErickRomanov ErickRomanov mentioned this issue Oct 19, 2017
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

2 participants