parse-community / Parse-SDK-iOS-OSX

The Apple SDK for Parse Platform (iOS, macOS, watchOS, tvOS)
https://parseplatform.org
Other
2.81k stars 873 forks source link

Crash within Parse framework when it internally uses PFSQLiteDatabase #290

Open rdbayer opened 9 years ago

rdbayer commented 9 years ago

On Parse 1.8.3, we are periodically experiencing a crash. The relevant call appears to be [PFSQLiteDatabase _executeQueryAsync:withArgumentsInArray:cachingEnabled:] called by [BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2. Will paste the full stack trace for all threads as a comment.

It looks like this is happening as the result of a PFQuery.findObjectInBackgroundWithBlock() call

nlutsenko commented 9 years ago

Hey @rdbayer, thanks for the report! Stack trace would be amazing, since without it it's going to be very hard to track it down. Also, getting a full blown stack trace would be much more preferred to the regular Xcode one. (aka running thread backtrace all from lldb console)

rdbayer commented 9 years ago

Full stack trace for all threads:

Thread : com.apple.main-thread
0  libsystem_kernel.dylib         0x0000000198380c84 semaphore_timedwait_trap + 8
1  libdispatch.dylib              0x000000019825eaa4 _dispatch_group_wait_slow + 176
2  libdispatch.dylib              0x0000000198256dcc dispatch_block_wait + 244
3  BaseBoard                      0x000000018a2b536c -[NSObject(BaseBoard) bs_performSynchronously:timeout:] + 160
4  FrontBoardServices             0x000000018cb82178 -[FBSUIApplicationSystemService _getBadgeValue] + 184
5  FrontBoardServices             0x000000018cb823c0 -[FBSUIApplicationSystemService badgeNumber] + 24
6  Breakaway                      0x00000001003343e0 -[PFApplication iconBadgeNumber] + 558360
7  Breakaway                      0x000000010033441c -[PFApplication setIconBadgeNumber:] + 558420
8  Breakaway                      0x000000010032ef14 -[PFInstallation setObject:forKey:] + 536652
9  Breakaway                      0x00000001002df31c -[PFObject setObject:forKeyedSubscript:] + 210004
10 Breakaway                      0x0000000100332e74 -[PFObjectSubclassingController _forwardSetterInvocation:forProperty:withObject:] + 552876
11 Breakaway                      0x00000001003326d0 -[PFObjectSubclassingController forwardObjectInvocation:withObject:] + 550920
12 Breakaway                      0x00000001002e12a0 -[PFObject forwardInvocation:] + 218072
13 CoreFoundation                 0x0000000182e64a44 ___forwarding___ + 408
14 CoreFoundation                 0x0000000182d68dcc _CF_forwarding_prep_0 + 92
15 Breakaway                      0x00000001000602c0 static PushNotification.(clearNotificationsAndUpdateInstallationInfo(PushNotification.Type) -> () -> ()).(closure #1) (PushNotification.swift:94)
16 libdispatch.dylib              0x000000019824d7b0 _dispatch_call_block_and_release + 24
17 libdispatch.dylib              0x000000019824d770 _dispatch_client_callout + 16
18 libdispatch.dylib              0x0000000198252e20 _dispatch_main_queue_callback_4CF + 1844
19 CoreFoundation                 0x0000000182e18258 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
20 CoreFoundation                 0x0000000182e160c0 __CFRunLoopRun + 1628
21 CoreFoundation                 0x0000000182d44dc0 CFRunLoopRunSpecific + 384
22 GraphicsServices               0x000000018de98088 GSEventRunModal + 180
23 UIKit                          0x000000018841ef60 UIApplicationMain + 204
24 Breakaway                      0x00000001000eb68c main (AppDelegate.swift:15)
25 libdyld.dylib                  0x000000019827e8b8 start + 4

===

Thread : com.apple.libdispatch-manager
0  libsystem_kernel.dylib         0x000000019839c59c kevent_qos + 8
1  libdispatch.dylib              0x0000000198260a04 _dispatch_mgr_invoke + 232
2  libdispatch.dylib              0x000000019824f93c _dispatch_source_invoke + 50

===

Thread : com.apple.networking.connection.0x15ce4a6c0
0  libsystem_kernel.dylib         0x0000000198384b30 socket + 8
1  libsystem_network.dylib        0x00000001983f9760 netcore_create_control_socket + 56
2  libsystem_network.dylib        0x00000001983e21d4 get_host_counts + 72
3  libsystem_network.dylib        0x00000001983f9340 sa_dst_lookup + 912
4  libsystem_network.dylib        0x00000001983f8350 sa_dst_compare_internal + 120
5  libsystem_network.dylib        0x0000000198412470 tcp_connection_destination_list_insert_sorted + 92
6  libsystem_network.dylib        0x00000001983e7608 tcp_connection_destination_add + 224
7  libsystem_network.dylib        0x000000019840b258 tcp_connection_host_resolve_result + 1516
8  libsystem_dnssd.dylib          0x0000000198353cd4 handle_addrinfo_response + 436
9  libsystem_dnssd.dylib          0x000000019835200c DNSServiceProcessResult + 620
10 libdispatch.dylib              0x000000019824d770 _dispatch_client_callout + 16
11 libdispatch.dylib              0x00000001982642bc _dispatch_source_latch_and_call + 2556
12 libdispatch.dylib              0x000000019824fc64 _dispatch_source_invoke + 808
13 libdispatch.dylib              0x0000000198259930 _dispatch_queue_drain + 1332
14 libdispatch.dylib              0x0000000198251274 _dispatch_queue_invoke + 464
15 libdispatch.dylib              0x000000019825b62c _dispatch_root_queue_drain + 728
16 libdispatch.dylib              0x000000019825b34c _dispatch_worker_thread3 + 112
17 libsystem_pthread.dylib        0x0000000198461478 _pthread_wqthread + 1092
18 libsystem_pthread.dylib        0x0000000198461028 start_wqthread + 4

===

Thread : com.apple.CoreLocation.ConnectionClient.0x15cd89300.events
0  libsystem_kernel.dylib         0x0000000198380c84 semaphore_timedwait_trap + 8
1  libdispatch.dylib              0x000000019825e630 _dispatch_semaphore_wait_slow + 160
2  CoreLocation                   0x00000001835e6dc8 (null) + 628
3  CoreLocation                   0x00000001835eb83c (null) + 1176
4  CoreLocation                   0x0000000183625f38 (null) + 59072
5  CoreLocation                   0x0000000183623b8c (null) + 49940
6  CoreLocation                   0x0000000183623ac0 (null) + 49736
7  CoreLocation                   0x0000000183624d0c (null) + 54420
8  libxpc.dylib                   0x000000019849530c _xpc_connection_call_event_handler + 68
9  libxpc.dylib                   0x00000001984930b4 _xpc_connection_mach_event + 2132
10 libdispatch.dylib              0x000000019824d86c _dispatch_client_callout4 + 16
11 libdispatch.dylib              0x0000000198251b58 _dispatch_mach_msg_invoke + 656
12 libdispatch.dylib              0x0000000198259930 _dispatch_queue_drain + 1332
13 libdispatch.dylib              0x0000000198250c6c _dispatch_mach_invoke + 600
14 libdispatch.dylib              0x0000000198259930 _dispatch_queue_drain + 1332
15 libdispatch.dylib              0x0000000198251274 _dispatch_queue_invoke + 464
16 libdispatch.dylib              0x0000000198259930 _dispatch_queue_drain + 1332
17 libdispatch.dylib              0x0000000198251274 _dispatch_queue_invoke + 464
18 libdispatch.dylib              0x000000019824d770 _dispatch_client_callout + 16
19 libdispatch.dylib              0x000000019825bbb0 _dispatch_root_queue_drain + 2140
20 libdispatch.dylib              0x000000019825b34c _dispatch_worker_thread3 + 112
21 libsystem_pthread.dylib        0x0000000198461478 _pthread_wqthread + 1092
22 libsystem_pthread.dylib        0x0000000198461028 start_wqthread + 4

===

Thread : Thread
0  libsystem_kernel.dylib         0x000000019839bc0c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x0000000198461538 _pthread_wqthread + 1284
2  libsystem_pthread.dylib        0x0000000198461028 start_wqthread + 4

===

Thread : Crashed: com.parse.sqlite.db.queue
0  libsqlite3.dylib               0x0000000197f71f58 (null) + 9096
1  libsqlite3.dylib               0x0000000197f47bb0 (null) + 5848
2  libsqlite3.dylib               0x0000000197f47bb0 (null) + 5848
3  libsqlite3.dylib               0x0000000197fbafd4 (null) + 84548
4  libsqlite3.dylib               0x0000000197f2cc20 (null) + 10148
5  libsqlite3.dylib               0x0000000197f2c634 (null) + 8632
6  libsqlite3.dylib               0x0000000197f2b734 (null) + 4792
7  libsqlite3.dylib               0x0000000197f2afa4 (null) + 2856
8  libsqlite3.dylib               0x0000000197f2ac5c (null) + 2016
9  Breakaway                      0x0000000100343150 -[PFSQLiteDatabase _executeQueryAsync:withArgumentsInArray:cachingEnabled:] + 619144
10 Breakaway                      0x000000010016ea70 __55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 + 4296436336
11 libdispatch.dylib              0x000000019824d7b0 _dispatch_call_block_and_release + 24
12 libdispatch.dylib              0x000000019824d770 _dispatch_client_callout + 16
13 libdispatch.dylib              0x000000019825975c _dispatch_queue_drain + 864
14 libdispatch.dylib              0x0000000198251274 _dispatch_queue_invoke + 464
15 libdispatch.dylib              0x000000019825b62c _dispatch_root_queue_drain + 728
16 libdispatch.dylib              0x000000019825b34c _dispatch_worker_thread3 + 112
17 libsystem_pthread.dylib        0x0000000198461478 _pthread_wqthread + 1092
18 libsystem_pthread.dylib        0x0000000198461028 start_wqthread + 4

===

Thread : com.parse.PFPinningEventuallyQueue.processing
0  libsystem_kernel.dylib         0x000000019839afe8 __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x0000000198462cfc _pthread_cond_wait + 648
2  Foundation                     0x0000000183d0a14c -[NSCondition wait] + 240
3  Breakaway                      0x000000010016f448 -[BFTask waitUntilFinished] + 4296438856
4  Breakaway                      0x000000010031de0c -[BFTask(Private) waitForResult:withMainThreadWarning:] + 466756
5  Breakaway                      0x0000000100312d10 -[PFEventuallyQueue _runCommandsWithRetriesCount:] + 421448
6  libdispatch.dylib              0x000000019824d770 _dispatch_client_callout + 16
7  libdispatch.dylib              0x00000001982642bc _dispatch_source_latch_and_call + 2556
8  libdispatch.dylib              0x000000019824fc64 _dispatch_source_invoke + 808
9  libdispatch.dylib              0x0000000198259930 _dispatch_queue_drain + 1332
10 libdispatch.dylib              0x0000000198251274 _dispatch_queue_invoke + 464
11 libdispatch.dylib              0x000000019825b62c _dispatch_root_queue_drain + 728
12 libdispatch.dylib              0x000000019825b34c _dispatch_worker_thread3 + 112
13 libsystem_pthread.dylib        0x0000000198461478 _pthread_wqthread + 1092
14 libsystem_pthread.dylib        0x0000000198461028 start_wqthread + 4

===

Thread : com.twitter.crashlytics.mac.MachExceptionServer
0  Breakaway                      0x0000000100195c68 CLSProcessRecordAllThreads + 4296596584
1  Breakaway                      0x0000000100195c68 CLSProcessRecordAllThreads + 4296596584
2  Breakaway                      0x0000000100196118 CLSProcessRecordAllThreads + 4296597784
3  Breakaway                      0x0000000100180b48 CLSHandler + 4296510280
4  Breakaway                      0x0000000100177600 CLSMachExceptionServer + 4296472064
5  libsystem_pthread.dylib        0x0000000198463b3c _pthread_body + 156
6  libsystem_pthread.dylib        0x0000000198463aa0 _pthread_body + 154
7  libsystem_pthread.dylib        0x0000000198461030 thread_start + 4

===

Thread : com.parse.reachability
0  libsystem_kernel.dylib         0x000000019839afe8 __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x0000000198462cfc _pthread_cond_wait + 648
2  Foundation                     0x0000000183d0a14c -[NSCondition wait] + 240
3  Breakaway                      0x000000010016f448 -[BFTask waitUntilFinished] + 4296438856
4  Breakaway                      0x000000010031de0c -[BFTask(Private) waitForResult:withMainThreadWarning:] + 466756
5  Breakaway                      0x00000001003137ac -[PFEventuallyQueue setConnected:] + 424164
6  Breakaway                      0x000000010030fba0 __37-[PFReachability _notifyAllListeners]_block_invoke + 408792
7  libdispatch.dylib              0x000000019824d7b0 _dispatch_call_block_and_release + 24
8  libdispatch.dylib              0x000000019824d770 _dispatch_client_callout + 16
9  libdispatch.dylib              0x0000000198257fec _dispatch_async_redirect_invoke + 1920
10 libdispatch.dylib              0x000000019824d770 _dispatch_client_callout + 16
11 libdispatch.dylib              0x000000019825bbb0 _dispatch_root_queue_drain + 2140
12 libdispatch.dylib              0x000000019825b34c _dispatch_worker_thread3 + 112
13 libsystem_pthread.dylib        0x0000000198461478 _pthread_wqthread + 1092
14 libsystem_pthread.dylib        0x0000000198461028 start_wqthread + 4

===

Thread : com.crashlytics.CLSUserDefaults.io
0  libobjc.A.dylib                0x0000000197a524ec object_getClass + 46
1  CoreFoundation                 0x0000000182d4d43c CFDictionaryApplyFunction + 136
2  CoreFoundation                 0x0000000182e12258 __CFPropertyListIsValidAux + 448
3  CoreFoundation                 0x0000000182d5bb80 CFPropertyListCreateData + 84
4  Foundation                     0x0000000183ceb990 +[NSPropertyListSerialization dataWithPropertyList:format:options:error:] + 48
5  Foundation                     0x0000000183d147a8 -[NSDictionary(NSDictionary) writeToURL:atomically:] + 236
6  Breakaway                      0x00000001001a2450 __30-[CLSUserDefaults synchronize]_block_invoke + 4296647760
7  libdispatch.dylib              0x000000019824d770 _dispatch_client_callout + 16
8  libdispatch.dylib              0x00000001982589c4 _dispatch_barrier_sync_f_invoke + 100
9  Breakaway                      0x00000001001a22d8 -[CLSUserDefaults synchronize] + 4296647384
10 Breakaway                      0x0000000100186928 __51-[CLSAnalyticsController maintainSessionFragments:]_block_invoke_5 + 4296534312
11 Breakaway                      0x0000000100186288 __44-[CLSAnalyticsController cleanUpRepository:]_block_invoke + 4296532616
12 libdispatch.dylib              0x000000019824d7b0 _dispatch_call_block_and_release + 24
13 libdispatch.dylib              0x000000019824d770 _dispatch_client_callout + 16
14 libdispatch.dylib              0x000000019825975c _dispatch_queue_drain + 864
15 libdispatch.dylib              0x0000000198251274 _dispatch_queue_invoke + 464
16 libdispatch.dylib              0x000000019825b62c _dispatch_root_queue_drain + 728
17 libdispatch.dylib              0x000000019825b34c _dispatch_worker_thread3 + 112
18 libsystem_pthread.dylib        0x0000000198461478 _pthread_wqthread + 1092
19 libsystem_pthread.dylib        0x0000000198461028 start_wqthread + 4

===

Thread : com.apple.aggregated.requestQueue
0  libsystem_kernel.dylib         0x0000000198380c30 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x0000000198380aac mach_msg + 72
2  libxpc.dylib                   0x00000001984a71c8 xpc_pipe_routine + 256
3  libxpc.dylib                   0x000000019849a2f0 _xpc_interface_routine + 200
4  libxpc.dylib                   0x000000019849a6c8 _xpc_look_up_endpoint + 224
5  libxpc.dylib                   0x0000000198494004 _xpc_connection_bootstrap_look_up_slow + 212
6  libxpc.dylib                   0x0000000198493cfc _xpc_connection_init + 536
7  libxpc.dylib                   0x0000000198493ad4 _xpc_connection_resume_init + 20
8  libdispatch.dylib              0x000000019824d770 _dispatch_client_callout + 16
9  libdispatch.dylib              0x000000019825975c _dispatch_queue_drain + 864
10 libdispatch.dylib              0x0000000198251274 _dispatch_queue_invoke + 464
11 libdispatch.dylib              0x000000019825b62c _dispatch_root_queue_drain + 728
12 libdispatch.dylib              0x000000019825b34c _dispatch_worker_thread3 + 112
13 libsystem_pthread.dylib        0x0000000198461478 _pthread_wqthread + 1092
14 libsystem_pthread.dylib        0x0000000198461028 start_wqthread + 4

===

Thread : com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x0000000198380c30 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x0000000198380aac mach_msg + 72
2  CoreFoundation                 0x0000000182e18168 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x0000000182e15e6c __CFRunLoopRun + 1032
4  CoreFoundation                 0x0000000182d44dc0 CFRunLoopRunSpecific + 384
5  CFNetwork                      0x00000001825e2074 +[NSURLConnection(Loader) _resourceLoadLoop:] + 412
6  Foundation                     0x0000000183d9f138 __NSThread__start__ + 1000
7  libsystem_pthread.dylib        0x0000000198463b3c _pthread_body + 156
8  libsystem_pthread.dylib        0x0000000198463aa0 _pthread_body + 154
9  libsystem_pthread.dylib        0x0000000198461030 thread_start + 4

===

Thread : Thread
0  libsystem_kernel.dylib         0x000000019839bc0c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x0000000198461538 _pthread_wqthread + 1284
2  libsystem_pthread.dylib        0x0000000198461028 start_wqthread + 4

===

Thread : com.apple.CFSocket.private
0  libsystem_kernel.dylib         0x000000019839b408 __select + 8
1  CoreFoundation                 0x0000000182e1e6d0 __CFSocketManager + 648
2  libsystem_pthread.dylib        0x0000000198463b3c _pthread_body + 156
3  libsystem_pthread.dylib        0x0000000198463aa0 _pthread_body + 154
4  libsystem_pthread.dylib        0x0000000198461030 thread_start + 4

===

Thread : Thread
0  libsystem_kernel.dylib         0x000000019839bc0c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x0000000198461538 _pthread_wqthread + 1284
2  libsystem_pthread.dylib        0x0000000198461028 start_wqthread + 4

===

Thread : Thread
0  libsystem_pthread.dylib        0x0000000198461024 start_wqthread + 14

===

Thread : Thread
0  libsystem_kernel.dylib         0x000000019839bc0c __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x0000000198461538 _pthread_wqthread + 1284
2  libsystem_pthread.dylib        0x0000000198461028 start_wqthread + 4
nlutsenko commented 9 years ago

Any exception message printed to the console? This helps, just trying to figure out whether it's something we assert on or something completely different. Also - what is the crash signal that you are getting?

rdbayer commented 9 years ago

Unfortunately, we haven't yet experienced this with a debugger attached. The above is the stack trace reported by Crashlytics. The exception itself is:

EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x000000006e6f736a

Apoll0 commented 9 years ago

Hello! Had the same issue two times already. Here is Crashlytics log: parseissue

samscam commented 9 years ago

A big +1 on this. Same as @rdbayer we've not experienced it in the debugger, only via crashlytics from real users.

I've just had it crash in the debugger for the first time. I realise my code is calling PFUser.currentUser() almost immediately after a saveEventually() was called on another reference to the currentUser... Which sounds like a pretty bad idea now I look at it. I don't know if that's the actual cause but I'm going to change that and see if it stops doing it.

However one would hope that Parse/sqlite wouldn't bomb out in those circumstances. Here's what was going on in the debugger for me:

screen shot 2015-10-03 at 22 37 55

Will keep you posted...

samscam commented 9 years ago

Oh and here's my stack trace:

  thread #1: tid = 0x16b1cf, 0x000000019af2cd2c libsystem_kernel.dylib`syscall_thread_switch + 8, queue = 'com.apple.main-thread'
    frame #0: 0x000000019af2cd2c libsystem_kernel.dylib`syscall_thread_switch + 8
    frame #1: 0x000000019b009534 libsystem_platform.dylib`_os_lock_handoff_lock_slow + 120
    frame #2: 0x000000019af74920 libsystem_malloc.dylib`szone_free_definite_size + 684
    frame #3: 0x000000019a60a0e8 libobjc.A.dylib`object_dispose + 36
    frame #4: 0x000000018b40ecdc UIKit`-[UIClassSwapper initWithCoder:] + 284
    frame #5: 0x000000018b523bf0 UIKit`UINibDecoderDecodeObjectForValue + 672
    frame #6: 0x000000018b523938 UIKit`-[UINibDecoder decodeObjectForKey:] + 336
    frame #7: 0x000000018b40e95c UIKit`-[UIRuntimeConnection initWithCoder:] + 188
    frame #8: 0x000000018b523bf0 UIKit`UINibDecoderDecodeObjectForValue + 672
    frame #9: 0x000000018b523d68 UIKit`UINibDecoderDecodeObjectForValue + 1048
    frame #10: 0x000000018b523938 UIKit`-[UINibDecoder decodeObjectForKey:] + 336
    frame #11: 0x000000018b40dc90 UIKit`-[UINib instantiateWithOwner:options:] + 1220
    frame #12: 0x00000001000c4250 Knocker`ext.Knocker.ObjectiveC.UIView.instantiateFromNib (self=0x000000013a6a6860)() -> () + 300 at Utilities.swift:24
    frame #13: 0x00000001000c473c Knocker`@objc ext.Knocker.ObjectiveC.UIView.instantiateFromNib (ObjectiveC.UIView)() -> () + 40 at Utilities.swift:0
    frame #14: 0x00000001000aa6cc Knocker`Knocker.StatusView.commonInit (self=0x000000013a6a6860)() -> () + 52 at StatusView.swift:44
    frame #15: 0x00000001000aa338 Knocker`Knocker.StatusView.init (aDecoder=0x000000013889d400, self=0x000000013a6a6860)(coder : ObjectiveC.NSCoder) -> Swift.Optional<Knocker.StatusView> + 452 at StatusView.swift:35
    frame #16: 0x00000001000aa3c0 Knocker`@objc Knocker.StatusView.init (Knocker.StatusView.Type)(coder : ObjectiveC.NSCoder) -> Swift.Optional<Knocker.StatusView> + 52 at StatusView.swift:0
    frame #17: 0x000000018b40ecb8 UIKit`-[UIClassSwapper initWithCoder:] + 248
    frame #18: 0x000000018b523bf0 UIKit`UINibDecoderDecodeObjectForValue + 672
    frame #19: 0x000000018b523d68 UIKit`UINibDecoderDecodeObjectForValue + 1048
    frame #20: 0x000000018b523938 UIKit`-[UINibDecoder decodeObjectForKey:] + 336
    frame #21: 0x000000018b25bfb4 UIKit`-[UIView initWithCoder:] + 608
    frame #22: 0x000000018b523bf0 UIKit`UINibDecoderDecodeObjectForValue + 672
    frame #23: 0x000000018b523938 UIKit`-[UINibDecoder decodeObjectForKey:] + 336
    frame #24: 0x0000000186a2be10 Foundation`-[NSLayoutConstraint initWithCoder:] + 240
    frame #25: 0x000000018b523bf0 UIKit`UINibDecoderDecodeObjectForValue + 672
    frame #26: 0x000000018b523938 UIKit`-[UINibDecoder decodeObjectForKey:] + 336
    frame #27: 0x000000018b40e95c UIKit`-[UIRuntimeConnection initWithCoder:] + 188
    frame #28: 0x000000018b523bf0 UIKit`UINibDecoderDecodeObjectForValue + 672
    frame #29: 0x000000018b523d68 UIKit`UINibDecoderDecodeObjectForValue + 1048
    frame #30: 0x000000018b523938 UIKit`-[UINibDecoder decodeObjectForKey:] + 336
    frame #31: 0x000000018b40dc90 UIKit`-[UINib instantiateWithOwner:options:] + 1220
    frame #32: 0x000000018b2c6cfc UIKit`-[UIViewController _loadViewFromNibNamed:bundle:] + 376
    frame #33: 0x000000018b09bea8 UIKit`-[UIViewController loadView] + 176
    frame #34: 0x000000018af63258 UIKit`-[UIViewController loadViewIfRequired] + 144
    frame #35: 0x000000018b020804 UIKit`-[UINavigationController _layoutViewController:] + 72
    frame #36: 0x000000018b0206e8 UIKit`-[UINavigationController _updateScrollViewFromViewController:toViewController:] + 404
    frame #37: 0x000000018b01f93c UIKit`-[UINavigationController _startTransition:fromViewController:toViewController:] + 132
    frame #38: 0x000000018b01f500 UIKit`-[UINavigationController _startDeferredTransitionIfNeeded:] + 868
    frame #39: 0x000000018b01f128 UIKit`-[UINavigationController __viewWillLayoutSubviews] + 60
    frame #40: 0x000000018b01f090 UIKit`-[UILayoutContainerView layoutSubviews] + 208
    frame #41: 0x000000018af5f00c UIKit`-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 644
    frame #42: 0x000000018a765f14 QuartzCore`-[CALayer layoutSublayers] + 148
    frame #43: 0x000000018a760b20 QuartzCore`CA::Layer::layout_if_needed(CA::Transaction*) + 292
    frame #44: 0x000000018a7609e0 QuartzCore`CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
    frame #45: 0x000000018a76007c QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 252
    frame #46: 0x000000018a75fdd0 QuartzCore`CA::Transaction::commit() + 516
    frame #47: 0x000000018a7594bc QuartzCore`CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 80
    frame #48: 0x00000001859c3c30 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
    frame #49: 0x00000001859c19d4 CoreFoundation`__CFRunLoopDoObservers + 372
    frame #50: 0x00000001859c1e04 CoreFoundation`__CFRunLoopRun + 928
    frame #51: 0x00000001858f0dc0 CoreFoundation`CFRunLoopRunSpecific + 384
    frame #52: 0x0000000190a44088 GraphicsServices`GSEventRunModal + 180
    frame #53: 0x000000018afcaf60 UIKit`UIApplicationMain + 204
    frame #54: 0x00000001000d3ea4 Knocker`main + 136 at AppDelegate.swift:20
    frame #55: 0x000000019ae2a8b8 libdyld.dylib`start + 4

  thread #3: tid = 0x16b212, 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #0: 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x000000019b00d538 libsystem_pthread.dylib`_pthread_wqthread + 1284

  thread #4: tid = 0x16b213, 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #0: 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x000000019b00d538 libsystem_pthread.dylib`_pthread_wqthread + 1284

  thread #5: tid = 0x16b219, 0x000000019af4859c libsystem_kernel.dylib`kevent_qos + 8, queue = 'com.apple.libdispatch-manager'
    frame #0: 0x000000019af4859c libsystem_kernel.dylib`kevent_qos + 8
    frame #1: 0x00000001022be328 libdispatch.dylib`_dispatch_mgr_invoke + 232
    frame #2: 0x00000001022abfac libdispatch.dylib`_dispatch_mgr_thread + 52

  thread #6: tid = 0x16b222, 0x000000019af474e0 libsystem_kernel.dylib`__semwait_signal + 8, name = 'gputools.smt_poll.0x137eb4be0'
    frame #0: 0x000000019af474e0 libsystem_kernel.dylib`__semwait_signal + 8
    frame #1: 0x000000019ae65e2c libsystem_c.dylib`nanosleep + 212
    frame #2: 0x000000019ae65d4c libsystem_c.dylib`usleep + 68
    frame #3: 0x00000001023b8ae0 GPUToolsCore`smt_poll_thread_entry(void*) + 140
    frame #4: 0x000000019b00fb3c libsystem_pthread.dylib`_pthread_body + 156
    frame #5: 0x000000019b00faa0 libsystem_pthread.dylib`_pthread_start + 156

* thread #7: tid = 0x16b227, 0x000000019ab1df58 libsqlite3.dylib`___lldb_unnamed_function153$$libsqlite3.dylib + 96, queue = 'com.parse.sqlite.db.queue', stop reason = EXC_BAD_ACCESS (code=1, address=0x40000009a)
    frame #0: 0x000000019ab1df58 libsqlite3.dylib`___lldb_unnamed_function153$$libsqlite3.dylib + 96
    frame #1: 0x000000019ab0715c libsqlite3.dylib`___lldb_unnamed_function109$$libsqlite3.dylib + 104
    frame #2: 0x000000019aacfd68 libsqlite3.dylib`___lldb_unnamed_function13$$libsqlite3.dylib + 488
    frame #3: 0x000000019ab0704c libsqlite3.dylib`___lldb_unnamed_function108$$libsqlite3.dylib + 828
    frame #4: 0x000000019aaf9848 libsqlite3.dylib`___lldb_unnamed_function85$$libsqlite3.dylib + 21112
    frame #5: 0x000000019aad9794 libsqlite3.dylib`___lldb_unnamed_function40$$libsqlite3.dylib + 4196
    frame #6: 0x000000019aad8634 libsqlite3.dylib`___lldb_unnamed_function39$$libsqlite3.dylib + 284
    frame #7: 0x000000019aad7734 libsqlite3.dylib`___lldb_unnamed_function36$$libsqlite3.dylib + 240
    frame #8: 0x000000019aad6fa4 libsqlite3.dylib`___lldb_unnamed_function35$$libsqlite3.dylib + 536
    frame #9: 0x000000019aad6c5c libsqlite3.dylib`___lldb_unnamed_function34$$libsqlite3.dylib + 352
  * frame #10: 0x0000000100cf7658 Parse`-[PFSQLiteDatabase _executeQueryAsync:withArgumentsInArray:cachingEnabled:](self=0x0000000137fe2df0, _cmd="_executeQueryAsync:withArgumentsInArray:cachingEnabled:", sql=@"SELECT className, objectId FROM ParseObjects WHERE uuid = ?;", args=@"1 object", enableCaching=NO) + 340 at PFSQLiteDatabase.m:176
    frame #11: 0x0000000100cf7e78 Parse`__59-[PFSQLiteDatabase executeQueryAsync:withArgumentsInArray:]_block_invoke(.block_descriptor=<unavailable>) + 64 at PFSQLiteDatabase.m:221
    frame #12: 0x000000010078d6e4 Bolts`__37+[BFTask taskFromExecutor:withBlock:]_block_invoke(.block_descriptor=<unavailable>, task=0x000000013a6b3b70) + 80 at BFTask.m:174
    frame #13: 0x000000010078ecc0 Bolts`__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2(.block_descriptor=<unavailable>) + 124 at BFTask.m:336
    frame #14: 0x00000001022a9d70 libdispatch.dylib`_dispatch_call_block_and_release + 24
    frame #15: 0x00000001022a9d30 libdispatch.dylib`_dispatch_client_callout + 16
    frame #16: 0x00000001022b67f0 libdispatch.dylib`_dispatch_queue_drain + 1036
    frame #17: 0x00000001022ada20 libdispatch.dylib`_dispatch_queue_invoke + 464
    frame #18: 0x00000001022b8908 libdispatch.dylib`_dispatch_root_queue_drain + 760
    frame #19: 0x00000001022b8600 libdispatch.dylib`_dispatch_worker_thread3 + 132
    frame #20: 0x000000019b00d478 libsystem_pthread.dylib`_pthread_wqthread + 1092

  thread #9: tid = 0x16b239, 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #0: 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x000000019b00d538 libsystem_pthread.dylib`_pthread_wqthread + 1284

  thread #10: tid = 0x16b23a, 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #0: 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x000000019b00d538 libsystem_pthread.dylib`_pthread_wqthread + 1284

  thread #11: tid = 0x16b23b, 0x000000019af46fe8 libsystem_kernel.dylib`__psynch_cvwait + 8, queue = 'com.parse.PFPinningEventuallyQueue.processing'
    frame #0: 0x000000019af46fe8 libsystem_kernel.dylib`__psynch_cvwait + 8
    frame #1: 0x000000019b00ecfc libsystem_pthread.dylib`_pthread_cond_wait + 648
    frame #2: 0x00000001868b614c Foundation`-[NSCondition wait] + 240
    frame #3: 0x000000010078fdfc Bolts`-[BFTask waitUntilFinished](self=0x000000013905b1d0, _cmd="waitUntilFinished") + 404 at BFTask.m:441
    frame #4: 0x0000000100c102b0 Parse`-[BFTask(self=0x000000013905b1d0, _cmd="waitForResult:withMainThreadWarning:", error=domain: nil - code: 7005225348, warningEnabled=YES) waitForResult:withMainThreadWarning:] + 68 at BFTask+Private.m:105
    frame #5: 0x0000000100c10260 Parse`-[BFTask(self=0x000000013905b1d0, _cmd="waitForResult:", error=domain: nil - code: 7005225348) waitForResult:] + 56 at BFTask+Private.m:100
    frame #6: 0x0000000100c43834 Parse`-[PFEventuallyQueue _runCommandsWithRetriesCount:](self=0x0000000139091e10, _cmd="_runCommandsWithRetriesCount:", retriesCount=5) + 1172 at PFEventuallyQueue.m:251
    frame #7: 0x0000000100c43394 Parse`-[PFEventuallyQueue _runCommands](self=0x0000000139091e10, _cmd="_runCommands") + 256 at PFEventuallyQueue.m:215
    frame #8: 0x0000000100c42f74 Parse`__26-[PFEventuallyQueue start]_block_invoke(.block_descriptor=<unavailable>) + 48 at PFEventuallyQueue.m:180
    frame #9: 0x00000001022a9d30 libdispatch.dylib`_dispatch_client_callout + 16
    frame #10: 0x00000001022c200c libdispatch.dylib`_dispatch_source_latch_and_call + 2848
    frame #11: 0x00000001022ac2d4 libdispatch.dylib`_dispatch_source_invoke + 808
    frame #12: 0x00000001022b6a0c libdispatch.dylib`_dispatch_queue_drain + 1576
    frame #13: 0x00000001022ada20 libdispatch.dylib`_dispatch_queue_invoke + 464
    frame #14: 0x00000001022b8908 libdispatch.dylib`_dispatch_root_queue_drain + 760
    frame #15: 0x00000001022b8600 libdispatch.dylib`_dispatch_worker_thread3 + 132
    frame #16: 0x000000019b00d478 libsystem_pthread.dylib`_pthread_wqthread + 1092

  thread #12: tid = 0x16b247, 0x000000019af2cc30 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.NSURLConnectionLoader'
    frame #0: 0x000000019af2cc30 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x000000019af2caac libsystem_kernel.dylib`mach_msg + 72
    frame #2: 0x00000001859c4168 CoreFoundation`__CFRunLoopServiceMachPort + 196
    frame #3: 0x00000001859c1e6c CoreFoundation`__CFRunLoopRun + 1032
    frame #4: 0x00000001858f0dc0 CoreFoundation`CFRunLoopRunSpecific + 384
    frame #5: 0x000000018518e074 CFNetwork`+[NSURLConnection(Loader) _resourceLoadLoop:] + 412
    frame #6: 0x000000018694b138 Foundation`__NSThread__start__ + 1000
    frame #7: 0x000000019b00fb3c libsystem_pthread.dylib`_pthread_body + 156
    frame #8: 0x000000019b00faa0 libsystem_pthread.dylib`_pthread_start + 156

  thread #13: tid = 0x16b248, 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #0: 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x000000019b00d538 libsystem_pthread.dylib`_pthread_wqthread + 1284

  thread #14: tid = 0x16b249, 0x000000019af2cc30 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.mixpanel.WebSocket.NetworkThread'
    frame #0: 0x000000019af2cc30 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x000000019af2caac libsystem_kernel.dylib`mach_msg + 72
    frame #2: 0x00000001859c4168 CoreFoundation`__CFRunLoopServiceMachPort + 196
    frame #3: 0x00000001859c1e6c CoreFoundation`__CFRunLoopRun + 1032
    frame #4: 0x00000001858f0dc0 CoreFoundation`CFRunLoopRunSpecific + 384
    frame #5: 0x00000001868647ec Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 308
    frame #6: 0x0000000100ad4430 Mixpanel`-[_MPRunLoopThread main](self=0x0000000137fde810, _cmd="main") + 348 at MPWebSocket.m:1774
    frame #7: 0x000000018694b138 Foundation`__NSThread__start__ + 1000
    frame #8: 0x000000019b00fb3c libsystem_pthread.dylib`_pthread_body + 156
    frame #9: 0x000000019b00faa0 libsystem_pthread.dylib`_pthread_start + 156

  thread #15: tid = 0x16b24a, 0x000000019af2cc30 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'GAIThread'
    frame #0: 0x000000019af2cc30 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x000000019af2caac libsystem_kernel.dylib`mach_msg + 72
    frame #2: 0x00000001859c4168 CoreFoundation`__CFRunLoopServiceMachPort + 196
    frame #3: 0x00000001859c1e6c CoreFoundation`__CFRunLoopRun + 1032
    frame #4: 0x00000001858f0dc0 CoreFoundation`CFRunLoopRunSpecific + 384
    frame #5: 0x00000001868647ec Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 308
    frame #6: 0x00000001868b9e14 Foundation`-[NSRunLoop(NSRunLoop) run] + 88
    frame #7: 0x0000000100120138 Knocker`+[GAI threadMain:] + 72
    frame #8: 0x000000018694b138 Foundation`__NSThread__start__ + 1000
    frame #9: 0x000000019b00fb3c libsystem_pthread.dylib`_pthread_body + 156
    frame #10: 0x000000019b00faa0 libsystem_pthread.dylib`_pthread_start + 156

  thread #16: tid = 0x16b24b, 0x000000019af2cc6c libsystem_kernel.dylib`semaphore_wait_trap + 8, queue = 'com.mixpanel.3f094181b38c503b015e3605f31d92fc.0x137fcaf80'
    frame #0: 0x000000019af2cc6c libsystem_kernel.dylib`semaphore_wait_trap + 8
    frame #1: 0x00000001022bbcbc libdispatch.dylib`_dispatch_semaphore_wait_slow + 244
    frame #2: 0x000000018516b014 CFNetwork`CFURLConnectionSendSynchronousRequest + 288
    frame #3: 0x000000018518e56c CFNetwork`+[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 120
    frame #4: 0x0000000100a7a100 Mixpanel`__58-[Mixpanel checkForDecideResponseWithCompletion:useCache:]_block_invoke(.block_descriptor=<unavailable>) + 1572 at Mixpanel.m:1227
    frame #5: 0x00000001022a9d70 libdispatch.dylib`_dispatch_call_block_and_release + 24
    frame #6: 0x00000001022a9d30 libdispatch.dylib`_dispatch_client_callout + 16
    frame #7: 0x00000001022b67f0 libdispatch.dylib`_dispatch_queue_drain + 1036
    frame #8: 0x00000001022ada20 libdispatch.dylib`_dispatch_queue_invoke + 464
    frame #9: 0x00000001022a9d30 libdispatch.dylib`_dispatch_client_callout + 16
    frame #10: 0x00000001022b8f38 libdispatch.dylib`_dispatch_root_queue_drain + 2344
    frame #11: 0x00000001022b8600 libdispatch.dylib`_dispatch_worker_thread3 + 132
    frame #12: 0x000000019b00d478 libsystem_pthread.dylib`_pthread_wqthread + 1092

  thread #17: tid = 0x16b24d, 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #0: 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x000000019b00d538 libsystem_pthread.dylib`_pthread_wqthread + 1284

  thread #18: tid = 0x16b252, 0x000000019af47408 libsystem_kernel.dylib`__select + 8, name = 'com.apple.CFSocket.private'
    frame #0: 0x000000019af47408 libsystem_kernel.dylib`__select + 8
    frame #1: 0x00000001859ca6d0 CoreFoundation`__CFSocketManager + 648
    frame #2: 0x000000019b00fb3c libsystem_pthread.dylib`_pthread_body + 156
    frame #3: 0x000000019b00faa0 libsystem_pthread.dylib`_pthread_start + 156

  thread #19: tid = 0x16b256, 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #0: 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x000000019b00d538 libsystem_pthread.dylib`_pthread_wqthread + 1284

  thread #20: tid = 0x16b258, 0x000000019af2cc6c libsystem_kernel.dylib`semaphore_wait_trap + 8
    frame #0: 0x000000019af2cc6c libsystem_kernel.dylib`semaphore_wait_trap + 8
    frame #1: 0x00000001022bbcbc libdispatch.dylib`_dispatch_semaphore_wait_slow + 244
    frame #2: 0x000000018516b014 CFNetwork`CFURLConnectionSendSynchronousRequest + 288
    frame #3: 0x000000018518e56c CFNetwork`+[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 120
    frame #4: 0x00000001010836e0 iRate`-[iRate checkForConnectivityInBackground](self=0x000000013908d880, _cmd="checkForConnectivityInBackground") + 948 at iRate.m:697
    frame #5: 0x000000018694b138 Foundation`__NSThread__start__ + 1000
    frame #6: 0x000000019b00fb3c libsystem_pthread.dylib`_pthread_body + 156
    frame #7: 0x000000019b00faa0 libsystem_pthread.dylib`_pthread_start + 156

  thread #21: tid = 0x16b259, 0x000000019af2cc30 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'NetworkLoad'
    frame #0: 0x000000019af2cc30 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x000000019af2caac libsystem_kernel.dylib`mach_msg + 72
    frame #2: 0x00000001859c4168 CoreFoundation`__CFRunLoopServiceMachPort + 196
    frame #3: 0x00000001859c1e6c CoreFoundation`__CFRunLoopRun + 1032
    frame #4: 0x00000001858f0dc0 CoreFoundation`CFRunLoopRunSpecific + 384
    frame #5: 0x00000001908871a0 GeoServices`_runNetworkThread + 428
    frame #6: 0x000000019b00fb3c libsystem_pthread.dylib`_pthread_body + 156
    frame #7: 0x000000019b00faa0 libsystem_pthread.dylib`_pthread_start + 156

  thread #22: tid = 0x16b25b, 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #0: 0x000000019af47c0c libsystem_kernel.dylib`__workq_kernreturn + 8
    frame #1: 0x000000019b00d538 libsystem_pthread.dylib`_pthread_wqthread + 1284
richardjrossiii commented 9 years ago

This definitely looks like an internal SQLite bug. Was there any particularly high memory pressure when you experienced this crash?

Also, what iOS versions are you seeing this crash on?

Because only one thread in the stack trace references SQLite, it doesn't look like concurrent modification (which SQLite doesn't support), but it could have been put in an invalid state from a previous query.

If you ever can make this reproduce consistently then we can definitely help more, but ATM with just sporadic crashes inside of a third party library for no apparent reason I'm not sure there's much we can do.

samscam commented 9 years ago

This definitely looks like an internal SQLite bug. Was there any particularly high memory pressure when you experienced this crash?

Memory pressure was pretty low - was just after application launch.

Also, what iOS versions are you seeing this crash on?

Both 8.x and 9.0.1

Because only one thread in the stack trace references SQLite, it doesn't look like concurrent modification (which SQLite doesn't support), but it could have been put in an invalid state from a previous query.

Yep...

If you ever can make this reproduce consistently then we can definitely help more, but ATM with just sporadic crashes inside of a third party library for no apparent reason I'm not sure there's much we can do.

Indeed, I do appreciate that I've only got a tenuous theory based on a smelly looking bit of my own code. Will obviously report back if I can pour more light on it from here.

reidmweber commented 9 years ago

I can reproduce this on a regular basis. I'm calling pinInBackgroundWithName every second like this:

      let activityData = PFObject(className:"ActivityData")
      activityData["activity"] = activity
      activityData["workoutTicks"] = ticks
      activityData["activityTicks"] = activityTicks
      activityData["data"] = data
      activityData.pinInBackgroundWithName("MyActivityData") { (success, error) -> Void in
         if !success{
            print ("Error saving data: \(data)" )
         }
      }

It usually happens after a minute or two.

stacetrace:


* thread #58: tid = 0x3f166, 0x000000019a575f58 libsqlite3.dylib`___lldb_unnamed_function153$$libsqlite3.dylib + 96, queue = 'com.parse.sqlite.db.queue', stop reason = EXC_BAD_ACCESS (code=1, address=0x200000000)
    frame #0: 0x000000019a575f58 libsqlite3.dylib`___lldb_unnamed_function153$$libsqlite3.dylib + 96
    frame #1: 0x000000019a55f15c libsqlite3.dylib`___lldb_unnamed_function109$$libsqlite3.dylib + 104
    frame #2: 0x000000019a527d68 libsqlite3.dylib`___lldb_unnamed_function13$$libsqlite3.dylib + 488
    frame #3: 0x000000019a55f0c0 libsqlite3.dylib`___lldb_unnamed_function108$$libsqlite3.dylib + 944
    frame #4: 0x000000019a551848 libsqlite3.dylib`___lldb_unnamed_function85$$libsqlite3.dylib + 21112
    frame #5: 0x000000019a531794 libsqlite3.dylib`___lldb_unnamed_function40$$libsqlite3.dylib + 4196
    frame #6: 0x000000019a530634 libsqlite3.dylib`___lldb_unnamed_function39$$libsqlite3.dylib + 284
    frame #7: 0x000000019a52f734 libsqlite3.dylib`___lldb_unnamed_function36$$libsqlite3.dylib + 240
    frame #8: 0x000000019a52efa4 libsqlite3.dylib`___lldb_unnamed_function35$$libsqlite3.dylib + 536
    frame #9: 0x000000019a52ec5c libsqlite3.dylib`___lldb_unnamed_function34$$libsqlite3.dylib + 352
  * frame #10: 0x0000000100d23310 Parse`-[PFSQLiteDatabase _executeQueryAsync:withArgumentsInArray:cachingEnabled:](self=0x000000013be33960, _cmd="_executeQueryAsync:withArgumentsInArray:cachingEnabled:", sql=@"SELECT className, objectId FROM ParseObjects WHERE uuid = ?;", args=@"1 object", enableCaching=NO) + 340 at PFSQLiteDatabase.m:176
    frame #11: 0x0000000100d23b30 Parse`__59-[PFSQLiteDatabase executeQueryAsync:withArgumentsInArray:]_block_invoke(.block_descriptor=<unavailable>) + 64 at PFSQLiteDatabase.m:221
    frame #12: 0x0000000100c14d78 Bolts`__37+[BFTask taskFromExecutor:withBlock:]_block_invoke(.block_descriptor=<unavailable>, task=0x000000013be81a50) + 80 at BFTask.m:174
    frame #13: 0x0000000100c16354 Bolts`__55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2(.block_descriptor=<unavailable>) + 124 at BFTask.m:336
    frame #14: 0x000000010211dd70 libdispatch.dylib`_dispatch_call_block_and_release + 24
    frame #15: 0x000000010211dd30 libdispatch.dylib`_dispatch_client_callout + 16
    frame #16: 0x000000010212a7f0 libdispatch.dylib`_dispatch_queue_drain + 1036
    frame #17: 0x0000000102121a20 libdispatch.dylib`_dispatch_queue_invoke + 464
    frame #18: 0x000000010211dd30 libdispatch.dylib`_dispatch_client_callout + 16
    frame #19: 0x000000010212cf38 libdispatch.dylib`_dispatch_root_queue_drain + 2344
    frame #20: 0x000000010212c600 libdispatch.dylib`_dispatch_worker_thread3 + 132
    frame #21: 0x000000019aa65478 libsystem_pthread.dylib`_pthread_wqthread + 1092
richardjrossiii commented 9 years ago

@reidmweber I just tried the following (ran for about 30 minutes on an iPhone 6 running iOS 8.4), and was unable to get the crash to happen:

_timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, dispatch_get_global_queue(0, 0));
dispatch_source_set_timer(_timer, DISPATCH_TIME_NOW, 0.01 * NSEC_PER_SEC, 0 * NSEC_PER_SEC);
dispatch_source_set_event_handler(_timer, ^{
    PFObject *activityData = [PFObject objectWithClassName:@"activityData"];
    activityData[@"activity"] = @1;
    activityData[@"workoutTicks"] = @2;
    activityData[@"activityTicks"] = @3;
    activityData[@"data"] = @"Data";

    [[activityData pinInBackgroundWithName:@"MyActivityData"] continueWithBlock:^id(BFTask<NSNumber *> *task) {
        if (task.error) {
            NSLog(@"Error saving data: %@", task.error);
        }

        NSLog(@"Saved Data Successfully!");

        return task;
    }];
});
dispatch_resume(_timer);

I think there's more going on here... What devices are you seeing this on? What does your activityData schema look like? How many of these objects do you have in your database in total? What other LDS queries are you making at the same time?

I'm wondering if the issue has to do with our SQLiteDatabaseResult usage, in which we may be improperly synchronizing when stepping the results of it, but I'm not 100% sure yet.

Will keep you guys updated as I keep investigating.

masonlee commented 9 years ago

I'm seeing this crash in crashlytics, too. Our app is using Parse for iOS v1.8.2. (I was not seeing in this in v1.7.4.)

I actually have two crashes for you from the 1.8.2 library. I think they may be related: http://crashes.to/s/2a39305994e http://crashes.to/s/362a0f6c9a3

I think it is worth noting that in our case we are doing the unpinning and pinning of parse objects on our own background thread, after retrieving objects from a cloud code function. Could be concurrent access issues?

Hope this helps.

nlutsenko commented 9 years ago

1.7.4 is quite old at this point and a lot of things changed (the current latest is 1.9.0), so I would really recommend updating.

masonlee commented 9 years ago

Our next release will use 1.9.0. Keep up the amazing work! For what it's worth-- someone else has this same crash issue on stackoverflow: http://stackoverflow.com/questions/32832800/parse-com-ios-sdk-crash-pfsqlitedatabase-m-line-178-pfsqlitedatabase-execute

reidmweber commented 9 years ago

I have since dispatched the call to pin to the main thread queue and haven't seen the problem since. I was on 1.8.5 and have upgraded to 1.9.0 but I haven't tested much on 1.9.0 yet.

samscam commented 8 years ago

Just to say, I'm still getting these in 1.9.0 - and changing my calls around made no difference.

cyril94440 commented 8 years ago

Same issue for me.. And my app is supposed to go in production. I am using cocoapods, and pinning.

markdStreetline commented 8 years ago

We are seeing this in our app too. Currently using 1.8.5 - using CocoaPods and pinning

seanhaufler commented 8 years ago

Seeing this (quite frequently) in our app as well. Using 1.8.5 with Cocoapods and pinning

levigroker commented 8 years ago

+1

We see this as well.

PFSQLiteDatabase.m line 176
-[PFSQLiteDatabase _executeQueryAsync:withArgumentsInArray:caching
        _ZNSt6vectorI18MDMemoryDescriptorN19google_breakpadPFC_16PageStdAllocatorIS0_EEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S4_EERKS0_ + 114236
        3   libsystem_platform.dylib            0x000000019b83593c _sigtramp + 52
        4   libsqlite3.dylib                    0x000000019b31d664 sqlite3_log + 45452
        5   libsqlite3.dylib                    0x000000019b31d664 sqlite3_log + 45452
        6   libsqlite3.dylib                    0x000000019b393994 sqlite3_intarray_bind + 136196
        7   libsqlite3.dylib                    0x000000019b321544 sqlite3_log + 61548
        8   libsqlite3.dylib                    0x000000019b3161dc sqlite3_log + 15620
        9   libsqlite3.dylib                    0x000000019b2f9794 sqlite3_exec + 13080
        10  libsqlite3.dylib                    0x000000019b2f8634 sqlite3_exec + 8632
        11  libsqlite3.dylib                    0x000000019b2f7734 sqlite3_exec + 4792
        12  libsqlite3.dylib                    0x000000019b2f6fa4 sqlite3_exec + 2856
        13  libsqlite3.dylib                    0x000000019b2f6c5c sqlite3_exec + 2016
richardjrossiii commented 8 years ago

Quick question: Has anyone seen this crash on any os other than iOS 7?

seanhaufler commented 8 years ago

Yes. Have seen it across iOS 7, 8, 9

markdStreetline commented 8 years ago

Yes we see this on all iOS versions up to iOS 9.1. Our app has gone live and we are seeing this crash quite often now. Here's a stack trace of all threads

0   libsqlite3.dylib 0x0000000199e1df58 sqlite3_get_table + 9092
1   libsqlite3.dylib 0x0000000199df3bb0 sqlite3_log + 5844
2   libsqlite3.dylib 0x0000000199e66fd4 sqlite3_intarray_bind + 84544
3   libsqlite3.dylib 0x0000000199dd8c20 sqlite3_exec + 10144
4   libsqlite3.dylib 0x0000000199dd8634 sqlite3_exec + 8628
5   libsqlite3.dylib 0x0000000199dd7734 sqlite3_exec + 4788
6   libsqlite3.dylib 0x0000000199dd6fa4 sqlite3_exec + 2852
7   libsqlite3.dylib 0x0000000199dd6c5c sqlite3_exec + 2012
8   Parker 0x00000001001fc8a8 -[PFSQLiteDatabase _executeQueryAsync:withArgumentsInArray:cachingEnabled:] (PFSQLiteDatabase.m:176)
9   Parker 0x0000000100170d04 __55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 (BFTask.m:336)
10  libdispatch.dylib 0x000000019a0f96e8 _dispatch_call_block_and_release + 20
11  libdispatch.dylib 0x000000019a0f96a8 _dispatch_client_callout + 1212    
libdispatch.dylib 0x000000019a1056ec _dispatch_queue_drain + 860
13  libdispatch.dylib 0x000000019a0fd1ac _dispatch_queue_invoke + 460
14  libdispatch.dylib 0x000000019a1075bc _dispatch_root_queue_drain + 724
15  libdispatch.dylib 0x000000019a1072dc _dispatch_worker_thread3 + 108
16  libsystem_pthread.dylib 0x000000019a30d470 _pthread_wqthread + 1088
17  libsystem_pthread.dylib 0x000000019a30d020 start_wqthread + 0
11 other threads

Thread: Unknown Name

0   libsystem_kernel.dylib 0x000000019a22ca40 mach_msg_trap + 4
1   CoreFoundation 0x00000001843f4108 __CFRunLoopServiceMachPort + 192
2   CoreFoundation 0x00000001843f1e0c __CFRunLoopRun + 1028
3   CoreFoundation 0x0000000184320ca0 CFRunLoopRunSpecific + 380
4   GraphicsServices 0x000000018f8a4088 GSEventRunModal + 176
5   UIKit 0x0000000189a38ffc UIApplicationMain + 200
6   Parker 0x00000001000bd234 main (main.m:16)
7   libdyld.dylib 0x000000019a12a8b8 start + 0

Thread: Unknown Name

0   libsystem_kernel.dylib 0x000000019a2484fc kevent_qos + 4
1   libdispatch.dylib 0x000000019a0fb874 _dispatch_mgr_thread + 48

Thread: Unknown Name

0   libsystem_kernel.dylib 0x000000019a22ca40 mach_msg_trap + 4
1   CoreFoundation 0x00000001843f4108 __CFRunLoopServiceMachPort + 192
2   CoreFoundation 0x00000001843f1e0c __CFRunLoopRun + 1028
3   CoreFoundation 0x0000000184320ca0 CFRunLoopRunSpecific + 380
4   CFNetwork 0x0000000183bb9b84 +[NSURLConnection(Loader) _resourceLoadLoop:] + 408
5   Foundation 0x000000018537fc80 __NSThread__start__ + 996
6   libsystem_pthread.dylib 0x000000019a30fb28 _pthread_body + 152
7   libsystem_pthread.dylib 0x000000019a30fa8c _pthread_start + 152
8   libsystem_pthread.dylib 0x000000019a30d028 thread_start + 0

Thread: Unknown Name

0   libsystem_kernel.dylib 0x000000019a247368 select$DARWIN_EXTSN + 4
1   libsystem_pthread.dylib 0x000000019a30fb28 _pthread_body + 152
2   libsystem_pthread.dylib 0x000000019a30fa8c _pthread_start + 152
3   libsystem_pthread.dylib 0x000000019a30d028 thread_start + 0

Thread: Unknown Name

0   Parker 0x00000001004b24ec mach_exception_callback + 188
1   Parker 0x00000001004be860 exception_server_thread + 304
2   libsystem_pthread.dylib 0x000000019a30fb28 _pthread_body + 152
3   libsystem_pthread.dylib 0x000000019a30fa8c _pthread_start + 152
4   libsystem_pthread.dylib 0x000000019a30d028 thread_start + 0

Thread: Unknown Name

0   libsystem_kernel.dylib 0x000000019a247b6c __workq_kernreturn + 4
1   libsystem_pthread.dylib 0x000000019a30d020 start_wqthread + 0
Thread: Unknown Name

0   libsystem_kernel.dylib 0x000000019a247b6c __workq_kernreturn + 4
1   libsystem_pthread.dylib 0x000000019a30d020 start_wqthread + 0

Thread: Unknown Name

0   libsystem_kernel.dylib 0x000000019a247b6c __workq_kernreturn + 4
1   libsystem_pthread.dylib 0x000000019a30d020 start_wqthread + 0

Thread: Unknown Name

0   libsystem_kernel.dylib 0x000000019a247b6c __workq_kernreturn + 4
1   libsystem_pthread.dylib 0x000000019a30d020 start_wqthread + 0

Thread: Unknown Name

0   libsystem_kernel.dylib 0x000000019a246f48 __psynch_cvwait + 4
1   Foundation 0x00000001852eac2c -[NSCondition wait] + 236
2   Parker 0x0000000100171764 -[BFTask waitUntilFinished] (BFTask.m:441)
3   Parker 0x0000000100172aec -[BFTask(Private) waitForResult:withMainThreadWarning:] (BFTask+Private.m:105)
4   Parker 0x000000010018e540 -[PFEventuallyQueue _runCommandsWithRetriesCount:] (PFEventuallyQueue.m:251)
5   libdispatch.dylib 0x000000019a0f96a8 _dispatch_client_callout + 12
6   libdispatch.dylib 0x000000019a1102bc _dispatch_source_latch_and_call + 2552
7   libdispatch.dylib 0x000000019a0fbb9c _dispatch_source_invoke + 804
8   libdispatch.dylib 0x000000019a1058c0 _dispatch_queue_drain + 1328
9   libdispatch.dylib 0x000000019a0fd1ac _dispatch_queue_invoke + 460
10  libdispatch.dylib 0x000000019a1075bc _dispatch_root_queue_drain + 724
11  libdispatch.dylib 0x000000019a1072dc _dispatch_worker_thread3 + 108
12  libsystem_pthread.dylib 0x000000019a30d470 _pthread_wqthread + 1088
13  libsystem_pthread.dylib 0x000000019a30d020 start_wqthread + 0

Thread: Unknown Name

0   libsystem_kernel.dylib 0x000000019a247b6c __workq_kernreturn + 4
1   libsystem_pthread.dylib 0x000000019a30d020 start_wqthread + 0
titaniummick commented 8 years ago

+1 from me too..affecting 72 people in the past 1 week of deployment. The app is running on Parse 1.9.0. :( Any updates on this issue?

Stack trace here: Thread : Crashed: com.parse.sqlite.db.queue 0 libsqlite3.dylib 0x19a665f58 (null) + 9096 1 libsqlite3.dylib 0x19a63c4d0 (null) + 8184 2 libsqlite3.dylib 0x19a63c4d0 (null) + 8184 3 libsqlite3.dylib 0x19a6219d8 (null) + 13660 4 libsqlite3.dylib 0x19a620634 (null) + 8632 5 libsqlite3.dylib 0x19a61f734 (null) + 4792 6 libsqlite3.dylib 0x19a61efa4 (null) + 2856 7 libsqlite3.dylib 0x19a61ec5c (null) + 2016 8 Noonswoon 0x1002fc8b4 -PFSQLiteDatabase _executeQueryAsync:withArgumentsInArray:cachingEnabled: 9 Noonswoon 0x10018d03c __55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 (BFTask.m:336) 10 libdispatch.dylib 0x19a94d6e8 _dispatch_call_block_and_release + 24 11 libdispatch.dylib 0x19a94d6a8 _dispatch_client_callout + 16 12 libdispatch.dylib 0x19a9596ec _dispatch_queue_drain + 864 13 libdispatch.dylib 0x19a9511ac _dispatch_queue_invoke + 464 14 libdispatch.dylib 0x19a94d6a8 _dispatch_client_callout + 16 15 libdispatch.dylib 0x19a95bb40 _dispatch_root_queue_drain + 2140 16 libdispatch.dylib 0x19a95b2dc _dispatch_worker_thread3 + 112 17 libsystem_pthread.dylib 0x19ab61470 _pthread_wqthread + 1092 18 libsystem_pthread.dylib 0x19ab61020 start_wqthread + 4

nlutsenko commented 8 years ago

SDK version 1.10.0 is going to have the commit Pull Request linked above that hopefully should address the issue. The release is pending this week, so hold tight.

neirar commented 8 years ago

@nlutsenko, are there any updates? Parse 1.10.0 has been out for a bit now. Any news would be appreciated. There are many apps crashing in production (although rarely) because of this bug.

nlutsenko commented 8 years ago

@neirar 1.10.0 had the fix included. Do you see the issue on that version as well? If yes - could you share a stack trace here?

neirar commented 8 years ago

@nlutsenko I haven't seen the crash on 1.10.0. If I do I will make sure to include a stack trace here. What I was wondering is if this issue hasn't been closed because it is still occurring in 1.10.0. Is this issue still open as a precaution to keep in your radar?

seanhaufler commented 8 years ago

I am still experiencing the crash - although I do believe the crash happens less frequently in 1.10.0 than it did in earlier versions.

Thread 11 (crashed)
0   libsqlite3.dylib    sqlite3_get_table @ 0x25cc
1   libsqlite3.dylib    sqlite3_intarray_bind @ 0x356a0
2   libsqlite3.dylib    sqlite3_intarray_bind @ 0x356a0
3   libsqlite3.dylib    sqlite3_log @ 0xae2c
4   libsqlite3.dylib    sqlite3_log @ 0x3bb8
5   libsqlite3.dylib    sqlite3_exec @ 0x32dc
6   libsqlite3.dylib    sqlite3_exec @ 0x20a8
7   libsqlite3.dylib    sqlite3_exec @ 0x130c
8   libsqlite3.dylib    sqlite3_exec @ 0xb9c
9   libsqlite3.dylib    sqlite3_exec @ 0x844
10  appname -[PFSQLiteDatabase _executeQueryAsync:withArgumentsInArray:cachingEnabled:] @ 0xc4
11  appname __55-[BFTask continueWithExecutor:block:cancellationToken:]_block_invoke_2 @ 0x54
12  libdispatch.dylib   _dispatch_call_block_and_release @ 0x14
13  libdispatch.dylib   _dispatch_client_callout @ 0xc
14  libdispatch.dylib   _dispatch_queue_drain @ 0x4bc
15  libdispatch.dylib   _dispatch_queue_invoke @ 0x80
16  libdispatch.dylib   _dispatch_root_queue_drain @ 0x28c
17  libdispatch.dylib   _dispatch_worker_thread3 @ 0x68
18  libsystem_pthread.dylib _pthread_wqthread @ 0x32c
19  libsystem_pthread.dylib start_wqthread @ 0x0

Thread 0    0   libsystem_kernel.dylib
mach_msg_trap @ 0x8 1   libsystem_kernel.dylib
mach_msg @ 0x44 2   CoreFoundation
__CFRunLoopServiceMachPort @ 0xc4   3   CoreFoundation
__CFRunLoopRun @ 0x3a8  4   CoreFoundation
CFRunLoopRunSpecific @ 0x188    5   GraphicsServices
GSEventRunModal @ 0xa4  6   UIKit
UIApplicationMain @ 0x5cc   7   appname
main @ 0x8c 8   libdyld.dylib
start @ 0x0 Thread 1    0
libsystem_kernel.dylib  kevent64 @ 0x8  1
libdispatch.dylib   _dispatch_mgr_invoke @ 0x110    2
libdispatch.dylib   _dispatch_mgr_thread @ 0x30 Thread 2
0   libsystem_kernel.dylib  __workq_kernreturn @ 0x8
1   libsystem_pthread.dylib _pthread_wqthread @ 0x3dc
2   libsystem_pthread.dylib start_wqthread @ 0x0

Thread 3    0   libsystem_kernel.dylib
__workq_kernreturn @ 0x8    1   libsystem_pthread.dylib
_pthread_wqthread @ 0x3dc   2   libsystem_pthread.dylib
start_wqthread @ 0x0    Thread 4    0
libsystem_kernel.dylib  __workq_kernreturn @ 0x8    1
libsystem_pthread.dylib _pthread_wqthread @ 0x3dc   2
libsystem_pthread.dylib start_wqthread @ 0x0    Thread 5
0   libsystem_kernel.dylib  __workq_kernreturn @ 0x8
1   libsystem_pthread.dylib _pthread_wqthread @ 0x3dc
2   libsystem_pthread.dylib start_wqthread @ 0x0

Thread 6    0   libsystem_kernel.dylib
__workq_kernreturn @ 0x8    1   libsystem_pthread.dylib
_pthread_wqthread @ 0x3dc   2   libsystem_pthread.dylib
start_wqthread @ 0x0    Thread 7    0
libsystem_kernel.dylib  __psynch_cvwait @ 0x8   1
libsystem_pthread.dylib _pthread_cond_wait @ 0x26c  2
Foundation  -[NSCondition wait] @ 0xf4  3
appname -[BFTask waitUntilFinished] @ 0xe8  4
appname -[BFTask(Private) waitForResult:withMainThreadWarning:] @ 0x2c  5
appname -[PFQuery findObjects:] @ 0x34  6
appname _TTSf4d___TZFC5appname10AllUpdates22initFromLocalDatastorefMS0_FT_GSqS0__ @ 0x1cc   7
appname _TFFC5appname11AppDelegate23loadAllUpdatesFromCacheFS0_FT_T_U_FT_T_ @ 0x20  8
libdispatch.dylib   _dispatch_call_block_and_release @ 0x14 9
libdispatch.dylib   _dispatch_client_callout @ 0xc  10
libdispatch.dylib   _dispatch_root_queue_drain @ 0x474  11
libdispatch.dylib   _dispatch_worker_thread3 @ 0x68 12
libsystem_pthread.dylib _pthread_wqthread @ 0x32c   13
libsystem_pthread.dylib start_wqthread @ 0x0    Thread 8
0   libsystem_kernel.dylib  __workq_kernreturn @ 0x8
1   libsystem_pthread.dylib _pthread_wqthread @ 0x3dc
2   libsystem_pthread.dylib start_wqthread @ 0x0

Thread 9    0   CoreFoundation
CFRelease @ 0x190   1   CoreFoundation
CFRelease @ 0x188   2   CoreFoundation
__CFBasicHashDrain @ 0x118  3   CoreFoundation
CFRelease @ 0x144   4   CoreFoundation
__CFArrayReleaseValues @ 0xf0   5   CoreFoundation
CFRelease @ 0x144   6   CoreFoundation
__CFBasicHashDrain @ 0x118  7   CoreFoundation
CFRelease @ 0x144   8   CoreFoundation
__CFArrayReleaseValues @ 0xf0   9   CoreFoundation
CFRelease @ 0x144   10  CoreFoundation
__CFBasicHashDrain @ 0x118  11  CoreFoundation
CFRelease @ 0x144   12  libobjc.A.dylib
(anonymous namespace)::AutoreleasePoolPage::pop(void*) @ 0x230  13  libdispatch.dylib
_dispatch_root_queue_drain @ 0x5d0  14  libdispatch.dylib
_dispatch_worker_thread3 @ 0x68 15  libsystem_pthread.dylib
_pthread_wqthread @ 0x32c   16  libsystem_pthread.dylib
start_wqthread @ 0x0    Thread 10   0
libsystem_kernel.dylib  __workq_kernreturn @ 0x8    1
libsystem_pthread.dylib _pthread_wqthread @ 0x3dc   2
libsystem_pthread.dylib start_wqthread @ 0x0    Thread 12
0   libsystem_kernel.dylib  __workq_kernreturn @ 0x8
1   libsystem_pthread.dylib _pthread_wqthread @ 0x3dc
2   libsystem_pthread.dylib start_wqthread @ 0x0

Thread 13   0   libsystem_kernel.dylib
mach_msg_trap @ 0x8 1   libsystem_kernel.dylib
mach_msg @ 0x44 2   CoreFoundation
__CFRunLoopServiceMachPort @ 0xc4   3   CoreFoundation
__CFRunLoopRun @ 0x3a8  4   CoreFoundation
CFRunLoopRunSpecific @ 0x188    5   CFNetwork
+[NSURLConnection(Loader) _resourceLoadLoop:] @ 0x1b4   6   Foundation
__NSThread__main__ @ 0x42c  7   libsystem_pthread.dylib
_pthread_body @ 0xa0    8   libsystem_pthread.dylib
_pthread_start @ 0x9c   9   libsystem_pthread.dylib
thread_start @ 0x0  Thread 14   0
libsystem_kernel.dylib  __workq_kernreturn @ 0x8    1
libsystem_pthread.dylib _pthread_wqthread @ 0x3dc   2
libsystem_pthread.dylib start_wqthread @ 0x0    Thread 15
0   libsystem_kernel.dylib  __workq_kernreturn @ 0x8
1   libsystem_pthread.dylib _pthread_wqthread @ 0x3dc
2   libsystem_pthread.dylib start_wqthread @ 0x0

Thread 16   0   libsystem_kernel.dylib
__select @ 0x8  1   CoreFoundation
__CFSocketManager @ 0x290   2   libsystem_pthread.dylib
_pthread_body @ 0xa0    3   libsystem_pthread.dylib
_pthread_start @ 0x9c   4   libsystem_pthread.dylib
thread_start @ 0x0  Thread 17   0
libsystem_kernel.dylib  semaphore_wait_trap @ 0x8   1
libdispatch.dylib   _dispatch_semaphore_wait_slow @ 0xfc    2
MediaToolbox    fpa_AsyncMovieControlThread @ 0x7a0 3
CoreMedia   figThreadMain @ 0xf4    4
libsystem_pthread.dylib _pthread_body @ 0xa0    5
libsystem_pthread.dylib _pthread_start @ 0x9c   6
libsystem_pthread.dylib thread_start @ 0x0  Thread 18
0   libsystem_kernel.dylib  mach_msg_trap @ 0x8
1   libsystem_kernel.dylib  mach_msg @ 0x44
2   CoreFoundation  __CFRunLoopServiceMachPort @ 0xc4
3   CoreFoundation  __CFRunLoopRun @ 0x3a8
4   CoreFoundation  CFRunLoopRunSpecific @ 0x188
5   libAVFAudio.dylib   GenericRunLoopThread::Entry(void*) @ 0xa0
6   libAVFAudio.dylib   CAPThread::Entry(CAPThread*) @ 0x74
7   libsystem_pthread.dylib _pthread_body @ 0xa0
8   libsystem_pthread.dylib _pthread_start @ 0x9c
9
libsystem_pthread.dylib
thread_start @ 0x0
ShawnBaek commented 7 years ago

Same here

TomWFox commented 5 years ago

@ShawnBaek are you still experiencing this issue?