SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 31/05/2018, 03:51 AM   #1
XSharkX
Little Clucker
 
Join Date: Jan 2016
Posts: 23
Reputation: 0
Default amx backtrace

Server keep crashing while starting and i dont know the reason anyone can help me
PHP Code:
Number of vehicle models0
ERROR
HTTP error WinHttpSendRequest12029A connection with the server could not be established

store endpoint indexing failed errorCode
=1 errorMessage="WinHttpSendRequest: 12029: A connection with the server could n"
[debugAMX backtrace:
[
debug#0 native PrintBacktrace () from crashdetect.DLL
[debug#1 000013cc in fatal (text[]=@00fbb9d0 "store endpoint indexing failed", ... <2 arguments>) at C:\Users\Wassim\Desktop\ScavengeSurvive-master\dependencies\samp-logger\logger.inc:168
[debug#2 00099370 in public OnRequestFailure (Request:id=0, errorCode=1, errorMessage[]=@01fbc8d4 "WinHttpSendRequest: 12029: A connection with the server could not be established", len=82) at C:\Users\Wassim\Desktop\ScavengeSurvive-master\gamemodes\ScavengeSurvive.pwn:492
[debugServer crashed while executing ScavengeSurvive.amx
[debugAMX backtrace:
[
debug#0 native fread () from samp-server.exe
[debug#1 00001470 in fatal (text[]=@00fbb9d0 "store endpoint indexing failed", ... <2 arguments>) at C:\Users\Wassim\Desktop\ScavengeSurvive-master\dependencies\samp-logger\logger.inc:172
[debug#2 00099370 in public OnRequestFailure (Request:id=0, errorCode=1, errorMessage[]=@01fbc8d4 "WinHttpSendRequest: 12029: A connection with the server could not be established", len=82) at C:\Users\Wassim\Desktop\ScavengeSurvive-master\gamemodes\ScavengeSurvive.pwn:492
[debugNative backtrace:
[
debug#0 76e877b2 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[debug#1 00498c48 in ?? () from samp-server.exe
[debug#2 00499270 in ?? () from samp-server.exe
[debug#3 00404f44 in ?? () from samp-server.exe
[debugRegisters:
[
debugEAX00000024 EBX00000001 ECX004e5998 EDX050d7ee8
[debugESI00000024 EDI00000020 EBP00000000 ESP0012fa84
[debugEIP00404f44 EFLAGS00210216
[debugStack:
[
debugESP+0000000000000000 0012faa0 050d7ed4 00000001
[debugESP+000000205f665b2a 00405832 00000000 00000001
[debugESP+0000004000000001 00000000 0012fbfc 004010b6
[debugESP+00000060018935e8 0000000a 0012fc70 050d7ed4
[debugESP+0000008076e5e0ed 018935e8 00000000 01ffc89c
[debugESP+000000a00012fb70 00000000 0012fbcc 76e9fa22
[debugESP+000000c000000000 0000ffff 5f390000 00000274
[debugESP+000000e00012fb70 ffbadd11 c0000139 6e4f0000
[debugESP+0000010076e92e82 002fa558 00000060 0000005f
[debugESP+000001200000ffff 00000000 002975d1 0012fbe4
[debugESP+00000140050d7ed4 0012fc70 00000000 018935e8
[debugESP+000001600012fbf0 01e209f0 8b4efccc 0012fe08
[debugESP+000001800000000a 0012fc70 050d7ed4 0012fc68
[debugESP+000001a0050d7ed4 00000049 00000049 01e216e8
[debugESP+000001c000000000 03042680 01fbca20 01ffc8d0
[debugESP+000001e001ffba5c 0012fccc 5f67a767 00000000
[debugESP+0000020000000004 0012fce8 0012fd74 00000000
[debugESP+00000220018935e8 00000001 00000000 00000000
[debugESP+00000240018935e8 0012fcdc 0012fcdc 5f67d65a
[debugESP+00000260018935e8 0012fd88 00000049 0028f2c8
[debugESP+0000028000000000 0012fd88 00000004 018935e8
[debugESP+000002a00012fd98 0012fd64 002fa558 05098d4c
[debugESP+000002c0002a7ca8 002a7f28 00000000 00000000
[debugESP+000002e005098d4c 018935e8 00000000 00000000
[debugESP+000003000028f2c8 00000000 00000000 00000000
[debugESP+0000032000000000 0000027f 00000000 76e86164
[debugESP+00000340002eb670 76e93188 00000000 00000000
[debugESP+00000360002fa558 00299280 7ef6f89d 407cf34b
[debugESP+000003800012fd40 0012fea4 5f5d81fd 00000002
[debugESP+000003a001479a24 00469a66 758aba90 758abccc
[debugESP+000003c07ffdd000 0001d000 00010001 00000020
[debugESP+000003e0656d6167 65646f6d 00003531 004c4020
[debugLoaded modules:
[
debug00400000 00519000 samp-server.exe
[debug76e40000 76f7c000 ntdll.dll
[debug75860000 75934000 kernel32.dll
[debug751f0000 7523a000 KERNELBASE.dll
[debug75c40000 7688a000 SHELL32.dll
[debug76d90000 76e3c000 msvcrt.dll
[debug754c0000 75517000 SHLWAPI.dll
[debug756a0000 756ee000 GDI32.dll
[debug75540000 75609000 USER32.dll
[debug75690000 7569a000 LPK.dll
[debug76890000 7692d000 USP10.dll
[debug6f910000 6f917000 WSOCK32.dll
[debug76f80000 76fb5000 WS2_32.dll
[debug756f0000 75791000 RPCRT4.dll
[debug75520000 75526000 NSI.dll
[debug71150000 71182000 WINMM.dll
[debug75840000 7585f000 IMM32.DLL
[debug76930000 769fc000 MSCTF.dll
[debug5f660000 5f6b0000 crashdetect.DLL
[debug5f5f0000 5f659000 MSVCP100.dll
[debug57e40000 57eff000 MSVCR100.dll
[debug10000000 1000f000 sscanf.DLL
[debug6f660000 6f675000 VCRUNTIME140.dll
[debug6f650000 6f654000 api-ms-win-crt-runtime-l1-1-0.dll
[debug6f570000 6f64c000 ucrtbase.DLL
[debug6f560000 6f563000 api-ms-win-core-timezone-l1-1-0.dll
[debug6f550000 6f553000 api-ms-win-core-file-l2-1-0.dll
[debug6f540000 6f543000 api-ms-win-core-localization-l1-2-0.dll
[debug711b0000 711b3000 api-ms-win-core-synch-l1-2-0.dll
[debug6f530000 6f533000 api-ms-win-core-processthreads-l1-1-1.dll
[debug6f520000 6f523000 api-ms-win-core-file-l1-2-0.dll
[debug6f510000 6f514000 api-ms-win-crt-string-l1-1-0.dll
[debug6f500000 6f503000 api-ms-win-crt-heap-l1-1-0.dll
[debug6f4f0000 6f4f4000 api-ms-win-crt-stdio-l1-1-0.dll
[debug6f4e0000 6f4e4000 api-ms-win-crt-convert-l1-1-0.dll
[debug5f390000 5f3f7000 streamer.DLL
[debug6ef30000 6ef9d000 MSVCP140.dll
[debug6eef0000 6eef3000 api-ms-win-crt-locale-l1-1-0.dll
[debug6f4a0000 6f4a5000 api-ms-win-crt-math-l1-1-0.dll
[debug6eee0000 6eee5000 api-ms-win-crt-multibyte-l1-1-0.dll
[debug6f4c0000 6f4c3000 api-ms-win-crt-time-l1-1-0.dll
[debug6f490000 6f493000 api-ms-win-crt-filesystem-l1-1-0.dll
[debug6f4d0000 6f4d3000 api-ms-win-crt-environment-l1-1-0.dll
[debug6f4b0000 6f4b3000 api-ms-win-crt-utility-l1-1-0.dll
[debug65550000 65558000 ctime.DLL
[debug65360000 65370000 mapandreas.DLL
[debug5f5b0000 5f5ed000 requests.DLL
[debug56530000 5668d000 cpprest_2_10.dll
[debug65540000 6554b000 HTTPAPI.dll
[debug70960000 709b8000 WINHTTP.dll
[debug70910000 7095f000 webio.dll
[debug74b20000 74b37000 bcrypt.dll
[debug750a0000 751bd000 CRYPT32.dll
[debug75000000 7500c000 MSASN1.dll
[debug5f570000 5f579000 boost_system-vc141-mt-x32-1_66.dll
[debug5f560000 5f56d000 boost_date_time-vc141-mt-x32-1_66.dll
[debug5f2b0000 5f2f9000 SSLEAY32.dll
[debug553c0000 55521000 LIBEAY32.dll
[debug757a0000 75840000 ADVAPI32.dll
[debug76ff0000 77009000 sechost.dll
[debug6f480000 6f483000 api-ms-win-crt-conio-l1-1-0.dll
[debug5f540000 5f556000 zlib1.dll
[debug5d240000 5d27b000 CONCRT140.dll
[debug5d210000 5d233000 fsutil.DLL
[debug5f530000 5f53a000 pawn-memory.DLL
[debug5f520000 5f52d000 Whirlpool.DLL
[debug749d0000 74a0c000 mswsock.dll
[debug74520000 74525000 wshtcpip.dll
[debug73790000 737a0000 NLAapi.dll
[debug70a90000 70aa0000 napinsp.dll
[debug708b0000 708c2000 pnrpnsp.dll
[debug74890000 748d4000 DNSAPI.dll
[debug708a0000 708a8000 winrnr.dll
[debug73560000 7357c000 IPHLPAPI.DLL
[debug73550000 73557000 WINNSI.DLL
[debug72f60000 72f98000 fwpuclnt.dll
[debug719a0000 719a6000 rasadhlp.dll
[debug75940000 75a9c000 ole32.dll
[debug74ee0000 74eec000 CRYPTBASE.dll
[debug73ea0000 73f95000 PROPSYS.dll
[debug752e0000 7536f000 OLEAUT32.dll
[debug73d00000 73e9e000 comctl32.dll
[debug74e90000 74edc000 apphelp.dll
[debug76b00000 76b83000 CLBCatQ.DLL
[debug76b90000 76d8b000 iertutil.dll
[debug75370000 754a6000 urlmon.dll
[debug76a00000 76af5000 WININET.dll
[debug738d0000 738f1000 ntmarta.dll
[debug75290000 752d5000 WLDAP32.dll
[debug74e70000 74e8b000 SspiCli.dll
[debug72f40000 72f4d000 dhcpcsvc6.DLL
[debug75aa0000 75c3d000 SETUPAPI.dll
[debug751c0000 751e7000 CFGMGR32.dll
[debug75240000 75252000 DEVOBJ.dll
[debug72f20000 72f32000 dhcpcsvc.DLL
[debug746b0000 746b8000 credssp.dll
[debug749c0000 749c6000 wship6.dll
WARN
crash loop backoff for 2s reason: exit status -1073741819
ERROR
received runtime errorfailed to start server: exit status -1073741819 
XSharkX is offline   Reply With Quote
Old 31/05/2018, 10:56 AM   #2
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,227
Reputation: 205
Default Re: amx backtrace

PrintBacktrace and fread functions seem to be the cause. Both are being called from the same function so post the code of "fatal" function.
Calisthenics is offline   Reply With Quote
Old 31/05/2018, 04:27 PM   #3
XSharkX
Little Clucker
 
Join Date: Jan 2016
Posts: 23
Reputation: 0
Default Re: amx backtrace

Sorry i did not respond in time ,
PHP Code:
stock fatal(text[], LOGGER_FIELD:...) {
    new 
total numargs();

    if (
total == 1) {
        print(
_:_s("text"text));
        return;
    }

    new 
result[MAX_EVENT_LENGTH];
    
strcat(resulttext);

    for(new 
arg 1arg total && arg MAX_EVENT_FIELDS; ++arg) {
        new 
field[MAX_FIELD_LENGTH];
        for(new 
chch MAX_FIELD_LENGTH; ++ch) {
            
field[ch] = getarg(argch);
            if(
field[ch] == EOS) {
                
strcat(result" ");
                
strcat(resultfield);
                break;
            }
        }
    }

    print(
result);
    
PrintAmxBacktrace();

    
// trigger a crash to escape the gamemode
    
new File:fopen("nonexistentfile"io_read), tmp[1];
    
fread(ftmp);
    
fclose(f);

XSharkX is offline   Reply With Quote
Old 31/05/2018, 04:31 PM   #4
J0sh...
Banned
 
Join Date: Aug 2014
Location: Hamburger
Posts: 1,276
Reputation: 461
Default Re: amx backtrace

PHP Code:
 // trigger a crash to escape the gamemode
    
new File:fopen("nonexistentfile"io_read), tmp[1];
    
fread(ftmp);
    
fclose(f); 
Remove this? That's causing the server to crash, as the comment says.

Though perhaps southclaws has something to say in regards to his gamemode.
J0sh... is offline   Reply With Quote
Old 31/05/2018, 04:34 PM   #5
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,227
Reputation: 205
Default Re: amx backtrace

pawn Code:
// trigger a crash to escape the gamemode
new File:f = fopen("nonexistentfile", io_read), tmp[1];
fread(f, tmp);
fclose(f);
Why do you try forcefully to crash the server in the first place? You can send rcon command "exit" to close the server.
Calisthenics is offline   Reply With Quote
Old 31/05/2018, 04:48 PM   #6
XSharkX
Little Clucker
 
Join Date: Jan 2016
Posts: 23
Reputation: 0
Default Re: amx backtrace

Alright thank you.
XSharkX is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AMX backtrace MerryDeer Scripting Help 0 11/10/2016 12:33 PM
AMX Backtrace KnowNN Scripting Help 6 04/02/2016 07:39 PM
AMX backtrace Auri Scripting Help 3 02/02/2016 11:32 AM
AMX Backtrace [+Rep] RayC Scripting Help 2 04/01/2015 07:51 PM


All times are GMT. The time now is 04:43 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.