<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 5 Jun, 2011, at 18:24, Jeffrey O'Neill wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I've used py2app for many years and have really appreciated how it makes it so easy to distribute my app.&nbsp; I'm now running into problems and would appreciate suggestions for how to debug.&nbsp; My setup:<br>-- Snow Leopard<br>
-- 32-bit Python 2.7 from <a href="http://python.org/">python.org</a><br>-- py2app 6.3<br>-- only external package is wxPython 2.8.12.0 (32-bit, Carbon, unicode)<br><br>The changes from my last successful use of py2app six months ago are (1) moving from python 2.6 to python 2.7; (2) upgrading to latest py2app (don't know what I had before but I think it was at least a couple years old); and (3) changes to my python code that should not be significant.</blockquote><blockquote type="cite">
<br>When I do <br>&nbsp;&nbsp;&nbsp; python <a href="http://setup.mac.py/">setup.mac.py</a> py2app<br>everything seems to operate fine.&nbsp; Stuff gets copied to build dir, creates app bundle, stripping, etc...&nbsp; (Tried this both with and without -A).<br>
<br>When I run out of the dist dir:<br>&nbsp; &nbsp; $ ./dist/OpenSTV.app/Contents/MacOS/OpenSTV <br>I get<br>&nbsp; &nbsp; Bus error <br>with a dump.</blockquote><blockquote type="cite"><br>I don't know where to begin debugging this and would greatly appreciate pointers.&nbsp; My <a href="http://setup.mac.py/">setup.mac.py</a> is copied below and also the dump that OS X provides.&nbsp; Note that my setup is a little complicated because I use __import__ and have to explicitly list the stuff that is being imported that way.<br></blockquote><div><br></div></div>The setup file looks fine. &nbsp;What you could try is to build using '--no-strip' and then use 'gdb&nbsp;./dist/OpenSTV.app/Contents/MacOS/OpenSTV'. &nbsp;With some luck this gives a hint on what causes the crash.<div><br></div><div>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.</div><div><br></div><div>Ronald</div></body></html>