On 25 Nov 2009, at 17:43, Ronald Oussoren wrote:

> 
> On Monday, November 23, 2009, at 04:08PM, "Erik van Blokland" 
> <e...@letterror.com> wrote:
>> Hi all,
>> 
>> I'm hesitant to write this mail, but after a day of fruitless debugging, I 
>> need a reality check. OSX 10.6.2, stock Python 2.6.1 (r261:67515, Jul  7 
>> 2009, 23:51:51).
>> 
>> At the center is a python object intended to generate a bitmap image. It 
>> uses CGBitmapContextCreate to make a new context, does some drawing and 
>> returns the image. All drawing, rendering works, all tests pass when running 
>> the script as a one-off test.
>> But when I use the same object as part of a twisted.web internet.TCPServer, 
>> I get a hard crash when calling CGBitmapContextCreate, (report attached 
>> below). The twisted.web process itself runs well, I can access its pages and 
>> all (html) data is rendered properly. Only when I ask for the image the 
>> process pops the lid and is killed.

Is the command line and the server version run under the same user? IME quartz 
functions require a connection to the window server, which means a graphical 
login is required. Just a thought.
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to