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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:06:42+00:00 2026-06-15T17:06:42+00:00

I am getting a uncommitted CATransaction warning that I can’t seam to resolve. My

  • 0

I am getting a uncommitted CATransaction warning that I can’t seam to resolve. My app works fine it is doing every thing that I expect, the screen updates the label as fast as I need, it all looks good.

    Dec 10 10:40:10 my-iPhone myAppName[5967] <Warning>: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.

I set the CA_DEBUG_TRANSACTIONS=1 and found the following listing.

    Dec 10 10:43:45 my-iPhone myAppName[5994] <Warning>: CoreAnimation: warning, deleted thread with uncommitted CATransaction; created by:
    0   QuartzCore                          0x348fc65d <redacted> + 220
    1   QuartzCore                          0x348fc541 <redacted> + 224
    2   QuartzCore                          0x348fc325 <redacted> + 24
    3   QuartzCore                          0x34900489 <redacted> + 44
    4   QuartzCore                          0x34905091 <redacted> + 456
    5   QuartzCore                          0x34904ebf <redacted> + 42
    6   QuartzCore                          0x34904e91 <redacted> + 44
    7   myAppName                       0x000d9ec1 -[MainViewController updateProgress:] + 56
    8   Foundation                          0x3a75067d <redacted> + 972
    9   libsystem_c.dylib                   0x397d6311 <redacted> + 308
    10  libsystem_c.dylib                   0x397d61d8 thread_start + 8

The code that is causing this warning looks like this :

   - (void)updateProgress:(NSString*) myLabelString
    {
    //this is updating a UILabel on the main view
    [myLabel setText:myLabelString];

    }

it is called from a for loop where I call performSelectorinBackground:

for (;;) {
   // Do stuff here to set up the info for the string

    [self performSelectorInBackground:@selector(updateProgress:) withObject:myLabelString];
    usleep(100000);
    if (stopLoop == YES) {
    // do stuff before we exit for loop            
        break;
    }

}

I have tried several things mostly with the idea of making sure that the update to myLable is complete before exiting the selector “updateProgress” , the only effect is to change the time (+56) to a larger number.
I have also tried to use:

    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:1.0f];    
    // edit UILabel here    
    [UIView commitAnimations];

And I tried this from a different post, but as I am not using core animations, I was not really surprised that the compiler objected to “CATransaction” as an undeclared identifier.

      [CATransaction begin];
      [CATransaction setDisableActions:YES];
      //
      [CATransaction commit];

Any suggestions on how to determine if the label update is complete? As I said the app is working I just need to clear this warning.

  • 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-15T17:06:43+00:00Added an answer on June 15, 2026 at 5:06 pm

    This question was answered on the Developer forum.
    it turns out that I was doing UIKit work on a background thread.

    I changed the line :

        [self performSelectorInBackground:@selector(updateProgress:) withObject:myLabelString];
    

    To:

        [self performSelectorOnMainThread:@selector(updateProgress:) withObject:myLabelString waitUntilDone:NO];
    

    I tried setting WaitUntilDone to YES as well and that also worked.

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

Sidebar

Related Questions

Getting red warning message that expected identifier for this statement CALayer = ImageView.layer; Using
Getting two warning when i run this program and i can't figure out how
On Mac OS 10.8 I'm getting the following warning in my app: CoreAnimation: warning,
Getting the following error: "Warning: Cannot modify header information - headers already sent by
Getting this error: Each GROUP BY expression must contain at least one column that
getting an Warning: Invalid argument supplied for foreach() in /home/maxer/domains/x/public_html/x/items.php on line 41 line
I've installed WAMP Server on my computer so that I can develop my website,
Currently we have a database where STATEMENT bin log format works fine. Now we
Getting contradictory messages about that, hope they're not. I cannot imagine support for it
Getting more precise, i want to generate modal popup(call it A) and in that

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.