RE: [viewvc-users] RE: ViewVC on RHEL 6.3 (UNCLASSIFIED)

Steven Glasgow <[email protected]> Fri, 29 Mar 2013 20:31:22 +0000
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <6132691E064DAC49B214555A634702745EA54B04__39853.4778309569$1364589119$gmane$org@UTINHPZV.easf.csd.disa.mil>
Classification: UNCLASSIFIED
Caveats: NONE

I got a reply from the Michael Lange (Tkinter).  First of all, my Tkinter was 
NOT compiled with thread support and will be looking into this.  But, he 
provided another possible cause that maybe you could provide some insight on. 
Please see the link he provided and his discussion of it.

Thanks again,
Steve

Comment from Mr. Lange...

I haven't looked deeply into this, but several sources suggest that this error 
might be caused by a Tk that is compiled without thread support.
You can check if the Tk your Tkinter uses supports threads with:

    $ python
    Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
    [GCC 4.4.5] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from Tkinter import *
    >>> root = Tk()
    >>> root.tk.call('info', 'exists', 'tcl_platform(threaded)')
    1
    >>>

Apparently, if this call returns 0 instead, threads are not suported.

I also found the following example:

http://stackoverflow.com/questions/14521319/tkinter-threads-exception-out-of-stack-space-infinite-loop

where the same error message was caused by a buggy implementation of threads 
in a Tkinter app (they tried to call mainloop() from a child thread there, 
which is certainly a bad idea ;) , so from the little I know I would not bet 
my savings that the app in question is innocent either; maybe you can look 
through their code, in case the application is not too complex, to make sure 
that none of the program's child threads does touch Tk (something that should 
be avoided at any rate because it will make the app behave more or less 
unpredictable)?



Classification: UNCLASSIFIED
Caveats: NONE

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3052188

To unsubscribe from this discussion, e-mail: [[email protected]].
smime.p7s (application/x-pkcs7-signature, 5.5 KB) - not displayed