Modify

Opened 14 years ago

Last modified 14 years ago

#7618 new defect

StopIteration: error when viewing rev tree

Reported by: paresh.solanki@… Owned by: Emmanuel Blot
Priority: normal Component: RevtreePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

How to Reproduce

While doing a GET operation on /revtree, Trac issued an internal error.

I have recently upgraded from Trac 0.11.2.1 (postgresSQL backend) and decided to try this plugin from the 0.12 branch.

The install went well, but when I clicked on the menu bar for RevTree, I got this error after a long delay (over 2 minutes)

User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)

System Information

Trac 0.12
Trac 0.12
CustomFieldAdmin 0.2.3
Genshi 0.6
mod_wsgi 2.8 (WSGIProcessGroup WSGIApplicationGroup %(GLOBAL))
psycopg2 2.2.2
Pygments 1.3.1
Python 2.6.5 (r265:79063, Apr 16 2010, 14:15:55)
[GCC 4.4.3]
Python 2.6.5 (r265:79063, Apr 16 2010, 14:15:55)
[GCC 4.4.3]
RPC 1.1.0-r7971
setuptools 0.6c11
setuptools 0.6c11
Subversion 1.6.6 (r40053)
jQuery 1.4.2

Enabled Plugins

AdminEnumListPlugin 1.0
AdvancedTicketWorkflowPlugin 0.10dev-r7701
AnnouncerPlugin 1.0-a1
AutocompleteUsers 0.4.1
cc-selector 0.0.2
ChangeLogMacro 0.2-r7927
CodeExample 0.4.2
DataSaverPlugin 1.0
ExtendedVersionTracPlugin 0.0
FootNoteMacro 1.02
graphviz 0.7.6dev
IncludeSource 0.1
IniAdmin 0.2
Lineno 1.0
parametrizedtemplates N/A
ProjectPlan 0.83
TicketImport 0.8
TracAcronyms 0.1
TracAdvParseArgsPlugin 0.4
Tracbacks 0.1
TracCollapsiblePlugin 0.1
TracCondFields 2.0
TracCsvMacro 1.0
TracCustomFieldAdmin 0.2.3
TracCustomRoadmap 0.4
TracDeveloper 0.2
TracDiscussion 0.7-r8310
TracDownloads 0.3
TracDragDrop 0.12.0.3-r8116
TracDupPlugin 0.1.1
TracExtractUrl 0.2.7030
TracListOfWikiPagesMacro 0.4
TracMasterTickets 3.0.1
TracMetrixPlugin 0.1.8
TracMyPagePlugin 0.11.1.1
TracNewsFlash 1.0.1
TracNumberedHeadlinesPlugin 0.4
TracRevtreePlugin 0.6.4dev-r8057
TracSectionEditPlugin 0.1
TracTerminologyPlugin 0.1
TracTocMacro 11.0.0.3
TracUserPagePlugin 0.11.1.1
TracWikiGoodies 0.11.0.3dev
TracWysiwyg 0.12.0.2-r8148
TracXMLRPC 1.1.0-r7971
WantedPages 0.4dev
WikifyAnythingPlugin 0.2
WikiTableMacro 0.1
WorkflowEditorPlugin 1.0.2-r6348

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/revtree/web_ui.py", line 246, in process_request
    return self._process_revtree(req)
  File "build/bdist.linux-x86_64/egg/revtree/web_ui.py", line 356, in _process_revtree
    repos.build(self.bcre, revrange=(oldest, youngest))
  File "build/bdist.linux-x86_64/egg/revtree/model.py", line 446, in build
    info = Changeset.get_chgset_info(vc)
  File "build/bdist.linux-x86_64/egg/revtree/model.py", line 51, in get_chgset_info
    item = chgit.next()
StopIteration

Attachments (0)

Change History (2)

comment:1 Changed 14 years ago by paresh.solanki@…

Ok, I can get this to work by setting the oldest revision to 7000 (we're on 8000+ revisions at the moment)

But on first clicking the rev tree option, I get the message:

Selected filters cannot render a revision tree

If I then press update (do not change any filter options), I get the rev tree I was after.

comment:2 Changed 14 years ago by paresh.solanki@…

When this fails (eg when clicking the rev tree menu item), the url is http://trac.netprod.bellfruit.local/trac/revtree

If I then change the url to http://trac.netprod.bellfruit.local/trac/revtree?author= it works.

After clicking the update button, the url contains the expected filter parameters and therefore works also.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Emmanuel Blot.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.