Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Detecting Remaining Thread

Reply
Thread Tools

Detecting Remaining Thread

 
 
Damian Johnson
Guest
Posts: n/a
 
      01-19-2011
Hi, I've been trying to track down a familiar concurrency problem
without any success:
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:

I realize that this is due to a background thread still being alive
and kicking when the application terminates (ie, a missing join() on a
helper thread). However, threading.enumerate() is reporting that
nothing except for the main thread is running at that point:
1/19/2011 09:30:41 [INFO] Arm is shutting down. Remaining threads:
[<_MainThread(MainThread, started -1217079616)>]

What other methods are there for troubleshooting this sort of issue?
I've triple checked that my threads are daemons and joined when
quitting but I must be missing something...

As would be expected of a timing issue, this happens intermittently
(1/5 of the time) and goes away if I add a short sleep at the end. Any
help would be much appreciated. Thanks! -Damian
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox 1.5.0.1 - Closing tabs and remaining tab order Captain Infinity Firefox 0 02-21-2006 08:14 PM
Completing MCSE 2000 (2 exams remaining)? Mark E. Smith MCSE 62 01-13-2006 09:24 PM
WickedLasers Starphaser Giveaway! - 3 Days Remaining Silverstrand Front Page News 0 12-11-2005 08:50 PM
posting/sending information to another place and remaining in my p =?Utf-8?B?TFU=?= ASP .Net 1 03-24-2005 04:02 PM
Script to calculate remaining minutes hupjack Perl 4 05-05-2004 03:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57