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

  • Home
  • SEARCH
  • 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 6953489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:29:09+00:00 2026-05-27T14:29:09+00:00

I receive a SIGABRT when I try to get a non-null variable. Code: NSLog(@%@,

  • 0

I receive a SIGABRT when I try to get a non-null variable. Code:

NSLog(@"%@", appDelegate.xmlData.magDictionary);
for (Magazine *ibb in appDelegate.xmlData.magDictionary) {
        NSLog(@"%@", [ibb title]);
}

Output:

   {
        1 = "<Magazine: 0x6c8fe10>";
        2 = "<Magazine: 0xf168d00>";
        3 = "<Magazine: 0xf169f50>";
        4 = "<Magazine: 0xf16b6d0>";
        5 = "<Magazine: 0xf170490>";
        6 = "<Magazine: 0xf1716c0>";
        7 = "<Magazine: 0xf172a80>";
        8 = "<Magazine: 0xf173f10>";
    }

and SIGABRT on NSLog(@”%@”, [ibb title]);
The Magazine model: @synthesize title, key, teaser, tags, items, progressBar;

  • 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-05-27T14:29:10+00:00Added an answer on May 27, 2026 at 2:29 pm

    According to the comments, it appears that you do wrong in your Magazine initializer.
    Using retain mode for the property doesn’t really matter, but I would have used copy instead for string.

    Anyway, the title string coming from originalMag isn’t retained, or copied at all when assigned to the title ivar of your Magazine, thus I bet it is deallocated before you try to print any value, causing the crash.

    Another point, doing :

    title = [[NSString alloc] init];
    title = [originalMag title];
    

    generates a memory leak (and you still don’t retain the original title).
    Rewrite the initializer like so :

    -(id)initWithMagazine:(Magazine *)originalMag {
        .....
        title = [[originalMag title] copy];
        // or title = [[NSString alloc] initWithString:[originalMag title]];
        ....
    }
    

    and this should solve your app crash.

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

Sidebar

Related Questions

I receive this Run-Time Check Failure upon the return in the following code. I
I receive this message (see image below) when I try to edit in debugging.
when you receive this message Program received signal SIGABRT while pressing Info button on
We get an abort when a C++ exception is thrown when running code compiled
I receive some arguments into a stored procedure. These arguments are NVARCHAR's. I have
I receive a list of image URLs and currently I have several hidden img
I receive a dictionary as input, and would like to to return a dictionary
I receive a string from a database query, then I remove all HTML tags,
We receive lots of data as flat files: delimitted or just fixed length records.
I receive TypeError: Can't convert 'float' object to str implicitly while using Gambler.pot +=

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.