Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #160 (closed defect: fixed)

Opened 14 years ago

Last modified 12 years ago

tg-admin toolbox on windows gets stuck in an infinite loop

Reported by: scott.benjamin@… Owned by: anonymous
Priority: normal Milestone: 0.9
Component: Toolbox Version:
Severity: major Keywords: toolbox windows hung loop


When running the rev 244 svn version on Windows XP and executing "tg-admin toolbox" the cherrypy first reports the site is unavailable then on the subsequent page load seems to just sit there with the browser spinning.

Here is the output of tg-admin toolbox:

Running server on port 7654. 2005/11/26 01:35:35 CONFIG INFO Server parameters: 2005/11/26 01:35:35 CONFIG INFO server.environment: development 2005/11/26 01:35:35 CONFIG INFO server.logToScreen: True 2005/11/26 01:35:35 CONFIG INFO server.logFile: 2005/11/26 01:35:35 CONFIG INFO server.protocolVersion: HTTP/1.0 2005/11/26 01:35:35 CONFIG INFO server.socketHost: 2005/11/26 01:35:35 CONFIG INFO server.socketPort: 7654 2005/11/26 01:35:35 CONFIG INFO server.socketFile: 2005/11/26 01:35:35 CONFIG INFO server.reverseDNS: False 2005/11/26 01:35:35 CONFIG INFO server.socketQueueSize: 5 2005/11/26 01:35:35 CONFIG INFO server.threadPool: 0 2005/11/26 01:35:37 HTTP INFO Serving HTTP on  http://localhost:7654/ 2005/11/26 01:35:51 HTTP INFO - GET / HTTP/1.1 2005-11-26 01:35:51,500 turbogears.view DEBUG Recompiling template for turbogears.toolbox.main

A couple of threads on what looks like the same issue:

 http://groups.google.com/group/turbogears/browse_thread/thread/55cb8dcd7ee8b120  http://groups.google.com/group/turbogears/browse_thread/thread/e6e5bf26f116cda4

Change History

comment:1 Changed 14 years ago by rudy.schockaert@…

It is at 8th line of kid.importer._create_module that the code hangs:

exec code in mod.dict

comment:2 Changed 14 years ago by michele

Tim Diggins has some useful comments regarding this issue:

(this is a posting reapplying information already contained in the
"mod_python +tg ->apache hangs on some requests" thread... sorry if the
duplication irks.)

If it is a problem with py:extends, you might try reversing out the
change to kid.template_util.py :: get_base_class, r.173, namely:
36        #path = kid.path.find(thing, from_file) comment this line out
37        path = abspath(join(dirname(from_file), normpath(thing)))
#uncomment this line

There is a nasty infinite loop possible when looking up the "extends"
template. r.173 introduced a TemplatePath (in __init__.py - singleton
accessed via kid.path) which was written solely with unix in mind, and
certainly locks up in some cases when you start not from the tg-project
directory, and the tg-project is on a different harddrive than c:, but
there may be other instances.

two kid tickets which MIGHT be relevant (though they aren't toolbox

(it's worth noting there are only two "while 1:" clauses in the kid
codebase... this one is the best candidate for the problem, although
there are other clauses which can generate infinite loops). 

The whole thread is here:  http://tinyurl.com/e3pwj

Maybe looking at this (ie. py:extends) can also help to solve the much needed ticket#55

comment:3 Changed 14 years ago by michele

comment:4 Changed 14 years ago by Sharky

With Kid SVN rev251 all works fine tested by Sean De La Torre and me...

I think that this ticket can be closed.

comment:5 Changed 14 years ago by kevin

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.