Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Posting NSApplicationDidFinishLaunchingNotification fails, Application crashes on Intel Macs




Am 31.07.2007 um 09:12 schrieb Chris Suter:


On 31/07/2007, at 4:34 PM, Stefan Heukamp wrote:

Hi,

I have a very strange problem. I have built a universal binary for my application and on my machine (ppc) this just runs fine. On another machine (Mac Book Pro) the application crashes on startup.

Here is the part of the crash log that seems to be interesting:

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0xba0cc4a3

Thread 0 Crashed:
0 libobjc.A.dylib 0x90a594c0 objc_msgSend + 16
1 com.apple.Foundation 0x927ec17b _nsnote_callback + 230
2 com.apple.CoreFoundation 0x908563e6 __CFXNotificationPost + 345
3 com.apple.CoreFoundation 0x9084dbd1 _CFXNotificationPostNotification + 600
4 com.apple.Foundation 0x927e4724 -[NSNotificationCenter postNotificationName:object:userInfo:] + 121
5 com.apple.Foundation 0x927eb6c9 -[NSNotificationCenter postNotificationName:object:] + 55
6 com.apple.AppKit 0x93274e94 -[NSApplication _postDidFinishNotification] + 124
7 com.apple.AppKit 0x93274d7e -[NSApplication _sendFinishLaunchingNotification] + 67
[...]
18 com.apple.AppKit 0x9326bddb -[NSApplication run] + 512
[...]


I have a quit long initialization procedure that is the applicationDidFinishLaunching: delegate of NSApplication. This seems to run without an error up to the end (on intel and ppc). The NSApplicationDidFinishLaunchingNotification is posted (at least at my ppc) right after the delegate returns.

In the above stack trace it seems to me that this posting fails on the intel machine. But what is it that can fail with this posting? I did not register any Observer for this Notification. And why does this fail on the intel machine and not on the ppc machine.

This is the first time I analyse such a crash log. So I'm not sure what
KERN_INVALID_ADDRESS (0x0001) at 0xba0cc4a3 means. Does that mean that the code at address 0xba0cc4a3 should be executed but this is not a valid address?


Thanks for any help,

Stefan

Try running with NSZombiesEnabled and CFZombieLevel.

- Chris


That does not change anything. No crashes, exceptions, additional logs at my ppc-Version. Is there a possibility to enable CFZombieLevel from within the code?


Stefan
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Posting NSApplicationDidFinishLaunchingNotification fails, Application crashes on Intel Macs (From: Stefan Heukamp <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.