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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:01:20+00:00 2026-05-14T06:01:20+00:00

My app some times crashes at start-up. In stack-trace only messages from built-in frameworks.

  • 0

My app some times crashes at start-up. In stack-trace only messages from built-in frameworks. An excerpt from a crash log:

OS Version:      iPhone OS 3.1.3 (7E18)
Report Version:  104

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000e6000
Crashed Thread:  0

Thread 0 Crashed:
0   CoreGraphics                       0x339305d8 argb32_image_mark_RGB32 + 704
1   CoreGraphics                       0x338dbcd4 argb32_image + 1640
2   libRIP.A.dylib                     0x320d99f0 ripl_Mark
3   libRIP.A.dylib                     0x320db3ac ripl_BltImage
4   libRIP.A.dylib                     0x320cc2a0 ripc_RenderImage
5   libRIP.A.dylib                     0x320d5238 ripc_DrawImage
6   CoreGraphics                       0x338d7da4 CGContextDelegateDrawImage + 80
7   CoreGraphics                       0x338d7d14 CGContextDrawImage + 364
8   UIKit                              0x324ee68c compositeCGImageRefInRect
9   UIKit                              0x324ee564 -[UIImage(UIImageDeprecated) compositeToRect:fromRect:operation:fraction:]
10  UIKit                              0x32556f44 -[UINavigationBar drawBackButtonBackgroundInRect:withStyle:pressed:]
11  UIKit                              0x32556b00 -[UINavigationItemButtonView drawRect:]
12  UIKit                              0x324ecbc4 -[UIView(CALayerDelegate) drawLayer:inContext:]
13  QuartzCore                         0x311cacfc -[CALayer drawInContext:]
14  QuartzCore                         0x311cab00 backing_callback
15  QuartzCore                         0x311ca388 CABackingStoreUpdate
16  QuartzCore                         0x311c978c -[CALayer _display]
17  QuartzCore                         0x311c941c -[CALayer display]
18  QuartzCore                         0x311c9368 CALayerDisplayIfNeeded
19  QuartzCore                         0x311c8848 CA::Context::commit_transaction(CA::Transaction*)
20  QuartzCore                         0x311c846c CA::Transaction::commit()
21  QuartzCore                         0x311c8318 +[CATransaction flush]
22  UIKit                              0x324f5e94 -[UIApplication _reportAppLaunchFinished]
23  UIKit                              0x324a7a80 -[UIApplication _runWithURL:sourceBundleID:]
24  UIKit                              0x324f8df8 -[UIApplication handleEvent:withNewEvent:]
25  UIKit                              0x324f8634 -[UIApplication sendEvent:]
26  UIKit                              0x324f808c _UIApplicationHandleEvent
27  GraphicsServices                   0x335067dc PurpleEventCallback
28  CoreFoundation                     0x323f5524 CFRunLoopRunSpecific
29  CoreFoundation                     0x323f4c18 CFRunLoopRunInMode
30  UIKit                              0x324a6c00 -[UIApplication _run]
31  UIKit                              0x324a5228 UIApplicationMain
32  Journaler                          0x000029ac main (main.m:14)
33  Journaler                          0x00002948 start + 44

File main.m is simple as possible:

#import <UIKit/UIKit.h>

int main(int argc, char *argv[]) {

    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, nil); // line 14
    [pool release];
    return retVal;
}

What my cause the app to crash?

JournalerAppDelegate.h:

// ...

@interface JournalerAppDelegate : NSObject <UIApplicationDelegate> {
    // ...
    UINavigationController *navigationController;
    AccountsViewController *rootViewController;
    // ...
}

JournalerAppDelegate.m:

// ...

@implementation JournalerAppDelegate
// ...
- (void)applicationDidFinishLaunching:(UIApplication *)application {
    // ...
    rootViewController = [[AccountsViewController alloc] initWithNibName:@"AccountsViewController" bundle:nil];
    navigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];

    NSString *accountKey = // ...;
    if (accountKey) {
        LJAccount *account = // ...;
        if (account) {
            [rootViewController view]; // forces to load view
            [rootViewController openAccount:account animated:NO];
        }
    }

    [window addSubview:navigationController.view];
    [window makeKeyAndVisible];
}
// ...

AccountsViewController.h:

// ...

@interface AccountsViewController : UIViewController</* ... */> {
    // ...
    NSMutableDictionary *cacheTabBarControllers;
    // ...
}

AccountsViewController.m:

// ...

@implementation AccountsViewController
// ...
- (id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)nibBundle {
    if (self = [super initWithNibName:nibName bundle:nibBundle]) {
        cacheTabBarControllers = [[NSMutableDictionary alloc] initWithCapacity:1];
    }
    return self;
}
// ...
- (void)openAccount:(LJAccount *)account animated:(BOOL)animated {
    AccountTabBarController *tabBarController = [[cacheTabBarControllers objectForKey:account.title] retain];
    if (!tabBarController) {
        tabBarController = [[AccountTabBarController alloc] initWithAccount:account];
        [cacheTabBarControllers setObject:tabBarController forKey:account.title];
    }

    [self.navigationController pushViewController:tabBarController animated:animated];
    [tabBarController release];
}
// ...
  • 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-14T06:01:20+00:00Added an answer on May 14, 2026 at 6:01 am

    Looks like its crashing while trying to draw the UINavagationBar‘s back button. Is there any reason your app would have a back button when it starts?

    Are you restoring the navigation stack from a previous run?
    Are you creating a navigation stack with more than just a root view controller.

    Is your memory management correct in the all required places?

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

Sidebar

Related Questions

We built an app for a client some time back, signed it with our
I am trying to debug the cause of my app to crash. From my
I have been having some crashes in my app. When checking the logs and
My app crashes, it is a problem that arises from the AddressBook API, it
I've lost some time with a bug in my app due to user authentication.
I've been working with app engine for quite some time, I know that there
I've got a Rails app that's been running live for some time, and I'm
I'm developing an app that starts a System.Threading.Timer which does some fairly rapid reading/writing
My servlet-based web-app sometimes fails to close Log4j log files when redeployed, leaking to
I tested my app in Instruments. No leaks found, but app crashes (not immediately

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.