0000896: Crash running Narrative Web report - system memory exhausted.

svn: r8363
This commit is contained in:
Brian Matherly 2007-04-08 20:19:14 +00:00
parent a712445a2b
commit 1f6f8565ba
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-04-08 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py: 0000896: Crash running Narrative Web report -
system memory exhausted.
2007-04-07 Don Allingham <don@gramps-project.org>
* src/plugins/Checkpoint.py: update from 2.2
* src/GrampsDb/_GrampsDbWriteXML.py: clean up

View File

@ -2355,7 +2355,7 @@ class WebReport(Report):
self.progress.step()
def gallery_pages(self, photo_list, source_list, archive):
import gc
self.progress.set_pass(_("Creating media pages"),len(photo_list))
GalleryPage(self.database, self.title, source_list,
@ -2368,6 +2368,7 @@ class WebReport(Report):
photo_keys.sort(self.by_media_title)
for photo_handle in photo_keys:
gc.collect() # Reduce memory usage when there are many images.
if index == total:
next = None
else: