0000896: Crash running Narrative Web report - system memory exhausted.
svn: r8362
This commit is contained in:
parent
d6c8710d2c
commit
a6a0a69456
@ -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-06 Don Allingham <don@gramps-project.org>
|
2007-04-06 Don Allingham <don@gramps-project.org>
|
||||||
* src/GrampsDb/_GrampsDbBase.py (GrampsDbBase.close_undodb): don't complain
|
* src/GrampsDb/_GrampsDbBase.py (GrampsDbBase.close_undodb): don't complain
|
||||||
if the undo file isn't here.
|
if the undo file isn't here.
|
||||||
|
@ -2347,7 +2347,7 @@ class WebReport(Report):
|
|||||||
self.progress.step()
|
self.progress.step()
|
||||||
|
|
||||||
def gallery_pages(self, photo_list, source_list, archive):
|
def gallery_pages(self, photo_list, source_list, archive):
|
||||||
|
import gc
|
||||||
self.progress.set_pass(_("Creating media pages"),len(photo_list))
|
self.progress.set_pass(_("Creating media pages"),len(photo_list))
|
||||||
|
|
||||||
GalleryPage(self.database, self.title, source_list,
|
GalleryPage(self.database, self.title, source_list,
|
||||||
@ -2360,6 +2360,7 @@ class WebReport(Report):
|
|||||||
photo_keys.sort(self.by_media_title)
|
photo_keys.sort(self.by_media_title)
|
||||||
|
|
||||||
for photo_handle in photo_keys:
|
for photo_handle in photo_keys:
|
||||||
|
gc.collect() # Reduce memory usage when there are many images.
|
||||||
if index == total:
|
if index == total:
|
||||||
next = None
|
next = None
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user