django-devserver icon indicating copy to clipboard operation
django-devserver copied to clipboard

MemoryUseModule interferes with page load

Open schinckel opened this issue 15 years ago • 11 comments

When this is turned on, some of my sites pages never finish loading: this includes some admin pages.

It seems like it may be related to loading up some javascript files, perhaps /admin/jsi18n/, as that is the last request that was sent before the freeze: the next one to load is /media/admin/media/js/core.js.

schinckel avatar Feb 11 '10 03:02 schinckel

What kind of page is failing? Can you disable the module and see what is loaded after that core.js in requests?

dcramer avatar Feb 11 '10 03:02 dcramer

An admin change page (not a list page).

When I disable the module, the following pages are loaded after where the freeze is:

127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /admin/jsi18n/ HTTP/1.1" 200 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/css/forms.css HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/js/getElementsBySelector.js HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/js/actions.js HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/js/calendar.js HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/js/admin/DateTimeShortcuts.js HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/js/SelectBox.js HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/css/widgets.css HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/js/SelectFilter2.js HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/nav-bg-reverse.gif HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/default-bg.gif HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/nav-bg.gif HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/icon_deletelink.gif HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/tool-right.gif HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/tool-left.gif HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/icon_addlink.gif HTTP/1.1" 304 -

schinckel avatar Feb 11 '10 03:02 schinckel

I haven't tried with a brand new project and a simple app with an admin yet.

schinckel avatar Feb 11 '10 03:02 schinckel

Okay, it appears with the simplest project I could possibly make.

schinckel avatar Feb 11 '10 03:02 schinckel

Is there any way I can attach a zip file of the project?

schinckel avatar Feb 11 '10 03:02 schinckel

That's odd you shouldn't even see the /admin/media calls. Do you happen to know why those are all 304s?

You can upload a small zip file via pastethat.com and link it here, but I know no direct way to attach files.

dcramer avatar Feb 11 '10 03:02 dcramer

The test project I created can be found at http://www.pastethat.com/test-project-i6

The username/password is user/user.

schinckel avatar Feb 11 '10 04:02 schinckel

As for the 304s: they appear with the new project as well. Appears to be the result of a conditional GET, but not sure why, since I don't have the conditional middleware on...

schinckel avatar Feb 11 '10 04:02 schinckel

I am seeing similar behaviour - a page with an AJAX call hangs until I kill the server, then the call finishes successfully and the result is displayed. If I disable the MemoryUseModule, the result loads immediately.

It seems to pause somewhere in jQuery, but I'm not sure how to trace it any better.

peplin avatar Feb 17 '10 00:02 peplin

Hmm. I seem to see issues when a redirect is supposed to happen. Safari just sits there, and no request appears to be made.

schinckel avatar Mar 01 '10 01:03 schinckel

I'm getting similar hanging issues with Ajax calls.

johncarstens avatar Nov 18 '11 04:11 johncarstens