This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author olivier-berten
Recipients olivier-berten
Date 2010-06-23.16:14:58
SpamBayes Score 0.20234993
Marked as misclassified No
Message-id <1277309700.12.0.0164704754681.issue9062@psf.upfronthosting.co.za>
In-reply-to
Content
I'm writing SwatchBooker <https://launchpad.net/swatchbooker>, an app that's (among other things) reading some data from the web. When urllib.urlopen is called first from within a secondary thread, the app crashes (or freezes). If it's been called first from the main thread, there's no problem.

You can reproduce that by downloading http://launchpad.net/swatchbooker/trunk/0.7/+download/SwatchBooker-0.7.noinstall.zip

1. Launch swatchbooker.pyw
2. Open from web
3. Select ICI Dulux, Pantone or RAL
4. Cancel
5. Close the program
6. Relaunch swatchbooker.pyw
7. Open from web
8. Choose any swatch from ICI Dulux, Pantone or RAL (Don't click ColorCharts.org or Digital Colour Atlas!)
9. OK
10. Crash

For ColorCharts.org and Digital Colour Atlas, the list itself is loaded through urllib.urlopen from the main thread so it makes the rest go smoothly...
History
Date User Action Args
2010-06-23 16:15:00olivier-bertensetrecipients: + olivier-berten
2010-06-23 16:15:00olivier-bertensetmessageid: <1277309700.12.0.0164704754681.issue9062@psf.upfronthosting.co.za>
2010-06-23 16:14:58olivier-bertenlinkissue9062 messages
2010-06-23 16:14:58olivier-bertencreate