Compile Issues...

Member
Posts: 29
Joined: 2006.07
Post: #1
Every project I make and compile on my computer with XCode runs great as a standalone executable, but when I send them to my girlfriend to check them out, the icon bounces for a few seconds and just disappears instead of launching. We have the exact same iBook G4 with the exact same OS - 10.4.8. Any ideas of what is going on?
Quote this message in a reply
Moderator
Posts: 1,140
Joined: 2005.07
Post: #2
You need to turn off zerolink. The easiest way to do this is to set it to build as release.
Quote this message in a reply
Moderator
Posts: 1,562
Joined: 2003.10
Post: #3
In general, when something like this happens, a message (sometimes cryptically) indicating the problem is printed to console.log, viewable by opening /Applications/Utilities/Console.app.
Quote this message in a reply
Member
Posts: 29
Joined: 2006.07
Post: #4
Yes, the release configuration is set to Build and ZeroLink is turned off. The executables run perfectly fine on my computer, and again, we have the exact same computer and OS. Here is a log output she e-mailed me:

Quote:**********

Host Name: katherine-madduxs-ibook-g4
Date/Time: 2006-10-23 20:46:13.361 -0400
OS Version: 10.4.8 (Build 8L127)
Report Version: 4

Command: MoleBlaster
Path: /Volumes/MoleBlaster/MoleBlaster.app/Contents/MacOS/MoleBlaster
Parent: WindowServer [95]

Version: ??? (1.0)

PID: 2805
Thread: 0

Exception: EXC_BREAKPOINT (0x0006)
Code[0]: 0x00000001
Code[1]: 0x92978120


Thread 0 Crashed:
0 com.apple.Foundation 0x92978120 _NSRaiseError + 264
1 com.apple.Foundation 0x92977e5c +[NSException raise:format:] + 40
2 com.apple.Foundation 0x9293e47c -[NSCFDictionary
setObject:forKey:] + 144
3 com.ASAT.MoleBlaster 0x00002d98 -[MyView initWithFrame:] +
672 (crt.c:355)
4 com.apple.AppKit 0x93702530 -[NSCustomView nibInstantiate] + 372
5 com.apple.AppKit 0x936ffbd4 -[NSIBObjectData
instantiateObject:] + 188
6 com.apple.AppKit 0x936ff7a0 -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:] + 144
7 com.apple.AppKit 0x936ebc9c loadNib + 240
8 com.apple.AppKit 0x936eb6f4 +[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:] + 716
9 com.apple.AppKit 0x93742bc4 +[NSBundle(NSNibLoading)
loadNibFile:externalNameTable:withZone:] + 156
10 com.apple.AppKit 0x937d2a70 +[NSBundle(NSNibLoading)
loadNibNamed:owner:] + 344
11 com.apple.AppKit 0x937d2810 NSApplicationMain + 344
12 com.ASAT.MoleBlaster 0x00002350 _start + 344 (crt.c:272)
13 com.ASAT.MoleBlaster 0x000021f4 start + 60

Thread 1:
0 libSystem.B.dylib 0x9000ab48 mach_msg_trap + 8
1 libSystem.B.dylib 0x9000aa9c mach_msg + 60
2 com.apple.CoreFoundation 0x907dcb78 __CFRunLoopRun + 832
3 com.apple.CoreFoundation 0x907dc47c CFRunLoopRunSpecific + 268
4 com.apple.audio.CoreAudio 0x9145363c HALRunLoop::OwnThread(void*) + 264
5 com.apple.audio.CoreAudio 0x914533dc CAPThread::Entry(CAPThread*) + 96
6 libSystem.B.dylib 0x9002b508 _pthread_body + 96

Thread 0 crashed with PPC Thread State 64:
srr0: 0x0000000092978120 srr1: 0x000000000202f030
vrsave: 0x0000000000000000
cr: 0x24000442 xer: 0x0000000000000007 lr:
0x00000000929780f8 ctr: 0x0000000092939f1c
r0: 0x0000000000000000 r1: 0x00000000bffff700 r2:
0x00000000a2937508 r3: 0x00000000bffff2b0
r4: 0x0000000000000000 r5: 0x0000000092939844 r6:
0x00000000bffff334 r7: 0x00000000000000ff
r8: 0x00000000bffff320 r9: 0x000000000031d1d0 r10:
0x0000000090a3d628 r11: 0x0000000024000442
r12: 0x0000000092939f1c r13: 0x0000000000000000 r14:
0x0000000000000000 r15: 0x0000000000000000
r16: 0x0000000000000002 r17: 0x00000000a371b428 r18:
0x00000000a371b428 r19: 0x00000000a371b428
r20: 0x00000000a371b428 r21: 0x0000000000000000 r22:
0x00000000a371f710 r23: 0x00000000a37278b4
r24: 0x0000000000005104 r25: 0x0000000000005140 r26:
0x0000000000005118 r27: 0x0000000000000000
r28: 0x000000000035c1c0 r29: 0x00000000a293c808 r30:
0x00000000a021e3d0 r31: 0x0000000092978028

Binary Images Description:
0x1000 - 0x3fff com.ASAT.MoleBlaster ???
(1.0) /Volumes/MoleBlaster/MoleBlaster.app/Contents/MacOS/MoleBlaster
0x2fa000 - 0x2fbfff com.apple.aoa.halplugin 2.5.6
(2.5.6b5) /System/Library/Extensions/IOAudioFamily.kext/Contents/PlugIns/AOAHALPlugin.bundle/Contents/MacOS/AOAHALPlugin
0x70000000 - 0x700fcfff com.apple.audio.units.Components
1.4.3 /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
0x8fe00000 - 0x8fe51fff dyld 45.3 /usr/lib/dyld
0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x90214000 - 0x90219fff libmathCommon.A.dylib
/usr/lib/system/libmathCommon.A.dylib
0x9021b000 - 0x90268fff com.apple.CoreText 1.0.2
(???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x90293000 - 0x90344fff ATS
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x90373000 - 0x9072dfff com.apple.CoreGraphics 1.258.38
(???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x907ba000 - 0x90893fff com.apple.CoreFoundation 6.4.6
(368.27) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x908dc000 - 0x908dcfff com.apple.CoreServices 10.4
(???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x908de000 - 0x909e0fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a3a000 - 0x90abefff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90ae8000 - 0x90b58fff IOKit
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90b6e000 - 0x90b80fff libauto.dylib /usr/lib/libauto.dylib
0x90b87000 - 0x90e5efff com.apple.CoreServices.CarbonCore
681.7 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90ec4000 - 0x90f44fff com.apple.CoreServices.OSServices
4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90f8e000 - 0x90fcffff com.apple.CFNetwork
129.18 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x90fe4000 - 0x90ffcfff com.apple.WebServices 1.1.2
(1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x9100c000 - 0x9108dfff com.apple.SearchKit
1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x910d3000 - 0x910fcfff com.apple.Metadata 10.4.4
(121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x9110d000 - 0x9111bfff libz.1.dylib /usr/lib/libz.1.dylib
0x9111e000 - 0x912d9fff com.apple.security 4.5
(28992) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x913d7000 - 0x913e0fff com.apple.DiskArbitration
2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x913e7000 - 0x9140ffff com.apple.SystemConfiguration
1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x91422000 - 0x9142dfff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x91432000 - 0x9143afff libbsm.dylib /usr/lib/libbsm.dylib
0x9143e000 - 0x914b9fff com.apple.audio.CoreAudio
3.0.4 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x914f6000 - 0x914f6fff com.apple.ApplicationServices 10.4
(???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x914f8000 - 0x91530fff com.apple.AE 1.5
(297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x9154b000 - 0x91618fff com.apple.ColorSync
4.4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x9166d000 - 0x916fefff com.apple.print.framework.PrintCore 4.6
(177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x91745000 - 0x917fcfff com.apple.QD 3.10.21
(???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x91839000 - 0x91897fff com.apple.HIServices 1.5.3
(???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x918c6000 - 0x918e7fff com.apple.LangAnalysis
1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x918fb000 - 0x91920fff com.apple.FindByContent
1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x91933000 - 0x91975fff com.apple.LaunchServices
181 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x91991000 - 0x919a5fff com.apple.speech.synthesis.framework
3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x919b3000 - 0x919f5fff com.apple.ImageIO.framework
1.5.0 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91a0b000 - 0x91ad3fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x91b21000 - 0x91b36fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x91b3b000 - 0x91b59fff libJPEG.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91b5f000 - 0x91bcefff libJP2.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91be5000 - 0x91be9fff libGIF.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91beb000 - 0x91c4afff libRaw.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91c4f000 - 0x91c8cfff libTIFF.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91c93000 - 0x91cacfff libPng.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91cb1000 - 0x91cb4fff libRadiance.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91cb6000 - 0x91cb6fff com.apple.Accelerate 1.2.2 (Accelerate
1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91cb8000 - 0x91d9dfff com.apple.vImage
2.4 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91da5000 - 0x91dc4fff com.apple.Accelerate.vecLib 3.2.2 (vecLib
3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91e30000 - 0x91e9efff libvMisc.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x91ea9000 - 0x91f3efff libvDSP.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x91f58000 - 0x924e0fff libBLAS.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x92513000 - 0x9283efff libLAPACK.dylib
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x9286e000 - 0x928f6fff com.apple.DesktopServices
1.3.4 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x92937000 - 0x92b62fff com.apple.Foundation 6.4.6
(567.27) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92c80000 - 0x92d5efff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x92d7e000 - 0x92e6cfff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x92e7e000 - 0x92e9cfff libGL.dylib
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92ea7000 - 0x92f01fff libGLU.dylib
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92f4d000 - 0x92f5dfff com.apple.speech.recognition.framework
3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x931b6000 - 0x931d3fff com.apple.audio.SoundManager
3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x931fb000 - 0x93508fff com.apple.HIToolbox 1.4.8
(???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x93657000 - 0x93663fff com.apple.opengl
1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x936db000 - 0x936dbfff com.apple.Cocoa 6.4
(???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x936dd000 - 0x93d10fff com.apple.AppKit 6.4.7
(824.41) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x9409d000 - 0x9410dfff com.apple.CoreData
80 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x94146000 - 0x94209fff com.apple.audio.toolbox.AudioToolbox
1.4.3 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x9425b000 - 0x9425bfff com.apple.audio.units.AudioUnit
1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x9425d000 - 0x94430fff com.apple.QuartzCore
1.4.9 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x94486000 - 0x944c3fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
0x944cb000 - 0x9451bfff libGLImage.dylib
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x946d6000 - 0x946e3fff libCSync.A.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x96f1d000 - 0x96f3cfff com.apple.vecLib 3.2.2 (vecLib
3.2.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #5
The actual exception message should be printed to the console log, as Alex said. You'll want to see it to properly diagnose the problem.

Random guess: -[MyView initWithFrame:] is adding nil to an NS(Mutable?)Dictionary.
Quote this message in a reply
Member
Posts: 29
Joined: 2006.07
Post: #6
As in the debugger console in XCode? I get no errors whatsoever on my computer, and above is the output to the Console.app log from her computer. I'll try disable the NSMutableDictionary I used for text attributes and see if it stops the crashing, but I can't see why it would be set to nil at runtime.

Quote:- (id)initWithFrame:(NSRect)frameRect
{
if ((self = [super initWithFrame:frameRect]) != nil) {
// other init code here
textAttribs = [[NSMutableDictionary dictionary] retain];
[textAttribs setObject:[NSFont fontWithName:@"Charcoal" size:12]
forKey:NSFontAttributeName];
[textAttribs setObject:[NSColor whiteColor]
forKey:NSForegroundColorAttributeName];
// other init code here
}
Quote this message in a reply
Member
Posts: 204
Joined: 2002.09
Post: #7
Most likely [textAttribs setObject:[NSFont fontWithName:@"Charcoal" size:12] is returning NULL on her computer. I didn't see a "Charcoal" on my computer, but a "Charcoal CY".
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #8
What you pasted is from the crash log, not the console log. Both are accessible via the "Console" application.

And yes, I'm sure that [NSFont fontWithName:.....] is returning nil. You really need to check things like that.
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #9
Totally off-topic, but would you care to explain your nick? Wink It makes some sort of sense in Swedish. Ninja
Quote this message in a reply
Member
Posts: 29
Joined: 2006.07
Post: #10
Very interesting...I honestly never thought of that. I'll give that a try and see how if it fixes the problem. Thanks for all the help. And yes, that was from the crash log.

And my name is a combination of two band names: VNV Nation and Rymdreglage Smile I don't speak Swedish so I have no clue what that means.

Update : Yup, it fixed the problem. Thanks, everyone! I'll be sure to keep a lookout for obvious things like this. Being pretty new to C-based programming, I'm bad about overlooking horribly obvious things and assuming my errors are caused by huge glaring mistakes. Learning is doing though!
Quote this message in a reply
Post Reply