couchbaselabs / ToDoLite-iOS

To-Do list sample app for Couchbase Lite, native iOS version
85 stars 41 forks source link

Docs stop pushing, new tasks not showing, all lists are empty #65

Closed tleyden closed 8 years ago

tleyden commented 8 years ago

Steps to reproduce:

Client logs: https://gist.github.com/tleyden/21059650a1aa9e5508a3

tleyden commented 8 years ago

Looks like the couchbase lite thread is blocked here:


* thread #8: tid = 0xa41aff, 0x000000010a24a9b0 ToDoLite`-[CBLGZip addBytes:length:onOutput:](self=0x00007fe062813a00, _cmd="{\"results\":[\r\n", bytes=<unavailable>, length=0, onOutput=<unavailable>) + 139 at CBLGZip.m:87, name = 'CouchbaseLite'
  * frame #0: 0x000000010a24a9b0 ToDoLite`-[CBLGZip addBytes:length:onOutput:](self=0x00007fe062813a00, _cmd="{\"results\":[\r\n", bytes=<unavailable>, length=0, onOutput=<unavailable>) + 139 at CBLGZip.m:87 [opt]
    frame #1: 0x000000010a28a37e ToDoLite`-[CBLSocketChangeTracker readGzippedBytes:length:](self=0x00007fe06248f920, _cmd=<unavailable>, bytes=<unavailable>, length=<unavailable>) + 136 at CBLSocketChangeTracker.m:197 [opt]
    frame #2: 0x000000010a28a667 ToDoLite`-[CBLSocketChangeTracker handleEOF](self=0x00007fe06248f920, _cmd=<unavailable>) + 113 at CBLSocketChangeTracker.m:234 [opt]
    frame #3: 0x000000010a28ab1d ToDoLite`-[CBLSocketChangeTracker stream:handleEvent:](self=<unavailable>, _cmd=<unavailable>, stream=<unavailable>, eventCode=<unavailable>) + 147 at CBLSocketChangeTracker.m:321 [opt]
    frame #4: 0x000000010b6c7a44 CoreFoundation`_signalEventSync + 180
    frame #5: 0x000000010b6fbd4e CoreFoundation`_cfstream_shared_signalEventSync + 478
    frame #6: 0x000000010b689a31 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #7: 0x000000010b67f8d7 CoreFoundation`__CFRunLoopDoSources0 + 423
    frame #8: 0x000000010b67ee13 CoreFoundation`__CFRunLoopRun + 867
    frame #9: 0x000000010b67e828 CoreFoundation`CFRunLoopRunSpecific + 488
    frame #10: 0x000000010adc32f1 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 267
    frame #11: 0x000000010a235835 ToDoLite`-[CBL_RunLoopServer runServerThread](self=0x00007fe06245f350, _cmd=<unavailable>) + 312 at CBL_Server.m:190 [opt]
    frame #12: 0x000000010ae60dfb Foundation`__NSThread__start__ + 1198
    frame #13: 0x000000010e02805a libsystem_pthread.dylib`_pthread_body + 131
    frame #14: 0x000000010e027fd7 libsystem_pthread.dylib`_pthread_start + 176
    frame #15: 0x000000010e0253ed libsystem_pthread.dylib`thread_start + 13

Full bt all output:

https://gist.github.com/tleyden/382330caca9efa964188

Every time I hit pause or set a breakpoint, the CouchbaseLite thread seems stuck here.

tleyden commented 8 years ago

Moved to https://github.com/couchbase/couchbase-lite-ios/issues/1101