• 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: loadNibNamed deprecated, but newer version crashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loadNibNamed deprecated, but newer version crashes


  • Subject: Re: loadNibNamed deprecated, but newer version crashes
  • From: Gabriel Zachmann <email@hidden>
  • Date: Mon, 19 Sep 2016 11:02:03 +0200

Thanks a lot for your response.

When I replace this line
	[NSBundle loadNibNamed: @"ConfigureSheet" owner: self];
by this:
	NSBundle * bundle = [NSBundle bundleForClass:[self class]];
	[bundle loadNibNamed: @"ConfigureSheet" owner: self topLevelObjects: nil];

then System preferences crashes with this stack trace:

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000007fe17f0b260
0   libobjc.A.dylib               	0x000000010c0434dd objc_msgSend + 29
1   com.apple.ScreenSaver         	0x0000000122308df2 -[ScreenSaverView _oneStep:] + 98
2   com.apple.Foundation          	0x000000010baecb4e __NSFireDelayedPerform + 377
3   com.apple.CoreFoundation      	0x000000010da0bb94 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
4   com.apple.CoreFoundation      	0x000000010da0b823 __CFRunLoopDoTimer + 1075
5   com.apple.CoreFoundation      	0x000000010da0b37a __CFRunLoopDoTimers + 298
6   com.apple.CoreFoundation      	0x000000010da02871 __CFRunLoopRun + 1841

So, it seems like the init function  initWithFrame:isPreview:  in my subclass of ScreenSaverView finishes fine,
only when ScreenSaverView tries to perform one animation step, it crashes.
I think, at this point, it has not yet called my code to perform an animation step.

There is no more info in the system.log.


Best regards,
Gabriel.


_______________________________________________

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: loadNibNamed deprecated, but newer version crashes
      • From: Alastair Houghton <email@hidden>
References: 
 >How to make Xcode launch a different app when "Running" my code? (From: Gabriel Zachmann <email@hidden>)
 >Re: How to make Xcode launch a different app when "Running" my code? (From: "Pascal J. Bourguignon" <email@hidden>)
 >loadNibNamed deprecated, but newer version crashes (From: Gabriel Zachmann <email@hidden>)
 >Re: loadNibNamed deprecated, but newer version crashes (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: How to make Xcode launch a different app when "Running" my code?
  • Next by Date: Strange UIWebView issue after upgrading to Xcode8
  • Previous by thread: Re: loadNibNamed deprecated, but newer version crashes
  • Next by thread: Re: loadNibNamed deprecated, but newer version crashes
  • Index(es):
    • Date
    • Thread