Server crashed while executing dsrpnew.amx
#1

I've attempted to post this over in Server Support a few times and never got a single reply, so I'm over here.

Anyhow, I'm attempting to connect to my server as-soon as I join it automatically crashes.

So I finished getting my old gamemode ready for 0.3.7 after a few mishaps I finally got everything working and started adjusting a few things only to now to have my gamemode crash as soon as anyone logs in.

So I wiped it and got the old verison I had and updated that to 0.3.7 and it was working fully and then I compiled and restarted to now it happens again it'll crash as-soon as anybody joins

I installed crashdetect and got this error in the server log.

Код:
[10:01:40] [debug] Server crashed while executing dsrpnew.amx
[10:01:40] [debug] AMX backtrace:
[10:01:40] [debug] #0 native fread () from samp-server.exe
[10:01:40] [debug] #1 00028cc8 in ?? (76062636) from dsrpnew.amx
[10:01:40] [debug] #2 0003f07c in public RL_OnPlayerConnect (0) from dsrpnew.amx
[10:01:40] [debug] #3 native CallLocalFunction () from samp-server.exe
[10:01:40] [debug] #4 00013528 in public Audio_OnPlayerConnect (0) from dsrpnew.amx
[10:01:40] [debug] #5 native CallLocalFunction () from samp-server.exe
[10:01:40] [debug] #6 0001157c in public SSCANF_OnPlayerConnect (0) from dsrpnew.amx
[10:01:40] [debug] #7 0000b688 in public Itter_OnPlayerConnect (0) from dsrpnew.amx
[10:01:40] [debug] #8 native CallLocalFunction () from samp-server.exe
[10:01:40] [debug] #9 00000da4 in public OnPlayerConnect (0) from dsrpnew.amx
[10:01:40] [debug] Native backtrace:
[10:01:40] [debug] #0 776c5e93 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[10:01:40] [debug] #1 00498bb8 in ?? () from samp-server.exe
[10:01:40] [debug] #2 004991e0 in ?? () from samp-server.exe
[10:01:40] [debug] #3 00404f14 in ?? () from samp-server.exe
Reply
#2

Here i wrote u an fix.

Write this in an file and save it as fix.inc:

PHP код:
/* Sa-Mp Include Fix
 *
 * © by Kaliber, 2015
 *
 */
/******************************************************************************/
#if !defined _samp_included
    #include <a_samp>
#endif
/******************************************************************************/
#if defined _samp_fix
    #endinput
#endif
#define _samp_fix
/******************************************************************************/
native __fread(File:handlestring[], size sizeof stringboolpack false) = fread;
/******************************************************************************/
stock _fread(File:handlestring[], size sizeof stringboolpack false)
    return (!
fexist(string)) ? __fread(handle,string,size,pack);
/******************************************************************************/
#if defined _ALS_fread
    #undef fread
#else
    #define _ALS_fread
#endif
#define fread _fread
/******************************************************************************/ 
Reply
#3

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Here i wrote u an fix.

Write this in an file and save it as fix.inc:

PHP код:
/* Sa-Mp Include Fix
 *
 * © by Kaliber, 2015
 *
 */
/******************************************************************************/
#if !defined _samp_included
    #include <a_samp>
#endif
/******************************************************************************/
#if defined _samp_fix
    #endinput
#endif
#define _samp_fix
/******************************************************************************/
native __fread(File:handlestring[], size sizeof stringboolpack false) = fread;
/******************************************************************************/
stock _fread(File:handlestring[], size sizeof stringboolpack false)
    return (!
fexist(string)) ? __fread(handle,string,size,pack);
/******************************************************************************/
#if defined _ALS_fread
    #undef fread
#else
    #define _ALS_fread
#endif
#define fread _fread
/******************************************************************************/ 
Just to double check, this would go under pawno/includes/fix.inc? if so I've done that and it still crashes upon joining.
Reply
#4

Nah i am sry...

It is a little bit more complex the problem

Okay here the new fix:

PHP код:
/* Sa-Mp Include Fix
 *
 * © by Kaliber, 2015
 *
 */
/******************************************************************************/
#if !defined _samp_included
    #include <a_samp>
#endif
/******************************************************************************/
#if defined _samp_fix
    #endinput
#endif
#define _samp_fix
/******************************************************************************/
native __fopen(name[], filemode:mode io_readwrite) = fopen;
native __fread(File:handlestring[], size sizeof stringboolpack false) = fread;
native __fclose(File:handle) = fclose;
/******************************************************************************/
stock File:_fopen(name[], filemode:mode io_readwrite) {
    const 
File:error File:-1;
    return (!
fexist(name)) ? error File:__fopen(name,mode);
}
/******************************************************************************/
#if defined _ALS_fopen
    #undef fopen
#else
    #define _ALS_fopen
#endif
#define fopen _fopen
/******************************************************************************/
stock _fread(File:handlestring[], size sizeof stringboolpack false)
    return (
handle == File:-1) ? __fread(handle,string,size,pack);
/******************************************************************************/
#if defined _ALS_fread
    #undef fread
#else
    #define _ALS_fread
#endif
#define fread _fread
/******************************************************************************/
stock _fclose(File:handle)
    return (
handle == File:-1) ? __fclose(handle);
/******************************************************************************/
#if defined _ALS_fclose
    #undef fclose
#else
    #define _ALS_fclose
#endif
#define fclose _fclose
/******************************************************************************/ 
Reply
#5

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Nah i am sry...

It is a little bit more complex the problem

Okay here the new fix:

PHP код:
/* Sa-Mp Include Fix
 *
 * © by Kaliber, 2015
 *
 */
/******************************************************************************/
#if !defined _samp_included
    #include <a_samp>
#endif
/******************************************************************************/
#if defined _samp_fix
    #endinput
#endif
#define _samp_fix
/******************************************************************************/
native __fopen(name[], filemode:mode io_readwrite) = fopen;
native __fread(File:handlestring[], size sizeof stringboolpack false) = fread;
native __fclose(File:handle) = fclose;
/******************************************************************************/
stock File:_fopen(name[], filemode:mode io_readwrite) {
    const 
File:error File:-1;
    return (!
fexist(name)) ? error File:__fopen(name,mode);
}
/******************************************************************************/
#if defined _ALS_fopen
    #undef fopen
#else
    #define _ALS_fopen
#endif
#define fopen _fopen
/******************************************************************************/
stock _fread(File:handlestring[], size sizeof stringboolpack false)
    return (
handle == File:-1) ? __fread(handle,string,size,pack);
/******************************************************************************/
#if defined _ALS_fread
    #undef fread
#else
    #define _ALS_fread
#endif
#define fread _fread
/******************************************************************************/
stock _fclose(File:handle)
    return (
handle == File:-1) ? __fclose(handle);
/******************************************************************************/
#if defined _ALS_fclose
    #undef fclose
#else
    #define _ALS_fclose
#endif
#define fclose _fclose
/******************************************************************************/ 
Код:
[10:42:11] [connection] 127.0.0.1:57682 requests connection cookie.
[10:42:12] [connection] incoming connection: 127.0.0.1:57682 id: 0
[10:42:12] [join] Jai_Brooks has joined the server (0:127.0.0.1)
[10:42:12] [debug] Server crashed while executing dsrpnew.amx
[10:42:12] [debug] AMX backtrace:
[10:42:12] [debug] #0 native fread () from samp-server.exe
[10:42:12] [debug] #1 00028cc8 in ?? (76062664) from dsrpnew.amx
[10:42:12] [debug] #2 0003f07c in public RL_OnPlayerConnect (0) from dsrpnew.amx
[10:42:12] [debug] #3 native CallLocalFunction () from samp-server.exe
[10:42:12] [debug] #4 00013528 in public Audio_OnPlayerConnect (0) from dsrpnew.amx
[10:42:12] [debug] #5 native CallLocalFunction () from samp-server.exe
[10:42:12] [debug] #6 0001157c in public SSCANF_OnPlayerConnect (0) from dsrpnew.amx
[10:42:12] [debug] #7 0000b688 in public Itter_OnPlayerConnect (0) from dsrpnew.amx
[10:42:12] [debug] #8 native CallLocalFunction () from samp-server.exe
[10:42:12] [debug] #9 00000da4 in public OnPlayerConnect (0) from dsrpnew.amx
[10:42:12] [debug] Native backtrace:
[10:42:12] [debug] #0 776c5e93 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[10:42:12] [debug] #1 00498bb8 in ?? () from samp-server.exe
[10:42:12] [debug] #2 004991e0 in ?? () from samp-server.exe
[10:42:12] [debug] #3 00404f14 in ?? () from samp-server.exe
Reply
#6

You made #include <fix> in the main script?

And you're sure..you compiled with the right pawno?

In my case it worked perfectly..if you are all sure this get save loaded..then can you show us the code u have in RL_OnPlayerConnect
Reply
#7

Код:
[10:54:49] [debug] #0 776c5e93 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
I remember when I had problems with this .dll file I updated my .NET Framework and intalled all the Microsoft Redistributable packages from 2010 and above.

I recommend you try hosting your server on a linux machine to check if it happens there as well. Might be a windows thing.
Reply
#8

Quote:
Originally Posted by rappy93
Посмотреть сообщение
Код:
[10:54:49] [debug] #0 776c5e93 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
I remember when I had problems with this .dll file I updated my .NET Framework and intalled all the Microsoft Redistributable packages from 2010 and above.

I recommend you try hosting your server on a linux machine to check if it happens there as well. Might be a windows thing.
I'm not able to try it on a linux machine also I've updated .NET Framework and all Microsofts Redistributable packages.

I never had a issue with saving user files upon installing Kaliber's fix.
Reply
#9

I have encountered such a problem, help...
Reply
#10

How about you first compile with debug flags? ****** if you dont know how.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)