Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > 10.3 apps running on 10.2

10.3 apps running on 10.2
Thread Tools
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Sep 28, 2003, 02:12 PM
 
So, someone will probably beat me over the head for asking this, but shouldn't apps built on 10.3 run on 10.2? So I've been doing some development work on the preview release of 10.3, and I'm finally getting used to Xcode and it's "differences" from Project Builder (it took me forever to find the console log). Anyway, I know that the developer preview shouldn't be used for hard core development practices and everything, but why wouldn't an app I wrote in 10.3 run in 10.2? From my console log, it seems that there's an issue in the nib format...

Here's my error log:

Code:
********** Date/Time: 2003-09-24 14:42:45 -0500 OS Version: 10.2.6 (Build 6L60) Host: new-users-Computer.local. Command: Perfect Score PID: 461 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000006 Thread 0 Crashed: #0 0x90131ea8 in CFRelease #1 0x97e201bc in _decodeObjectBinary #2 0x97e4caf0 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] #3 0x97e0c73c in -[NSArray initWithCoder:] #4 0x97e20340 in _decodeObjectBinary #5 0x97e4caf0 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] #6 0x97e0c73c in -[NSArray initWithCoder:] #7 0x97e20340 in _decodeObjectBinary #8 0x97e284bc in _decodeObject #9 0x93112a7c in -[NSImage initWithCoder:] #10 0x97e20340 in _decodeObjectBinary #11 0x97e284bc in _decodeObject #12 0x930fc000 in -[NSButtonCell initWithCoder:] #13 0x97e20340 in _decodeObjectBinary #14 0x97e4caf0 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] #15 0x97e0c73c in -[NSArray initWithCoder:] #16 0x97e20340 in _decodeObjectBinary #17 0x97e284bc in _decodeObject #18 0x931713c0 in -[NSMatrix initWithCoder:] #19 0x97e20340 in _decodeObjectBinary #20 0x97e4caf0 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] #21 0x97e0c73c in -[NSArray initWithCoder:] #22 0x97e20340 in _decodeObjectBinary #23 0x97e284bc in _decodeObject #24 0x930ad944 in -[NSView initWithCoder:] #25 0x97e20340 in _decodeObjectBinary #26 0x97e4caf0 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] #27 0x97e0c73c in -[NSArray initWithCoder:] #28 0x97e20340 in _decodeObjectBinary #29 0x97e284bc in _decodeObject #30 0x930ad944 in -[NSView initWithCoder:] #31 0x9311bb34 in -[NSBox initWithCoder:] #32 0x97e20340 in _decodeObjectBinary #33 0x97e4caf0 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] #34 0x97e0c73c in -[NSArray initWithCoder:] #35 0x97e20340 in _decodeObjectBinary #36 0x97e284bc in _decodeObject #37 0x930ad944 in -[NSView initWithCoder:] #38 0x97e20340 in _decodeObjectBinary #39 0x97e284bc in _decodeObject #40 0x931d40c4 in -[NSTabViewItem initWithCoder:] #41 0x97e20340 in _decodeObjectBinary #42 0x97e4caf0 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] #43 0x97e0c73c in -[NSArray initWithCoder:] #44 0x97e20340 in _decodeObjectBinary #45 0x97e284bc in _decodeObject #46 0x931d3bd4 in -[NSTabView initWithCoder:] #47 0x97e20340 in _decodeObjectBinary #48 0x97e4caf0 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] #49 0x97e0c73c in -[NSArray initWithCoder:] #50 0x97e20340 in _decodeObjectBinary #51 0x97e284bc in _decodeObject #52 0x930ad944 in -[NSView initWithCoder:] #53 0x97e20340 in _decodeObjectBinary #54 0x97e284bc in _decodeObject #55 0x93130a9c in -[NSWindowTemplate initWithCoder:] #56 0x97e20340 in _decodeObjectBinary #57 0x97e284bc in _decodeObject #58 0x930fd99c in -[NSNibConnector initWithCoder:] #59 0x930f1194 in -[NSNibOutletConnector initWithCoder:] #60 0x97e20340 in _decodeObjectBinary #61 0x97e4caf0 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] #62 0x97e0c73c in -[NSArray initWithCoder:] #63 0x97e20340 in _decodeObjectBinary #64 0x97e284bc in _decodeObject #65 0x93149b88 in -[NSIBObjectData initWithCoder:] #66 0x97e20340 in _decodeObjectBinary #67 0x97e284bc in _decodeObject #68 0x931b3268 in loadNib #69 0x930ea9b4 in +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] #70 0x93149a5c in +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] #71 0x931c7214 in -[NSWindowController loadWindow] #72 0x931c6ffc in -[NSWindowController window] #73 0x931ca1a4 in -[NSWindowController showWindow:] #74 0x931ca164 in -[NSDocument showWindows] #75 0x931f06c8 in -[NSDocumentController openUntitledDocumentOfType:display:] #76 0x9318a4c8 in -[NSDocumentController _openUntitled] #77 0x9318a3e4 in -[NSApplication _doOpenUntitled] #78 0x9316140c in _requiredAEEventHandler #79 0x91b56570 in _Z20aeDispatchAppleEventPK6AEDescPS_mPh #80 0x91b590cc in _Z25dispatchEventAndSendReplyPK6AEDescPS_ #81 0x91b56478 in aeProcessAppleEvent #82 0x96a83778 in AEProcessAppleEvent #83 0x9308e0a8 in _DPSNextEvent #84 0x930a0158 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] #85 0x930b1d88 in -[NSApplication run] #86 0x9315fc58 in NSApplicationMain #87 0x000040b8 in _start (crt.c:267) #88 0x00003f38 in start PPC Thread State: srr0: 0x90131ea8 srr1: 0x0000f030 vrsave: 0x00000000 xer: 0x00000000 lr: 0x90131e98 ctr: 0x90131e80 mq: 0x00000000 r0: 0x97e201bc r1: 0xbfffa080 r2: 0x24004242 r3: 0x00000000 r4: 0x906ade3c r5: 0xa30a1338 r6: 0x00000070 r7: 0x61636865 r8: 0xa0131e98 r9: 0xa0131e98 r10: 0x00000000 r11: 0xa7df1618 r12: 0x90131e80 r13: 0x00000000 r14: 0x00000000 r15: 0xa3099abc r16: 0x000d90e0 r17: 0xa309a6d4 r18: 0xa3099abc r19: 0xa309a6d4 r20: 0xa7defc80 r21: 0x000002d2 r22: 0x00000000 r23: 0x01561d10 r24: 0x97f14ffc r25: 0x00000000 r26: 0x00008c89 r27: 0x015498d0 r28: 0x00000000 r29: 0x00000000 r30: 0x00000000 r31: 0x90131e98
I don't think I've ever seen my code cause a stack trace that goes back 88 levels before!

Thanks (please don't be too harsh!
Matt Fahrenbacher
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Sep 28, 2003, 03:01 PM
 
XCode comes with some stuff to target 10.1/10.2
     
Forum Regular
Join Date: Aug 2003
Status: Offline
Reply With Quote
Sep 28, 2003, 03:05 PM
 
10.3 introduces a lot of new things, especially in the nib files. Keyed archiving, new contorolls, and NSObjectController are just some of them. Also, there are many new methods available in 10.3 that are not in 10.2. You can, however use the 10.2 SDK as suggested by Catfish_Man, or make sure to save your nib in 10.2 format and not use any of the new 10.3 features.
-- Devin Lane, Cocoa Programmer
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Sep 29, 2003, 10:43 AM
 
Keyed archiving was new in 10.2, no?
     
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Sep 29, 2003, 04:00 PM
 
Keyed Archiving was new in 10.2, not 10.3. I changed the project settings to build against the 10.2.6 SDK instead of the 10.3 SDK, but that didn't solve the problem (it took forever to figure out how to do this in Xcode). In Interface Builder, I made sure my nib files were being saved in... the 10.2 and after format (there is no 10.2 only option). According to IB, there are no problems with my nib files that should be caused by loading them on 10.2 (the consistency checker). Still... the problem remains.

Grrrr...

Matt Fahrenbacher
     
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Oct 5, 2003, 05:33 PM
 
Wow, here's the problem:

I nested an NSMatrix of NSButtons inside an NSBox inside an NSTabViewItem inside an NSTabView inside an NSView inside an NSWindow and it didn't seem to like it. Removing the matrix and moving my nib file to a 10.2.3 machine allowed me to open it up and build my project for 10.2.x. Other NSMatrix's in other parts of my nib file didn't cause the same problem. Deleting and recreating the matrix where it was didn't fix it. There's something bad about that nesting. Go figure.

Thanks!
Matt Fahrenbacher
     
Professional Poster
Join Date: Jun 2001
Location: Northwest Ohio
Status: Offline
Reply With Quote
Oct 8, 2003, 08:58 PM
 
Originally posted by Ghoser777:
Wow, here's the problem:

I nested an NSMatrix of NSButtons inside an NSBox inside an NSTabViewItem inside an NSTabView inside an NSView inside an NSWindow and it didn't seem to like it. Removing the matrix and moving my nib file to a 10.2.3 machine allowed me to open it up and build my project for 10.2.x. Other NSMatrix's in other parts of my nib file didn't cause the same problem. Deleting and recreating the matrix where it was didn't fix it. There's something bad about that nesting. Go figure.

Thanks!
Matt Fahrenbacher
Hmm... sounds like the old ?NESTING TOO DEEP ERROR or some such you got back in Applesoft BASIC when you nested more than 16 FOR...NEXT loops... there was only a certain amount of stack space allocated for that sort of thing. Maybe the same thing is happening here too.

Just speculating.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:12 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2