Raised This Month: $ Target: $400
 0% 

[BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-20-2008 , 14:57   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #31

Quote:
But hope you can help me
Until I'm not sure that you're running only this plugn and nothing else..

Can you zip and attach your addons/ directory, so I will use your config and will test on listen and dedicated server. I don't see any reason why it doesn't crash for me and connor and crash for you, except if you have a specific plugins or others which interfere. Dunno. I will ask also to a friend to test your config.
__________________
Arkshine is offline
hebusletroll
Senior Member
Join Date: Apr 2006
Old 09-20-2008 , 15:05   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #32

I will attach addons directory

After checking log, i've seen that entity index list is always incremented, i've just changed my stock function

Code:
stock pw_get_entities_near_origin(Float:origin[3],entitylist[],Float:radius)
{
	new entitycount, entityid, lastid
	while((entityid=engfunc(EngFunc_FindEntityInSphere,entityid,origin,radius))!=0)
	{	
		if(entityid<lastid)
			break
				
		entitylist[entitycount]=entityid
		entitycount+=1
		lastid = entityid
	}
	return entitycount
}
This is the only way to correct the problem.

I give you the addons folder.
Attached Files
File Type: rar addons.rar (3.30 MB, 117 views)
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x

Last edited by hebusletroll; 09-20-2008 at 15:10.
hebusletroll is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 09-20-2008 , 15:08   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #33

Post it here your folder here so I can test it too.
danielkza is offline
hebusletroll
Senior Member
Join Date: Apr 2006
Old 09-20-2008 , 15:11   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #34

Hi, thank you, attached file is in my previous post.

Edit my config :

Steam => CS1.6
Amx Mod X 1.8.1 => Fullt reinstalled
Tryed On Listen and Dedicated Server

Plugins : On Listen Server : PowerWeapons 0.99a (Yeeeeeeeees released when this bug was corrected !), On dedicated server : None

Cpu Core 2 Duo
OS : Windows XP 32 Bits
Ram : 3Go
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x

Last edited by hebusletroll; 09-20-2008 at 15:16.
hebusletroll is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-20-2008 , 15:27   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #35

Just fastly tested.

With your config without any changes, I get a crash with de_airstrip ; when I start at Terro spawn and do the command. I can reproduce each time.

Now, I put MY plugin. Same spawn. And no crash anymore, works flawless...


I've tested many times to be sure. Each time I put back your "entityinsphere.amxx" plugin, it crashes.

Each time I'm using my plugin modified from the original code in first post, it works fine.
__________________

Last edited by Arkshine; 09-20-2008 at 15:36.
Arkshine is offline
hebusletroll
Senior Member
Join Date: Apr 2006
Old 09-20-2008 , 15:34   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #36

Arkshine, Can you send me your addons folder ? I will try with your AmxModX binaries to compile the plugin (This is excatly your posted code).

Binaries that i use : amxmodx-installer-1.8.1.exe, size file 6*681*667 bytes.
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x
hebusletroll is offline
hebusletroll
Senior Member
Join Date: Apr 2006
Old 09-20-2008 , 15:36   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #37

Ca you give me your compiled plugin ?
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x
hebusletroll is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-20-2008 , 15:39   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #38

Quote:
This is excatly your posted code
The compiled size is not the same. The same ? Not sure.

I attach here my compiled version. I will remove it later after test.
__________________

Last edited by Arkshine; 09-21-2008 at 05:51.
Arkshine is offline
hebusletroll
Senior Member
Join Date: Apr 2006
Old 09-20-2008 , 15:46   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #39

I've tried your compiled plugin : Crash...

Which AmxModx version, which compiler date/version or size ?
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x
hebusletroll is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-20-2008 , 15:51   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #40

The latest version from the package. ( base + cstrike ; not the full installer ).

Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Header size:            420 bytes
Code size:             1720 bytes
Data size:              592 bytes
Stack/heap size:      16384 bytes; estimated max. usage=780 cells (3120 bytes)
Total requirements:   19116 bytes
Done.
Something weird. I'm using YOUR config and it doesn't crash with MY plugin. How can you get a crash with YOUR config and MY plugin. Doesn't make sense except if you are not using my plugin. Oo
__________________

Last edited by Arkshine; 09-20-2008 at 15:53.
Arkshine is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 05:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode