Thread-related crash in Windows
I have an app that repeatedly parses my pyquery object down to text; it works just fine in OS X and Linux, but it crashes after a while of heavy use in Windows. As I'm pretty sure it's thread-related, it's not easy to reproduce, but every trace of the app just before it dies looks like this:
Crash #1: line, C:\Documents and Settings\Home\workspace\GNGSTA\GNGSTA\gui\mutableSvg.py:678 call, C:\Python27\lib\site-packages\pyquery-1.2.1-py2.7.egg\pyquery\pyquery.py:263 line, C:\Python27\lib\site-packages\pyquery-1.2.1-py2.7.egg\pyquery\pyquery.py:272 line, C:\Python27\lib\site-packages\pyquery-1.2.1-py2.7.egg\pyquery\pyquery.py:275 call, C:\Python27\lib\encodings\cp1252.py:14 line, C:\Python27\lib\encodings\cp1252.py:15 return, C:\Python27\lib\encodings\cp1252.py:15 line, C:\Python27\lib\site-packages\pyquery-1.2.1-py2.7.egg\pyquery\pyquery.py:275 return, C:\Python27\lib\site-packages\pyquery-1.2.1-py2.7.egg\pyquery\pyquery.py:275 Fatal Python error: This thread state must be current when releasing This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
I've tried a couple versions of pyquery (including source) and I still get the same error.