• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Leopard on PPC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leopard on PPC


  • Subject: Re: Leopard on PPC
  • From: Lorenzo <email@hidden>
  • Date: Mon, 28 Apr 2008 09:31:21 +0200

Hi Clark,
I had time to go back on this trouble again. My client, who has never been
able to run my app on his PPC with Leopard, sent me a new crash log. This
time I didn't use CFNumberRef but I used just NSNumber.

NSNumber    *width = [NSNumber numberWithInt:(int)(size.width)];
options = [NSDictionary dictionaryWithObjectsAndKeys:
          [NSNumber numberWithBool:YES],  (id) kCGImageSourceShouldCache,
          [NSNumber numberWithBool:YES],
          (id)kCGImageSourceCreateThumbnailFromImageIfAbsent,
          width,(id)kCGImageSourceThumbnailMaxPixelSize,
          nil];

As I explained, this crash never occurs on Intel machines with Leopard nor
on PPC machines with Tiger. It occurs only with PPC and Leopard.


The crash log
-------------
Code Type:       PPC (Native)
Parent Process:  launchd [139]

Date/Time:       2008-04-27 11:04:07.866 +0100
OS Version:      Mac OS X 10.5.2 (9C7010)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread:  0

Thread 0 Crashed:
0   libSystem.B.dylib                 0xffff8944 __memcpy + 420
1   libobjc.A.dylib                   0x942cfec4 fixupSelectorsInMethodList
+ 100
2   libobjc.A.dylib                   0x942d152c _class_getMethodNoSuper +
204
3   libobjc.A.dylib                   0x942c62e8
_class_lookupMethodAndLoadCache + 192
4   libobjc.A.dylib                   0x942d8104 objc_msgSend + 260
5   libobjc.A.dylib                   0x942c7d30 _class_initialize + 456
6   libobjc.A.dylib                   0x942c628c
_class_lookupMethodAndLoadCache + 100
7   libobjc.A.dylib                   0x942d8104 objc_msgSend + 260
8   com.apple.Foundation              0x951a1ba0 _NSOutOfMemoryErrorHandler
+ 60
9   com.apple.CoreFoundation          0x95549e08
__CFStringChangeSizeMultiple + 1196
10  com.apple.CoreFoundation          0x9554a674 __CFStringAppendBytes + 856
11  com.apple.CoreFoundation          0x95552ab8
_CFStringAppendFormatAndArgumentsAux + 5232
12  com.apple.CoreFoundation          0x95553370
_CFStringCreateWithFormatAndArgumentsAux + 140
13  com.apple.Foundation              0x9507c504 -[NSPlaceholderString
initWithFormat:locale:arguments:] + 148
14  com.apple.Foundation              0x950e7f7c -[NSString
initWithFormat:locale:] + 52
15  com.apple.Foundation              0x950e7c40 -[NSNumber
descriptionWithLocale:] + 648
16  com.myapp.myapp               0x00124884 0x1000 + 1194116
17  com.myapp.myapp               0x001246f0 0x1000 + 1193712
18  com.apple.AppKit                  0x947d3034 -[NSTableView numberOfRows]
+ 180
19  com.apple.AppKit                  0x947bd774 -[NSTableView
_verifySelectionIsOK] + 100
20  com.apple.AppKit                  0x947bd6e8 -[NSTableView
_tileAndRedisplayAll] + 244
21  com.apple.AppKit                  0x947bd3d8 -[NSTableView
setDataSource:] + 260
22  com.apple.AppKit                  0x946c9a94 -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:] + 1048
23  com.apple.AppKit                  0x946c1170 loadNib + 224
24  com.apple.AppKit                  0x946c0b14 +[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:] + 840
25  com.apple.AppKit                  0x946c06f0 +[NSBundle(NSNibLoading)
loadNibNamed:owner:] + 336
26  com.apple.AppKit                  0x946c03d8 NSApplicationMain + 332
27  com.myapp.myapp               0x000029dc 0x1000 + 6620
28  com.myapp.myapp               0x000026e0 0x1000 + 5856




Best Regards
--
Lorenzo
email: email@hidden

> From: Clark Cox <email@hidden>
> Date: Thu, 27 Mar 2008 08:29:58 -0700
> To: Lorenzo <email@hidden>
> Cc: Laurent Cerveau <email@hidden>, "email@hidden"
> <email@hidden>
> Subject: Re: Leopard on PPC
>
> On Wed, Mar 26, 2008 at 4:04 PM, Lorenzo <email@hidden> wrote:
>> Hi Laurent,
>>  I am going to debug and let you know. Right now I have found these lines.
>>  Might they cause the trouble on Leopard && PPC?
>>
>
> No, but this line will cause problems when/if you build for 64-bit:
>>     number = CFNumberCreate(NULL, kCFNumberFloatType, &destSize.width);
>
> Use kCFNumberCGFloatType instead of kCFNumberFloatType, and make sure
> that you later CFRelease(number). Or just use NSNumber.
>
>>     options = [NSDictionary dictionaryWithObjectsAndKeys:
>>             (id) kCFBooleanTrue,   (id) kCGImageSourceShouldCache,
>>             (id) kCFBooleanTrue,   (id)
>> kCGImageSourceCreateThumbnailFromImageIfAbsent,
>>             (id) number,           (id) kCGImageSourceThumbnailMaxPixelSize,
>>             NULL];
>>
>>
>>
>>     options = [NSDictionary dictionaryWithObjectsAndKeys:
>>             (id) kCFBooleanTrue,    (id) kCGImageSourceShouldCache,
>>             (id) kCFBooleanTrue,    (id) kCGImageSourceShouldAllowFloat,
>>             NULL];
>
> Also, be sure that you are not releasing either of the "options"
> dictionary, as they are already autoreleased for you.
>
>
> --
> Clark S. Cox III
> email@hidden

_______________________________________________

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Leopard on PPC
      • From: Michael Vannorsdel <email@hidden>
    • Re: Leopard on PPC
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: How is "Apple + Ctrl + D" implemented?
  • Next by Date: Re: Leopard on PPC
  • Previous by thread: Re: Another question about Disabling Energy Saving mode
  • Next by thread: Re: Leopard on PPC
  • Index(es):
    • Date
    • Thread