RxDataSources icon indicating copy to clipboard operation
RxDataSources copied to clipboard

Exception on UITableView endUpdate

Open morisk opened this issue 6 years ago • 0 comments

Hi guys, Got this exception, can't reproduce it, happens from time to time.

Could be caused by me not releasing memory properly and pending animation happens when it shouldn't be?

- RxCocoa 4.4.2
- RxDataSources 3.1.0
- RxSwift 4.4.2
- RxSwiftExt 3.4.0
OS Version:          iPhone OS 12.2 (16E227)

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                	0x1da4d4518 __exceptionPreprocess + 228 (NSException.m:172)
1   libobjc.A.dylib               	0x1d96af9f8 objc_exception_throw + 56 (objc-exception.mm:557)
2   CoreFoundation                	0x1da3ee148 +[NSException raise:format:arguments:] + 104 (NSException.m:136)
3   Foundation                    	0x1daeb11c8 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 112 (NSException.m:157)
4   UIKitCore                     	0x206ab70d4 -[UITableView _endCellAnimationsWithContext:] + 6380 (UITableView.m:1821)
5   UIKitCore                     	0x206acf4e8 -[UITableView endUpdates] + 88 (UITableView.m:6864)
6   RxDataSources                 	0x105b2c714 closure #1 in closure #1 in RxTableViewSectionedAnimatedDataSource.tableView(_:observedEvent:) + 700 (<compiler-generated>:0)
7   RxDataSources                 	0x105b2c7bc thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
8   libdispatch.dylib             	0x1d9f14a38 _dispatch_call_block_and_release + 24 (init.c:1372)
9   libdispatch.dylib             	0x1d9f157d4 _dispatch_client_callout + 16 (object.m:511)
10  libdispatch.dylib             	0x1d9ec3004 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068 (inline_internal.h:2441)
11  CoreFoundation                	0x1da465ec0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1813)
12  CoreFoundation                	0x1da460df8 __CFRunLoopRun + 1924 (CFRunLoop.c:3113)
13  CoreFoundation                	0x1da460354 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
14  GraphicsServices              	0x1dc66079c GSEventRunModal + 104 (GSEvent.c:2245)
15  UIKitCore                     	0x2068d3b68 UIApplicationMain + 212 (UIApplication.m:4353)
16  Mailbook                      	0x104fde358 main + 68 (AppDelegate.swift:20)
17  libdyld.dylib                 	0x1d9f268e0 start + 4

Thread 0 name:
Thread 0 Crashed:
0   libsystem_kernel.dylib        	0x00000001da0720dc __pthread_kill + 8
1   libsystem_pthread.dylib       	0x00000001da0eb094 pthread_kill$VARIANT$mp + 380 (pthread.c:1492)
2   libsystem_c.dylib             	0x00000001d9fcbf4c __abort + 152 (abort.c:131)
3   libsystem_c.dylib             	0x00000001d9fcbeb4 abort + 152 (abort.c:102)
4   libc++abi.dylib               	0x00000001d9698788 abort_message + 132 (abort_message.cpp:75)
5   libc++abi.dylib               	0x00000001d9698934 default_terminate_handler() + 308 (cxa_default_handlers.cpp:68)
6   libobjc.A.dylib               	0x00000001d96afe00 _objc_terminate() + 124 (objc-exception.mm:693)
7   Mailbook                      	0x000000010503f2fc CLSTerminateHandler() + 348
8   libc++abi.dylib               	0x00000001d96a4838 std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:66)
9   libc++abi.dylib               	0x00000001d96a48c4 std::terminate() + 84 (cxa_handlers.cpp:97)
10  libdispatch.dylib             	0x00000001d9f157e8 _dispatch_client_callout + 36 (object.m:514)
11  libdispatch.dylib             	0x00000001d9ec3004 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068 (inline_internal.h:2441)
12  CoreFoundation                	0x00000001da465ec0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1813)
13  CoreFoundation                	0x00000001da460df8 __CFRunLoopRun + 1924 (CFRunLoop.c:3113)
14  CoreFoundation                	0x00000001da460354 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
15  GraphicsServices              	0x00000001dc66079c GSEventRunModal + 104 (GSEvent.c:2245)
16  UIKitCore                     	0x00000002068d3b68 UIApplicationMain + 212 (UIApplication.m:4353)
17  Mailbook                      	0x0000000104fde358 main + 68 (AppDelegate.swift:20)
18  libdyld.dylib  

morisk avatar Jun 03 '19 08:06 morisk