155: UserVisibleException ([Errno 12] Cannot allocate memory) while rendering

psyk*****@gmai***** (Google Code) (Is this you? Claim this profile.)
July 11, 2007
Template error

In template /root/reviewboard/templates/reviews/review_detail.html, error
at line 76
Caught an exception while rendering: [Errno 12] Cannot allocate memory

This happened on a larger diff that had probably somewhere around 25 - 30
comments from 3 different users.  

Here is the stacktrace:

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in
render_node
  741. result = node.render(context)
File "/usr/lib/python2.5/site-packages/django/template/defaulttags.py" in
render
  125. nodelist.append(node.render(context))
File "/root/reviewboard/../reviewboard/diffviewer/templatetags/difftags.py"
in render
  29. files = get_diff_files(filediff.diffset)
File "/root/reviewboard/../reviewboard/diffviewer/views.py" in get_diff_files
  211. chunks = cache_memoize(key, lambda: get_chunks(filediff,
File "/root/reviewboard/djblets/util/misc.py" in cache_memoize
  43. data = lookup_callable()
File "/root/reviewboard/../reviewboard/diffviewer/views.py" in
  212. interfilediff))
File "/root/reviewboard/../reviewboard/diffviewer/views.py" in get_chunks
  93. old = get_original_file(file, revision)
File "/root/reviewboard/../reviewboard/diffviewer/views.py" in
get_original_file
  43. raise UserVisibleError(str(e))

  UserVisibleError at /r/709/
  [Errno 12] Cannot allocate memory

At this point neither the review request or the diff are viewable.
chipx86
#1 chipx86
  • +Fixed