#29297: Exception ignored in: <generator object
SQLCompiler.setup_query.<locals>.<genexpr> at 0x111aafe08>
-------------------------------------+-------------------------------------
     Reporter:  kingctan             |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  2.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Shaheed Haque):

 * status:  closed => new
 * resolution:  needsinfo =>


Comment:

 I'm seeing the same issue with Django 2.0.5. Unfortunately, I'm not able
 to identify a precise cause, but it *might* be load related. Here is a
 scenario in which I see it:

 1. I have a moderately complex Django app (using amongst other things:
 Jinja templates, Celery, Viewflow, django-polymorphic)
 2. I run up the test suite. This includes django-webtest and selenium-
 based tests which (amongst other things) exercises both the admin and non-
 admin pages.
 3. I run the app under the PyCharm debug environment.
 4. Some - variable - number of the tests run clean in that the console
 records HTTP traffic as expected.
 5. After a while, I start to see some combination of the above exception
 and this one:

 {{{
 Exception ignored in: <generator object
 _salt_cipher_secret.<locals>.<genexpr> at 0x7f803ac785c8>
 Traceback (most recent call last):
   File "/usr/local/lib/python3.6/dist-packages/django/middleware/csrf.py",
 line 51, in <genexpr>
     pairs = zip((chars.index(x) for x in secret), (chars.index(x) for x in
 salt))
 SystemError: error return without exception set
 }}}

 6. The frequency of the exceptions seems to increase, and the
 responsiveness of Django decreases. For example, a 400s test run takes
 800s.

 If I rerun the tests without restarting Django, the exceptions start
 immediately. If I restart Django, the tests start clean again and slowly
 degrade as before. It *is* possible that there is some memory pressure on
 my Ubuntu Bionic system, but top rarely shows less than abut 800MB free,
 with about 2GB in buffer cache so this might be a red herring.

 FWIW, the problem is also present in 2.0.2.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29297#comment:3>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.ec48ca5b1da8e46c7d66cd99a5b42579%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to