Re: paster exception (generator ignored GeneratorExit)

2008-10-20 Thread Michael van Tellingen

On Sat, Oct 18, 2008 at 10:33, Philip Jenvey [EMAIL PROTECTED] wrote:


 On Oct 17, 2008, at 8:14 AM, Michael van Tellingen wrote:


 Heya,

 I'm currently pretty much reliably triggering the following exception
 using IE6 (and some iframe/form post stuff):

 
 Exception happened during processing of request from
 ('192.168.131.1', 58222)
 Traceback (most recent call last):
  File /Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/
 httpserver.py,
 line 1056, in process_request_in_thread
self.finish_request(request, client_address)
  File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/
 python2.5/SocketServer.py,
 line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
  File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/
 python2.5/SocketServer.py,
 line 522, in __init__
self.handle()
  File /Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/
 httpserver.py,
 line 432, in handle
BaseHTTPRequestHandler.handle(self)
  File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/
 python2.5/BaseHTTPServer.py,
 line 316, in handle
self.handle_one_request()
  File /Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/
 httpserver.py,
 line 427, in handle_one_request
self.wsgi_execute()
  File /Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/
 httpserver.py,
 line 295, in wsgi_execute
result.close()
 RuntimeError: generator ignored GeneratorExit
 


 Putting the result.close() call in a try/except clause will allow
 paster to send the data to the client, thus this is currently my
 workaround.

 How do we produce this? I assume you're using a generator in a Pylons
 controller, is it that easy or is there anything else involved?

Hi, sorry for not responding faster :-)

I'm having difficulties reproducing it in a fresh project. Basically
i'm doing nothing weird (anymore) and it looks like a timing issue.
The actions are:

- iframe post form to pylons controller
- controller returns url which javascript sets as the src of a newly
created image element.
- exception happens.

doing a javascript timeout (sleep) before creating the image element
seems to 'solve' the problem. It only happens on IE6 (thus not ie7 :-)

I'll keep on trying to create a valid testcase for it later this week
if time permits  (i'm currently on a deadline for a project)

regards,
Michael

 --
 Philip Jenvey



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: paster exception (generator ignored GeneratorExit)

2008-10-18 Thread Philip Jenvey


On Oct 17, 2008, at 8:14 AM, Michael van Tellingen wrote:


 Heya,

 I'm currently pretty much reliably triggering the following exception
 using IE6 (and some iframe/form post stuff):

 
 Exception happened during processing of request from  
 ('192.168.131.1', 58222)
 Traceback (most recent call last):
  File /Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/ 
 httpserver.py,
 line 1056, in process_request_in_thread
self.finish_request(request, client_address)
  File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
 python2.5/SocketServer.py,
 line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
  File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
 python2.5/SocketServer.py,
 line 522, in __init__
self.handle()
  File /Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/ 
 httpserver.py,
 line 432, in handle
BaseHTTPRequestHandler.handle(self)
  File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
 python2.5/BaseHTTPServer.py,
 line 316, in handle
self.handle_one_request()
  File /Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/ 
 httpserver.py,
 line 427, in handle_one_request
self.wsgi_execute()
  File /Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/ 
 httpserver.py,
 line 295, in wsgi_execute
result.close()
 RuntimeError: generator ignored GeneratorExit
 


 Putting the result.close() call in a try/except clause will allow
 paster to send the data to the client, thus this is currently my
 workaround.

How do we produce this? I assume you're using a generator in a Pylons  
controller, is it that easy or is there anything else involved?

--
Philip Jenvey



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



paster exception (generator ignored GeneratorExit)

2008-10-17 Thread Michael van Tellingen

Heya,

I'm currently pretty much reliably triggering the following exception
using IE6 (and some iframe/form post stuff):


Exception happened during processing of request from ('192.168.131.1', 58222)
Traceback (most recent call last):
  File 
/Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/httpserver.py,
line 1056, in process_request_in_thread
self.finish_request(request, client_address)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/SocketServer.py,
line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/SocketServer.py,
line 522, in __init__
self.handle()
  File 
/Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/httpserver.py,
line 432, in handle
BaseHTTPRequestHandler.handle(self)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/BaseHTTPServer.py,
line 316, in handle
self.handle_one_request()
  File 
/Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/httpserver.py,
line 427, in handle_one_request
self.wsgi_execute()
  File 
/Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/httpserver.py,
line 295, in wsgi_execute
result.close()
RuntimeError: generator ignored GeneratorExit



Putting the result.close() call in a try/except clause will allow
paster to send the data to the client, thus this is currently my
workaround.

Regards,
Michael van Tellingen

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---