Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Laggy shutdown on Windows

 
Post new topic   Reply to topic Printable version
 View previous topic  ASSS Windows Settings (?getsettings/?q... Post :: Post API docs  View next topic  
Author Message
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sat Sep 24, 2005 9:57 pm    Post subject: Laggy shutdown on Windows Reply to topic Reply with quote

Since this is a compile-out-of-the-box, I assume other people have this problem. ASSS actually terminates 40-50s after I hit ctrl+C.

This most in-depth info I've found using gdb is this (I'm no expert), captured somewhere around 10s after ctrl+C:
Code: Show/Hide
* 3 thread 1100.0x3d0  0x77fa018d in _libwsock32_a_iname ()
  2 thread 1100.0x70  0x61186380 in ptw32_cancel_self ()
  1 thread 1100.0x78  0x77f82829 in _libwsock32_a_iname ()

I don't know if this means anything to anybody, if you want me to do sometime else, tell me.

I wish I could get Dev-C++ to use the right working directory.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Sat Sep 24, 2005 10:31 pm    Post subject: Reply to topic Reply with quote

kill -9
_________________
4,691 irradiated haggis!
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sun Sep 25, 2005 2:47 am    Post subject: Reply to topic Reply with quote

remove the deadlock module and try again
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sun Sep 25, 2005 10:40 am    Post subject: Reply to topic Reply with quote

No, it's not only deadlock because it waits much longer than 10s. This is new in 1.4.0.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sun Sep 25, 2005 11:38 am    Post subject: Reply to topic Reply with quote

Ahhh, I've got it. I was shutting down before a minute was up, so deadlock was finishing that minute before me. Net also waits 10s on select, but that's not too big of a deal.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Sun Sep 25, 2005 5:10 pm    Post subject: Reply to topic Reply with quote

Cyan~Fire wrote:
Net also waits 10s on select, but that's not too big of a deal.


Don't ever use select() with long timeouts unless it also catches other events like "kill process". An app waiting 60 seconds to close after the user asks it to shudown is unacceptible.
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sun Sep 25, 2005 8:42 pm    Post subject: Reply to topic Reply with quote

Well the deadlock module is the one waiting 60s, and that's only once. If I'm understanding the code properly (it's using the pthread library about which I know nothing), it should cancel immediately on unloading the module, but it seems that's not happening. I can live with a 10s delay from select(), though.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sun Sep 25, 2005 8:49 pm    Post subject: Reply to topic Reply with quote

I've never had any issue with ASSS not shutting down immediatly on windows. The problem is either something introduced in a version more recent that what I last used, or a pecularity in your compiling enviroment.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Mon Sep 26, 2005 4:34 pm    Post subject: Reply to topic Reply with quote

It happens on the pre-compiled build too, so it's either the version or the system. Did you use the deadlock module?
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon Sep 26, 2005 5:13 pm    Post subject: Reply to topic Reply with quote

I don't think deadlock compiled for me, so probably not.

But I never had the problem with net, either.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Tue Sep 27, 2005 7:07 pm    Post subject: Reply to topic Reply with quote

Possibly you were using ?shutdown instead of Ctrl+C, and therefore the command receipt ended the recv thread immediately?

Edit: Cancel that. Just tested, and still the delay. Maybe I'll post it as a bug.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Wed Sep 28, 2005 3:08 am    Post subject: Reply to topic Reply with quote

I reduced the select timeout in net to 1 second.

About deadlock delaying the shutdown, that really shouldn't be happening because of the "pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL)". Reports on this thread seemed to indicate that it worked...
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 28 page(s) served in previous 5 minutes.

phpBB Created this page in 0.555308 seconds : 37 queries executed (92.4%): GZIP compression disabled