From 1f6f8565ba0baa67defd9c91c1216fbad6f77d20 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sun, 8 Apr 2007 20:19:14 +0000 Subject: [PATCH] 0000896: Crash running Narrative Web report - system memory exhausted. svn: r8363 --- ChangeLog | 4 ++++ src/plugins/NarrativeWeb.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0caeae2b7..a1bff155c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-04-08 Brian Matherly + * src/plugins/NarrativeWeb.py: 0000896: Crash running Narrative Web report - + system memory exhausted. + 2007-04-07 Don Allingham * src/plugins/Checkpoint.py: update from 2.2 * src/GrampsDb/_GrampsDbWriteXML.py: clean up diff --git a/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py index c8ebdc804..94b1cf84b 100644 --- a/src/plugins/NarrativeWeb.py +++ b/src/plugins/NarrativeWeb.py @@ -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: