28.07.2013, 17:18
So after a while of trying different things to fix the problem it's time to make a thread. Basically, the issue is randomly fopen starts to return invalid file handles for every file it opens even though they all exist. Now I've used FileEx debugging to try and find the issue but that just keeps the server from crashing on the first instance of fopen returning an invalid file handle. It just keeps the server running with a non-functioning fopen and no files will open until the server is restarted.
The weird thing is there was no issues with fopen until we switched from dini to y_ini. I'm not sure if y_ini or improper usage of y_ini could be the problem but it's possible.
FileEx debugging:
Crash detect errors (only happens without FileEx debugging) :
Thanks for any help you can provide.
The weird thing is there was no issues with fopen until we switched from dini to y_ini. I'm not sure if y_ini or improper usage of y_ini could be the problem but it's possible.
FileEx debugging:
Code:
[07/23/2013 13:55:21] [DEBUG] <file_ex.inc> fopen() -> Failed to open or create file "Logs/Commands.log" [07/23/2013 13:55:21] [DEBUG] <file_ex.inc> fwrite() -> Attempted to write into file stream ( File:0 ) [07/23/2013 13:55:21] [DEBUG] <file_ex.inc> fclose() -> Attempted to destroy a file stream with a NULL pointer ( File:0 ) [07/23/2013 13:55:21] [DEBUG] <file_ex.inc> fopen() -> Failed to open or create file "Logs/Commands.log" [07/23/2013 13:55:21] [DEBUG] <file_ex.inc> fwrite() -> Attempted to write into file stream ( File:0 ) [07/23/2013 13:55:21] [DEBUG] <file_ex.inc> fclose() -> Attempted to destroy a file stream with a NULL pointer ( File:0 ) [07/24/2013 11:20:28] [FileManager]: The file "scriptfiles/Logs/AdminActions.log" was moved to "scriptfiles/Logs/View/2013_07/AdminActions_1374661228.log" [07/24/2013 11:20:28] [FileManager]: "scriptfiles/Logs/AdminActions.log" was created succesfully [07/24/2013 11:20:56] [DEBUG] <file_ex.inc> fopen() -> Failed to open or create file "Logs/AdminActions.log" [07/24/2013 11:20:56] [DEBUG] <file_ex.inc> fwrite() -> Attempted to write into file stream ( File:0 ) [07/24/2013 11:20:56] [DEBUG] <file_ex.inc> fclose() -> Attempted to destroy a file stream with a NULL pointer ( File:0 )
Code:
[07/27/2013 04:28:51] [debug] Server crashed while executing VortexRoleplay.amx [07/27/2013 04:28:51] [debug] AMX backtrace: [07/27/2013 04:28:51] [debug] #0 native fwrite () [00405710] from samp-server.exe [07/27/2013 04:28:51] [debug] #1 00166fcc in ICChatLog (string[]=@0x051b98e8 "[Canadian Accent] Rex McDougal...") at VortexRoleplay.pwn:1905 [07/27/2013 04:28:51] [debug] #2 004a1c24 in ?? (... <2 arguments>) at VortexRoleplay.pwn:20749 [07/27/2013 04:28:51] [debug] #3 0010ca70 in public OnPlayerText (playerid=64, text[]=@0x0427791c "Just wait till I get all my ga...") at C:\Program Files (x86)\pawno\include\YSI\y_hooks/impl.inc:885 [07/27/2013 04:28:51] [debug] Native backtrace: [07/27/2013 04:28:51] [debug] #0 772e22b2 in ?? () from C:\Windows\SysWOW64\ntdll.dll [07/27/2013 04:28:51] [debug] #1 004925a0 in ?? () from C:\Users\Administrator\Desktop\SAMPSrv\samp-server.exe [07/27/2013 04:28:51] [debug] #2 0040534e in ?? () from C:\Users\Administrator\Desktop\SAMPSrv\samp-server.exe