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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:57:43+00:00 2026-05-19T21:57:43+00:00

I have an app with callbacks for recording and playing audio. From the recording

  • 0

I have an app with callbacks for recording and playing audio. From the recording callback, I call a function to update the GUI:

[mainViewController performSelectorOnMainThread:@selector(updateGuiAfterOnset) withObject:nil waitUntilDone:NO];

It works ok, but after I send the app to background (using the device’s home button) and open it up again, the app crashes after the 2nd call to updateGuiAfterOnset, and specifically, it crashes after calling to:

[myUIImageView setImage:myUIImage];

The only things I do in applicationWillResignActive and applicationDidBecomeActive, are stopping and starting the audioUnit:

AudioOutputUnitStop(audioUnit);

and

AudioOutputUnitStart(audioUnit);

My intuition is that some variable is messed up during the going-to-background/foreground process, but that’s only a guess.

Any ideas? Are there any recommended thing I need to do when going to background in a multi-threaded app?

EDIT The app crashes also if the gui-updating-method is called from the main thread (by tapping a button).

The relevant part from the crash report:

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

Thread 0 Crashed:
0   libobjc.A.dylib                     0x000027d8 objc_msgSend + 16
1   UIKit                               0x00009738 -[UIImageView setImage:] + 140
2   TimeKeeper                          0x00002b7a -[MainViewController updateGuiAfterOnset] (MainViewController.m:89)
3   CoreFoundation                      0x0003e2e4 -[NSObject(NSObject) performSelector:withObject:] + 16
  • 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-19T21:57:44+00:00Added an answer on May 19, 2026 at 9:57 pm

    Looks like myUIImage is not valid. Was it autoreleased or manually realeased by mistake.

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

Sidebar

Related Questions

When this callback is made in my app, I have quite a bit work
We have App A as main app. Now we build from it App B
problem I have the following C callback signature from a C library called Foo
I have an app that streams video from the net and plays it using
In my app (code very similar to Apple's PhotoScroller demo from WWDC10), I have
I am working on an app that involves recording audio on one device and
I have a winforms app that is making asyncronous WebClient calls with a callback
we have app hosted on google app engine for java. In this app we
I have app.config in m win application, and loggingConfiguration section (enterprise library 4.1). I
I have app in which i have recorded sound files i want that i

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.