Script crash
#1

Hi guys, few months ago i started working at my own script, and i almost finished it, but when i upload it to linux server, script crashes for few hours, crashdetect doesnt write anything, no debugs, just when i connect, in about 2 minutes it just say Server closed the connection. I have a lot of includes, like MapAndreas&ColAndreas, i dont know is that a problem, and sorry for my bad english.



Server log when 'Server closed the connection':
Код:
[01:21:08] [connection] xxxx requests connection cookie.
[01:21:09] [connection] incoming connection: xxx id: 0
[01:22:45] [connection] xxx requests connection cookie.
[01:22:46] [connection] incoming connection: xxx id: 0
[13:26:03] [connection] xxx requests connection cookie.
[13:26:34] Kicking xx because they didn't logon to the game.
Btw: When i restart gamemode, it works perfectly and, as i said, after few hours it crashes with no reason.
Includes list:
Код:
#include                               				< a_samp >
#include                                    				< float >
#include                                                           		< time >
#include                                                           		< core >
#include                                                           		< file >
#include                                                           		< sscanf2 >
#include                                                           		< YSI\y_ini >
#include                                                           		< YSI\y_commands >
#include                                                           		< YSI\y_iterate >
#include 									< YSI\y_timers >
#include 									< YSI\y_va >
#include                                                            	< foreach >
#include                                                            	< string >
#include                                                            	< streamer >
#include 									< mapandreas >
#include 									< colandreas >
#include 									< 3DTryg >
#include 									< Hunting >
#include    								< mSelection >
#include    								< speedcap >
//#include                                                                 < fixes >
#include                                                                    < a_actor >
#include 									< GetVehicleColor >
#include                                                                    < [MV]_Functions >
#include 									< DialogCenter >
#include 									< OPVD >
Reply
#2

You just released your ip, remove that man
Reply
#3

Quote:
Originally Posted by AlexMSK
Посмотреть сообщение
You just released your ip, remove that man
Done.

Someone help ?
Reply
#4

I'm pretty sure it's an infinite loop. Do you have customs iterators?
Reply
#5

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
I'm pretty sure it's an infinite loop. Do you have customs iterators?
Yes, i have few of them, about 4-5.
Reply
#6

Quote:
Originally Posted by Danisoni
Посмотреть сообщение
Yes, i have few of them, about 4-5.
You are probably using Iter_Remove in a foreach loop which have a custom iterator. If yes, you need to use Iter_SafeRemove instead of Iter_Remove
Reply
#7

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
You are probably using Iter_Remove in a foreach loop which have a custom iterator. If yes, you need to use Iter_SafeRemove instead of Iter_Remove
Actually, i don't have any Iter_Remove in for loop. I checked my gm few times, no Iter_Remove in for loops.
Reply
#8

Quote:
Originally Posted by Danisoni
Посмотреть сообщение
Actually, i don't have any Iter_Remove in for loop. I checked my gm few times, no Iter_Remove in for loops.
Take a look:
Quote:
Originally Posted by jlalt
Посмотреть сообщение
Yea sorry about the bug, there was a mistake in the script which caused the app to crash, solved now and also optimized the app so now it supposed to be faster.

also the app now threaded and shows the status of progress. [ line finished read & the loops patched in real time ]

download:

https://www.mediafire.com/file/2q8n8...CheckAdder.exe

new source:

https://www.mediafire.com/file/nafkp...CheckAdder.rar

tested on 70k lines gamemode and worked perfectly.
Reply
#9

Well i have a lot of errors and variables that are defined, but not never used. And i need to wait few hours after i fix all of this to check where is infitive loop?

*edit: wtf

Код:
new attemptzaww66;
for (new i = 1, j = GetVehiclePoolSize(); i <= j; i ++)
{
        attemptzaww66++;
        if(attemptzaww66 > ) { PrintAmxBacktrace(); break; } // Errors on lines like this...
...
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)