Raised This Month: $32 Target: $400
 8% 

[Solved] AmxModX 1.8.3-dev+4608: Server, Game hang on "quit" command.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-12-2015 , 03:07   [Solved] AmxModX 1.8.3-dev+4608: Server, Game hang on "quit" command.
Reply With Quote #1

Hi, i think this is critical, everytime i use "quit" command to close hlds or listen server it hang with error message. Tested on Windows OS only, not sure in Linux.

[IMG]http://s12.************/q0onz6gpp/amxx_error.png[/IMG]

as you can see the cause is by amxmodx_mm.dll itself.

More details Windows OS


End of bug report
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 02-12-2015 at 09:21. Reason: Solved by Arkshine in git4614.
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-12-2015 , 04:25   Re: [Error] AmxModX 1.8.3-dev+4608: Server, Game hang on "quit" command.
Reply With Quote #2

Well, tried under linux, and I can't reproduce.

Under windows, I've got a weird behavior, like several seconds after I type quit, I have a crash message but I can't do something since hlds is already closed. It doesn't happen always. Really weird.

Can try this one to see. Forgot to free memory of stuffs related to cvar hooking on amxx shutdown, but it's probably not the issue. Snce it happens all the time for you, it should be fast to see.

EDIT: it will probably won't help since I actually free stuffs, in another place. But still, try it just in case.
Attached Files
File Type: dll amxmodx_mm.dll (1.51 MB, 118 views)
__________________

Last edited by Arkshine; 02-12-2015 at 04:50.
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-12-2015 , 07:26   Re: [Error] AmxModX 1.8.3-dev+4608: Server, Game hang on "quit" command.
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
Well, tried under linux, and I can't reproduce.

Under windows, I've got a weird behavior, like several seconds after I type quit, I have a crash message but I can't do something since hlds is already closed. It doesn't happen always. Really weird.

Can try this one to see. Forgot to free memory of stuffs related to cvar hooking on amxx shutdown, but it's probably not the issue. Snce it happens all the time for you, it should be fast to see.

EDIT: it will probably won't help since I actually free stuffs, in another place. But still, try it just in case.
Still got the same error, but when i use an older dev version it not hang at all.

Old dev build:
Code:
] amxx version
AMX Mod X 1.8.3-dev+4518 (http://www.amxmodx.org)
Authors:
    David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
    Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
    Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
    Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jan 11 2015 15:53:45
Built from: https://github.com/alliedmodders/amxmodx/commit/328c3d7Build ID: 4518:328c3d7Core mode: JIT+ASM32
Please investigate more
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-12-2015 , 08:07   Re: [Error] AmxModX 1.8.3-dev+4608: Server, Game hang on "quit" command.
Reply With Quote #4

It's probably related to cvar hooking, like I free wrongly memory on amxx shutdown.

It seems that such feature is not included in git4579. You can test this one, it should be okay.
Then if so, try the next one git4584, it contains cvar hooking and you should have the issue.
Can you confirm? Meanwhile, will try to debug my shit code.

EDIT: test first that below:
Attached Files
File Type: dll amxmodx_mm.dll (1.52 MB, 267 views)
__________________

Last edited by Arkshine; 02-12-2015 at 08:15.
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-12-2015 , 08:28   Re: [Error] AmxModX 1.8.3-dev+4608: Server, Game hang on "quit" command.
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
It's probably related to cvar hooking, like I free wrongly memory on amxx shutdown.

It seems that such feature is not included in git4579. You can test this one, it should be okay.
Then if so, try the next one git4584, it contains cvar hooking and you should have the issue.
Can you confirm? Meanwhile, will try to debug my shit code.

EDIT: test first that below:
Ok both git4579 and 4584 hang on quit command.

The new .dll you attached has no issue anymore, it seems game load faster with that new .dll. Why size is 2x bigger than normal amxmodx_mm.dll ?

I can confirm the new amxmodx_mm.dll is no longer hang
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-12-2015 , 08:31   Re: [Error] AmxModX 1.8.3-dev+4608: Server, Game hang on "quit" command.
Reply With Quote #6

You likely did not test properly for git4579 and 4584 and first doesn't contain cvar hooking stuffs lol.

But anyway, if you say the attached dll is working, it's what I thought, freeing memory the wrong way for cvar hooking stuffs. Will fix that soon.

As note, size is bigger because compiled in debug mode.
__________________
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-12-2015 , 08:49   Re: [Error] AmxModX 1.8.3-dev+4608: Server, Game hang on "quit" command.
Reply With Quote #7

Fix pushed in git4614.

Thanks for reporting my retardness.
__________________
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-12-2015 , 09:06   Re: [Error] AmxModX 1.8.3-dev+4608: Server, Game hang on "quit" command.
Reply With Quote #8

Quote:
Originally Posted by Arkshine View Post
You likely did not test properly for git4579 and 4584 and first doesn't contain cvar hooking stuffs lol.

But anyway, if you say the attached dll is working, it's what I thought, freeing memory the wrong way for cvar hooking stuffs. Will fix that soon.

As note, size is bigger because compiled in debug mode.
I speak the truth buddy. Run listenserver with 4579 and 4584 using stock plugins. Both result in crash boom bang. But the new .dll you attached above is no crash at all.

Quote:
Originally Posted by Arkshine View Post
Fix pushed in git4614.

Thanks for reporting my retardness.
No problem, it would be good for others too.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 02-12-2015 at 09:07.
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-12-2015 , 09:11   Re: [Error] AmxModX 1.8.3-dev+4608: Server, Game hang on "quit" command.
Reply With Quote #9

Lies!

That's not possible really. Well, maybe you downloaded wrong package or said wrong git number. You can check easily if you see "cvars.inc" in the package, it means package contains the cvar hooking stuff.
Maybe we are all drunk.
__________________

Last edited by Arkshine; 02-12-2015 at 09:13.
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-12-2015 , 09:20   Re: [Error] AmxModX 1.8.3-dev+4608: Server, Game hang on "quit" command.
Reply With Quote #10

Quote:
Originally Posted by Arkshine View Post
Lies!

That's not possible really. Well, maybe you downloaded wrong package or said wrong git number. You can check easily if you see "cvars.inc" in the package, it means package contains the cvar hooking stuff.
Maybe we are all drunk.
Haha, ok problem solved, change thread tag to [Solved]. Thanks for the fix by the way.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo 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 23:55.


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