Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8048225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:21:58+00:00 2026-06-05T06:21:58+00:00

So I’m debugging an app in preperation for its app so release, and I

  • 0

So I’m debugging an app in preperation for its app so release, and I enabled a universal breakpoint for "All Exceptions". Since then, everytime I run the app, the console prints:

Catchpoint 2 (throw)Pending breakpoint 1 – "objc_exception_throw" resolved

objc[11765]: Object 0x8f18ff0 of class __NSCFLocale autoreleased with no pool in place – just leaking – break on objc_autoreleaseNoPool() to debug

objc[11765]: Object 0x8f190a0 of class __NSCFNumber autoreleased with no pool in place – just leaking – break on objc_autoreleaseNoPool() to debug

objc[11765]: Object 0x8f1fef0 of class __NSCFLocale autoreleased with no pool in place – just leaking – break on objc_autoreleaseNoPool() to debug

Literally printed 3 times. I have no idea what this means but it looks bad. Any advice would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:22:00+00:00Added an answer on June 5, 2026 at 6:22 am

    New Info

    I determined where my issue lies by creating a swizzled autorelease method.

    I dont recommend doing that unless you know what you are doing, however this is what I found out.

    + (void) load; //Method is called outside the original autorelease pool.
    + (void) initialize; // Method is called outside the original autorelease pool.
    

    NSThread creates its own thread, the called method should be wrapped in an autorelease pool.

    Grand Central Dispatch takes care of adapting over the autorelease pool when using the “dispatch_…” commands. however, when you dispatch manually. you may want to wrap it in an autorelease pool.

    Also, ARC does not handle letting you know that an autorelease will happen outside a pool.

    Therefore if you are using ARC and know that you will be outside the autorelease pool. And there is nothing you can do about that. You will want to avoid all convenience methods.

    use this.

    [[NSString alloc] initWithFormat:@"%@",myObject];
    

    instead of this

    [NSString stringWithFormat:@"%@",myObject];
    

    this will allow the arc system to retain and release, but the underlying autorelease done by the convenience method will be skipped as you will not have used the convenience method.

    Hope that helps.

    Original Answer

    Ok, I dont feel this question was answered with enough detail.

    the message being presented was

    objc[1310]: Object 0x34f720 of class SimpleKeychain autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
    

    The debugger is pointing out a possible breakpoint that will help you debug the situation. Now while this breakpoint really did little to help debug the situation. I think that it is important to know how to add that breakpoint to the debugger and so I spent the time tinkering with it (after scouring the internet and finding nothing) until I got it to break on that error.

    It is kind of annoying that break on all errors does not catch this, but here are the steps to add the breakpoint to the debugger.

    first thing you want to do is select the debugger’s breakpoint navigator

    navigator toolbar

    by clicking on this tab

    breakpoint button

    next you look toward the bottom of the navigator pane and press the Plus button

    Add Exception Breakpoint

    This will allow you to manually add a breakpoint.

    I selected a C++ breakpoint and entered the message name into the name text field.

    Adding custom C++ exception

    after adding this exception it did in fact break.

    However this may or may not be useful to you as an objective c developer. This broke into the Assembly code.

    assembly code at achieved breakpoint.

    Unfortunately it only showed this point on the call stack for the thread.

    Thread list

    And it turned out that the autorelease problem was because a class called autorelease in a dispatch_once call. and further investigation revealed that the +(void)load; method on the class was called before anything else. this is done via the call_load_methods function and is outside the thread on the main method.

    Error Call and Stack

    to correct this, I merely added the autorelease pool wrapper around the call.

    updated error call

    another solution may be to add the autorelease pool inside the +(void)load; method. but this was sufficient for my uses.

    NOTE: I am adding this to the post here because I do not like finding an issue and not being able to figure out all paths to the resulting answer. If the debugger tells you to add a breakpoint to the function listed, then there should be some information somewhere to get that information. Hopefully this will lower the frustration of some of those out there trying to find this answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have a text area in my form which accepts all possible characters from
I am writing an app with both english and french support. The app requests
I am using Paperclip to handle profile photo uploads in my app. They upload
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.