On 4/21/06, at 8:08 AM, Ronald Oussoren said:
>
>On 20-apr-2006, at 23:55, Koen Bok wrote:
>
>> Hi, I am trying to make a Universal Build of my application. It =20
>> builds fine for PPC. I try to build it with the Universal Python =20
>> 2.4 Build and PyObjC/Py2App form SVN. It gives no errors while =20
>> building, and starts fine! But when I open the next window it =20
>> crashes! Crash report is attached. Any clues?
>> <report.txt>
>
>My libffi port to intel doesn't seem to be entirely correct...
I have a similar bug that crashes my app on Intel, but works when running t=
he Universal binary on PPC machines. I whittled this down to a sample tonig=
ht, and here it is:
#<code language=3D"Python">
class NSStatusPyobjCResearchAppDelegate(NibClassBuilder.AutoBaseClass):
statusBar =3D None
statusMenu =3D None
statusSub =3D None
=20
def applicationDidFinishLaunching_(self, aNotification):
self.statusBar =3D NSStatusBar.systemStatusBar()
=20
self.statusMenu =3D self.statusBar.statusItemWithLength_(NSVariable=
StatusItemLength)
self.statusMenu.setHighlightMode_(True)
self.statusMenu.setTitle_(u"HMM")
self.statusSub =3D NSMenu.alloc().initWithTitle_(u"SM")
=20
self.statusMenu.setMenu_(self.statusSub)
=20
#</code>
(I can send you the complete sample project I made, if you wish.)
Which produces the following crashlog (snipped for brevity):
Thread 0 Crashed:
0 libRIP.A.dylib =090x943e1fb3 ripc_GetPattern + 513
1 libRIP.A.dylib =090x943deb44 ripc_GetColor + 199
2 libRIP.A.dylib =090x943ddf1f ripc_Render + 207
3 libRIP.A.dylib =090x943dd5b8 ripc_DrawRects + 302
4 com.apple.CoreGraphics =090x9033b926 __CGContextDrawRects + 596
5 com.apple.CoreGraphics =090x9033b6a3 CGContextFillRects + 117
6 com.apple.CoreGraphics =090x9033b62a CGContextFillRect + 32
7 com.apple.AppKit =090x93420d75 NSRectFillUsingOperation +=
305
8 com.apple.AppKit =090x9341fa62 _NSTileImageWithOperation =
+ 1263
9 com.apple.AppKit =090x934eabf6 _NSTileImage + 99
10 com.apple.AppKit =090x93525e8b -[NSSystemStatusBar drawBa=
ckgroundInRect:inView:highlight:] + 166
11 com.apple.AppKit =090x937dc6c7 -[NSStatusBarButtonCell dr=
awWithFrame:inView:] + 96
=2E....
After making sure it Wasn't Just Me (I created an Objective-C translation a=
nd that worked like a charm), I submit it to the list in the hope that this=
will help Wiser Folk track down issues.
Hope this helps,
_Ryan Wilcox
--=20
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
|