[Pythonmac-SIG] debugging bus error on launch [py2app]

Chris Weisiger cweisiger at msg.ucsf.edu
Mon Jun 6 19:08:58 CEST 2011


On Mon, Jun 6, 2011 at 9:56 AM, Jeffrey O'Neill <jeff.oneill at openstv.org>wrote:

>
> On Mon, Jun 6, 2011 at 10:04 AM, Ronald Oussoren <ronaldoussoren at mac.com>wrote:
>
>>
>> The setup file looks fine.  What you could try is to build using
>> '--no-strip' and then use 'gdb ./dist/OpenSTV.app/Contents/MacOS/OpenSTV'.
>>  With some luck this gives a hint on what causes the crash.
>>
>> Are you by any change importing GUI code in a secondary thread? I've seen
>> crashes in __CFInitialize before when Apple's frameworks get loaded on any
>> thread that isn't the main thread.
>>
>
> Hi Ronald,
>
> Thanks for the suggestions.  I'm not importing GUI code in a thread (and
> threads are not used in launching the app either) so that is not causing the
> problem.
>
> I tried gdb with no-strip and the output is below.  It doesn't help me any.
> :(  GDB says it is x86_64-apple-darwin while my app is 32 bit but I don't
> know if that matters.
>

That sounds like it would cause a problem. :) You said you upgraded your
Python install; are you sure you got the 32-bit version? If you do

import platform; print platform.architecture()

what do you get?

Does the program work properly when not built as an app?

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110606/d71596a8/attachment.html>


More information about the Pythonmac-SIG mailing list