• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Perplexing crash in iOS app, on observing an NSOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Perplexing crash in iOS app, on observing an NSOperation


  • Subject: Perplexing crash in iOS app, on observing an NSOperation
  • From: Gavin Stokes <email@hidden>
  • Date: Mon, 16 Jul 2012 17:31:35 -0700

I added some new operation-handling in my app, and it's now crashing quite
frequently in background threads with EXC_BAD_ACCESS and this:

1   Foundation                    0x306cdd46
-[NSObject(NSKeyValueObservingPrivate)
_changeValueForKey:key:key:usingBlock:] + 438

2   Foundation                    0x306cdb84
-[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:usingBlock:] + 24

3   Foundation                    0x30752260
____NSOQDelayedFinishOperations_block_invoke_0 + 84

4   Foundation                    0x306cdd46
-[NSObject(NSKeyValueObservingPrivate)
_changeValueForKey:key:key:usingBlock:] + 438

5   Foundation                    0x306cdb84
-[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:usingBlock:] + 24

6   Foundation                    0x307521d4 __NSOQDelayedFinishOperations
+ 128

7   libdispatch.dylib             0x377df9a2 _dispatch_after_timer_callback
+ 6

8   libdispatch.dylib             0x377e2252 _dispatch_source_invoke + 510

9   libdispatch.dylib             0x377dfb1e
_dispatch_queue_invoke$VARIANT$up + 42

10  libdispatch.dylib             0x377e0784 _dispatch_worker_thread2 + 208

11  libsystem_c.dylib             0x346afdf4 _pthread_wqthread + 288

12  libsystem_c.dylib             0x346afcc8 start_wqthread + 0

The thing is, I'm not updating the UI from this background thread, and I
don't see any difference between the new code and essentially identical
code that has been running crash-free for months.

Is there some other common pitfall here (aside from updating the UI in a
background thread) that could be responsible?

Thanks for any ideas.

Gavin
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Perplexing crash in iOS app, on observing an NSOperation
      • From: Gavin Stokes <email@hidden>
  • Prev by Date: Re: Core Data Multiuser
  • Next by Date: Re: Perplexing crash in iOS app, on observing an NSOperation
  • Previous by thread: How to determine an NSSlider's thumb position onscreen?
  • Next by thread: Re: Perplexing crash in iOS app, on observing an NSOperation
  • Index(es):
    • Date
    • Thread