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 9000683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:20:28+00:00 2026-06-16T00:20:28+00:00

I am continuously getting a SIGTRAP error from this function – (void)saveShindyToDatabase { NSURL

  • 0

I am continuously getting a SIGTRAP error from this function

- (void)saveShindyToDatabase
{

    NSURL *url = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
    // url = [url URLByAppendingPathComponent:@"Default Shindy Database"];
    self.shindyDatabase = [[UIManagedDocument alloc] initWithFileURL:url];

    [self.shindyDatabase setValue:self.detailView.text forKey:@"details"];

    if (FBSession.activeSession.isOpen) {
        [[FBRequest requestForMe] startWithCompletionHandler:
         ^(FBRequestConnection *connection, NSDictionary<FBGraphUser> *user, NSError *error) {
             if (!error) {
                 self.name = user.name;
                 self.photo.profileID = user.id;
                 self.username = user.username;
             }
         }];
    }

    // [Guest guestWithName:self.name username:self.username photo:self.photo inManagedObjectContext:self.shindyDatabase.managedObjectContext];
    [self.shindyDatabase setValue:self.locationManager.location forKey:@"location"];
    [self.shindyDatabase setValue:self.dateAndTimePicker.date forKey:@"dateAndTime"];
}

I’m trying to execute the function when the user taps a button, or in the background. Either one returns the same error.

What am I doing wrong?

  • 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-16T00:20:29+00:00Added an answer on June 16, 2026 at 12:20 am

    Figured it out. I was calling on the main thread.

    - (void)saveShindyToDatabase
    {
    
        dispatch_queue_t fetchQ = dispatch_queue_create("HomeViewController", nil);
        dispatch_async(fetchQ, ^{
            NSArray *shindys = [[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask];
            [self.shindyDatabase.managedObjectContext performBlock:^{
                for (NSDictionary *shindyInfo in shindys) {
                    [Shindy shindyWithShindyDBInfo:shindyInfo inManagedObjectContext:self.shindyDatabase.managedObjectContext];
    
                    NSURL *url = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
                    // url = [url URLByAppendingPathComponent:@"Default Shindy Database"];
                    self.shindyDatabase = [[UIManagedDocument alloc] initWithFileURL:url];
    
                    [self.shindyDatabase setValue:self.detailView.text forKey:@"details"];
    
                    if (FBSession.activeSession.isOpen) {
                        [[FBRequest requestForMe] startWithCompletionHandler:
                         ^(FBRequestConnection *connection, NSDictionary<FBGraphUser> *user, NSError *error) {
                             if (!error) {
                                 self.name = user.name;
                                 self.photo.profileID = user.id;
                                 self.username = user.username;
                             }
                         }];
                    }
    
                    // [Guest guestWithName:self.name username:self.username photo:self.photo inManagedObjectContext:self.shindyDatabase.managedObjectContext];
                    [self.shindyDatabase setValue:self.locationManager.location forKey:@"location"];
                    [self.shindyDatabase setValue:self.dateAndTimePicker.date forKey:@"dateAndTime"];
                }
            }];
        });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

AM getting continuously the illegal character error in this url : http://my.server.com/SelectPerson-0.1/nativeService/businessCardSave?company=Select Person&fullName=Rghh Dgivv&email=uday@uioperr.info&phoneNo=123456789&desiredPosition=Machine
While deploying a dwr web app, i'm continuously getting this error. I dont know
I am continuously getting Error Code The ORA-01033: ORACLE initialization or shutdown in progress
I am trying to write a Ruby recursive function, but I am getting this
Continuously getting error : non-existent in revision 559. However for some other repositories they
My team is continuously getting New Relic log messages on our heroku console. This
I am continuously calling an API and keep getting Stack level too deep error
I am continuously getting an HTTP 409 error on every POST request I initiate
I am getting this error There is not enough free memory to run this
I am not finding any error in this class, but Netbeans continuously showing red

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.