• 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
Crash when rectForPage is overridden on Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash when rectForPage is overridden on Intel


  • Subject: Crash when rectForPage is overridden on Intel
  • From: "Vera Wahler" <email@hidden>
  • Date: Thu, 29 Jun 2006 11:43:42 +0200

Hi all,

we have written a java-cocoa-application, which is working fine on our
powerpc-macs.
After switching to intel, the application always crashes, when we create a pdf
from a NSView.
We have extended NSView und the following methods are overridden:
- knowsPageRange
- rectForPage
The problem seems to be that rectForPage is overridden in our class.
If we comment the method in our class, the app doesn't crash.

Here is a snippet from the crash dump:
Thread 0 Crashed:
0 libobjc.A.dylib 0x908d8387 objc_msgSend + 23
1 com.apple.CoreFoundation 0x90289682 _CFStringAppendFormatAndArgumentsAux +
5644
2 com.apple.CoreFoundation 0x90287f6c _CFStringCreateWithFormatAndArgumentsAux
+ 122
3 com.apple.Foundation 0x90a57b31 -[NSPlaceholderString
initWithFormat:locale:arguments:] + 162
4 com.apple.Foundation 0x90a7972c -[NSString initWithFormat:arguments:] + 55
5 libObjCJava.A.dylib 0x9666c308 _BRIDGELog + 132
6 libObjCJava.A.dylib 0x9667205d _BRIDGEMethodImpStructReturn + 70
7 com.apple.AppKit 0x922d4011 -[NSView(NSPrinting)
_printPagesWithOperation:helpedBy:] + 331
8 com.apple.AppKit 0x922d34ab -[NSView(NSPrinting)
_generatePSCodeHelpedBy:operation:] + 425
9 com.apple.AppKit 0x922d12c2 -[NSView(NSPrinting) _realPrintPSCode:helpedBy:]
+ 1007
10 com.apple.AppKit 0x922d0e89 -[NSConcretePrintOperation
_doActualViewPrinting] + 150
11 com.apple.AppKit 0x9233e08a -[NSConcretePrintOperation runOperation] + 413
12 libAppKitJava.B.dylib 0x978e3602
Java_com_apple_cocoa_application_NSPrintOperation_runOperation + 90

Any ideas?

Thanks for help.
Vera

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Implementing a TCP port listener in Cocoa
  • Next by Date: Re: String with bytes
  • Previous by thread: Re: String with bytes
  • Next by thread: /Volumes entry Type detail ?
  • Index(es):
    • Date
    • Thread