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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:21:59+00:00 2026-05-12T16:21:59+00:00

I’m amused by a strange error that I’m encountering in my program. I have

  • 0

I’m amused by a strange error that I’m encountering in my program.

I have a tableViewController with a navigationBar. When the user clicks on an ADD button on the navigationBar, they’re presented with a modal tableViewController. This viewController has a CANCEL button on its navigationBar (which dismisses the viewController via delegation)

The tableViewController has custom cells containing UIButtons, a UITextField and a UITextView.

The error is caused by following this sequence of actions (and no other):

  • I type some text into the UITextView (which is located in one of the cells)
  • Without dismissing the keyboard, I then scroll the tableView upwards.
  • I hit the cancel button (so that the modal view controller is dismissed)
  • Back in the main tableViewController, I tap the ADD button again,

I get the exec_bad_access error.

Nothing else causes this error.

If I try exactly the same procedure but with the UITextField instead, things are fine.

Also if I exclude any of the listed steps from the above sequence, things are fine.

I’m pretty confused. Could it be a bug?


Update

I tried using NSZombie to figure out what’s causing the error. This is what I see in the console:

MyApp[14402:207] *** -[UIWebDocumentView isKindOfClass:]: message sent to deallocated instance 0x200a800

I don’t have much code for this; the cells are created in interface builder. Here’s the method which brings up the modalViewController

- (void)createNewEntry:(id)sender {

CreateNewEntryViewController *createNewEntryVC = [[CreateNewEntryViewController alloc] initWithNibName:@"CreateNewEntryViewController" bundle:nil];
createNewEntryVC.delegate = self;

UINavigationController *createNewEntryNavigationController = [[UINavigationController alloc] initWithRootViewController:createNewEntryVC];
[createNewEntryVC release];

[self presentModalViewController:createNewEntryNavigationController animated:YES];
[createNewEntryNavigationController 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-12T16:21:59+00:00Added an answer on May 12, 2026 at 4:21 pm

    Final Edit:

    I found the solution to my problem, maybe it will solve yours too. (Look at my answer to this question:) UIButton, created by Interface Builder, is crashing

    Specifically, if your buttons have any images, try deleting them from your project, getting fresh copies, renaming them, re-adding them to the project and then hooking them up again. Seems to have worked in my case.


    Previous randomness from me:

    (Not an answer, but…) For what it’s worth, I’m getting a similar message. Maybe adding what I’m seeing might help figure this all out. I get this both in the Simulator and on the device.

    -[UIImage isKindOfClass:]: message sent to deallocated instance 0x1661f0

    This message is not always identical for me, sometimes its about retaining an invalid instance, or a few other similar sorts of things. None of these are things I’m doing myself, but behind the scenes stuff.

    EDIT: Here’s another one:

    -[UIImage retain]: message sent to deallocated instance 0x3b621a0

    Here’s the code where I’m getting dumped (like you, I’m showing a modal dialog, though mine’s a custom UIView). In my case, I’m forcing the run loop to wait for a user response like this:

    [modalDialog showInView:self.view
                      title:@"Illegal Move"
                    message:message 
                 cancelText:@"Cancel" 
                proceedText:@"Cheat"];
    
    while (waitingForDialogToDismiss == YES) {
        //this line is where NSZombies puts me:
        [[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode 
                                 beforeDate: [NSDate dateWithTimeIntervalSinceNow:1.5]];
    }
    

    This modal dialog is built completely from a nib, and has a couple button images and shows correctly almost always. However, if I try to “rush it” by tapping many different UI elements before it comes up, I can get this error about 30-40% of the time. On one occasion, even though the dialog showed up, its Cancel button had the wrong graphic.

    It almost seems like the showing of the view isn’t always completely loading everything correctly, or maybe in a timely manner.

    For the moment, I’m going to try rewriting a bunch of code to remove the NSRunLoop business. We’ll see.

    EDIT 2: No help

    The NSRunLoop was definitely not the problem. I’ve narrowed it down much more and started a new question here: UIButton, created by Interface Builder, is crashing

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I am trying to loop through a bunch of documents I have to put
I have some data like this: 1 2 3 4 5 9 2 6
We're building an app, our first using Rails 3, and we're having to build
I'm making a simple page using Google Maps API 3. My first. One marker

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.