• 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
Crashes with no backtrace when printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crashes with no backtrace when printing


  • Subject: Crashes with no backtrace when printing
  • From: Ben <email@hidden>
  • Date: Fri, 4 Jul 2008 00:24:25 +0100

I have just been getting my app to print two custom views. One uses a layer-backed NSView (many CALayer sublayers, in the region of 450- ish), one a plain NSView. Sometimes (rarely, but often enough), with no apparent pattern, the app is crashing just before showing the print dialog. The problem is that the backtraces I get are more or less as follows :

Attaching to program: `/Path/goes/here', process 14859.
Cannot access memory at address 0x9ead7
Cannot access memory at address 0x9ead7
(gdb) bt
#0  0x0009ead3 in ?? ()
#1  0x0018ee80 in ?? ()
Cannot access memory at address 0x9ead7


A crashlog in the console said the following:

"image not found for lazy pointer at 0x973f014"


My debugging skills are not good enough to know how to work around this and find the source of the crash. I have GC enabled and originally thought than some required object was being collected, but after maintaining strong references to all the objects I use and it still happens, I'm not sure that's it.


The reason I thought having GC enabled may be the source is that these crashes are often accompanied by messages warning of collected objects having a non-zero refcount. I'm pretty certain these objects aren't ones I've personally allocated.

Anyway, that's all the pertinent info I can think of. Does anyone have any suggestions about how to start tracing the cause of these crashes?


Regards,

Ben

_______________________________________________

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: Crashes with no backtrace when printing
      • From: Jens Alfke <email@hidden>
    • Re: Crashes with no backtrace when printing
      • From: Brian Stern <email@hidden>
  • Prev by Date: Re: Does this caution need fixed? (newb)
  • Next by Date: NSStatusItem custom view with menu
  • Previous by thread: Re: NSPredicateEditor
  • Next by thread: Re: Crashes with no backtrace when printing
  • Index(es):
    • Date
    • Thread