#35120: Stack overflow in render method when many instances of included template
-------------------------------------+-------------------------------------
               Reporter:  Morgan10E  |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Template   |        Version:  4.1
  system                             |       Keywords:  render template
               Severity:  Normal     |  include
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 To reproduce behavior:
 1. Create a base template
 2. Create a template to include. It does not matter what the contents are
 3. Force included template to be included thousands of times
 4. See "error_no_response" on client

 On the server, we were able to observe through print statements that
 everything up to the render call was executing as expected. However, there
 was no error to indicate what might be going wrong. We narrowed down the
 likely culprit to stack overflow via the following observations:
 1. If you put the contents of the included template directly in the base
 template, the issue does not occur and the page renders as expected
 2. If you reduce the number of instances of the include, the issue does
 not occur and the page renders as expected

 The desired behavior would be to at least surface some type of actionable
 error message.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/35120>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018d1545ec3f-c77151b2-27f3-48d5-92de-a8c9fcb1bbf5-000000%40eu-central-1.amazonses.com.

Reply via email to