ml-opensource / FZAccordionTableView

FZAccordionTableView transforms your regular UITableView into an accordion table view.
MIT License
164 stars 43 forks source link

Tableview crashes on toggleSection method. #49

Open dipkasyap opened 6 years ago

dipkasyap commented 6 years ago
Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x191d981c0 __exceptionPreprocess
1  libobjc.A.dylib                0x1907d055c objc_exception_throw
2  CoreFoundation                 0x191d98094 +[NSException raise:format:]
3  Foundation                     0x19282282c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4  UIKit                          0x197f0bf78 __46-[UITableView _updateWithItems:updateSupport:]_block_invoke.996
5  UIKit                          0x197c0ed78 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:]
6  UIKit                          0x197c25b84 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:]
7  UIKit                          0x197dd81c0 -[UITableView _updateWithItems:updateSupport:]
8  UIKit                          0x197dbc6a4 -[UITableView _endCellAnimationsWithContext:]
9  Kim Beach                      0x10008f454 -[FZAccordionTableView toggleSection:withHeaderView:] (FZAccordionTableView.m:335)
10 Kim Beach                      0x10008ee84 -[FZAccordionTableView tappedHeaderView:] (FZAccordionTableView.m:262)
11 Kim Beach                      0x10008e3b8 -[FZAccordionTableViewHeaderView touchedHeaderView:] (FZAccordionTableView.m:69)
12 UIKit                          0x1981a7a2c -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:]
13 UIKit                          0x1981ab134 _UIGestureRecognizerSendTargetActions
14 UIKit                          0x197d6c804 _UIGestureRecognizerSendActions
15 UIKit                          0x197c0ad44 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:]
16 UIKit                          0x19819b178 _UIGestureEnvironmentUpdate
17 UIKit                          0x19819acd8 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:]
18 UIKit                          0x198199f94 -[UIGestureEnvironment _updateGesturesForEvent:window:]
19 UIKit                          0x197c08f60 -[UIWindow sendEvent:]
20 UIKit                          0x197bd9a44 -[UIApplication sendEvent:]
21 UIKit                          0x1983c6ea8 __dispatchPreprocessedEventFromEventQueue
22 UIKit                          0x1983c0910 __handleEventQueue
23 CoreFoundation                 0x191d46278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
24 CoreFoundation                 0x191d45bc0 __CFRunLoopDoSources0
25 CoreFoundation                 0x191d437c0 __CFRunLoopRun
26 CoreFoundation                 0x191c72048 CFRunLoopRunSpecific
27 GraphicsServices               0x1936f5198 GSEventRunModal
28 UIKit                          0x197c44818 -[UIApplication _run]
29 UIKit                          0x197c3f550 UIApplicationMain
30 Kim Beach                      0x10009453c main (AppDelegate.swift:19)
31 (Missing)                      0x190c545b8 (Missing)
kgaidis commented 6 years ago

Hi @dipkasyap

If I open the example app, and run it, I do not see any crashes.

Please provide information on how to reproduce this issue. That involves:

Probably the easiest would be to replicate it in the example project

dipkasyap commented 6 years ago

Sure , i will get to you soon

dipkasyap commented 6 years ago

Please review if the log helps some how


# Issue #: 51
# Issue ID: 5b13857c6007d59fcdbf4de1
# Session ID: ed360d6b17154f61b088eade5824e2c5_DNE_0_v2
# Date: 2018-06-03T06:07:00Z
# OS Version: 10.0.2 (14A456)
# Device: iPhone 5s
# RAM Free: 8.2%
# Disk Free: 1.4%

#0. Crashed: com.twitter.crashlytics.ios.exception
0  myappName                      0x10022e06c CLSProcessRecordAllThreads + 4297973868
1  myappName                      0x10022e06c CLSProcessRecordAllThreads + 4297973868
2  myappName                      0x10022df28 CLSProcessRecordAllThreads + 4297973544
3  myappName                      0x10021dc68 CLSHandler + 4297907304
4  myappName                      0x10022c074 __CLSExceptionRecord_block_invoke + 4297965684
5  libdispatch.dylib              0x1844dd1c0 _dispatch_client_callout + 16
6  libdispatch.dylib              0x1844ea860 _dispatch_barrier_sync_f_invoke + 84
7  myappName                      0x10022bb08 CLSExceptionRecord + 4297964296
8  myappName                      0x10022b930 CLSExceptionRecordNSException + 4297963824
9  myappName                      0x10022b544 CLSTerminateHandler() + 4297962820
10 libc++abi.dylib                0x18407b66c std::__terminate(void (*)()) + 16
11 libc++abi.dylib                0x18407b234 __cxa_rethrow + 144ƒ
12 libobjc.A.dylib                0x18408c71c objc_exception_rethrow + 44
13 CoreFoundation                 0x18552e0bc CFRunLoopRunSpecific + 560
14 GraphicsServices               0x186fb1198 GSEventRunModal + 180
15 UIKit                          0x18b508628 -[UIApplication _run] + 684
16 UIKit                          0x18b503360 UIApplicationMain + 208
17 myappName                      0x100036714 main (AppDelegate.swift:19)
18 (Missing)                      0x1845105b8 (Missing)

--

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x1856541c0 __exceptionPreprocess
1  libobjc.A.dylib                0x18408c55c objc_exception_throw
2  CoreFoundation                 0x185654094 +[NSException raise:format:]
3  Foundation                     0x1860de82c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4  UIKit                          0x18b7cfd88 __46-[UITableView _updateWithItems:updateSupport:]_block_invoke.996
5  UIKit                          0x18b4d2b88 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:]
6  UIKit                          0x18b4e9994 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:]
7  UIKit                          0x18b69bfd0 -[UITableView _updateWithItems:updateSupport:]
8  UIKit                          0x18b6804b4 -[UITableView _endCellAnimationsWithContext:]
9  myappName                      0x1001e52b0 specialized FAQsVC.toggleSection(FAQsSectionHeader, section : Int) -> () (FAQsVC.swift:225)
10 myappName                      0x1001e3f74 FAQsVCAPP_BeachCollapsibleTableViewHeaderDelegate (FAQsVC.swift)
11 myappName                      0x10017f440 specialized FAQsSectionHeader.tapHeader(UITapGestureRecognizer) -> () (FAQsSectionHeader.swift:29)
12 myappName                      0x10017dc18 @objc FAQsSectionHeader.tapHeader(UITapGestureRecognizer) -> () (FAQsSectionHeader.swift)
13 UIKit                          0x18ba6b83c -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:]
14 UIKit                          0x18ba6ef44 _UIGestureRecognizerSendTargetActions
15 UIKit                          0x18b630614 _UIGestureRecognizerSendActions
16 UIKit                          0x18b4ceb54 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:]å
17 UIKit                          0x18ba5ef88 _UIGestureEnvironmentUpdate
18 UIKit                          0x18ba5eae8 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:]
19 UIKit                          0x18ba5dda4 -[UIGestureEnvironment _updateGesturesForEvent:window:]
20 UIKit                          0x18b4ccd70 -[UIWindow sendEvent:]
21 UIKit                          0x18b49d858 -[UIApplication sendEvent:]
22 UIKit                          0x18bc8acb8 __dispatchPreprocessedEventFromEventQueue
23 UIKit                          0x18bc84720 __handleEventQueue
24 CoreFoundation                 0x185602278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
25 CoreFoundation                 0x185601bc0 __CFRunLoopDoSources0
26 CoreFoundation                 0x1855ff7c0 __CFRunLoopRun
27 CoreFoundation                 0x18552e048 CFRunLoopRunSpecific
28 GraphicsServices               0x186fb1198 GSEventRunModal
29 UIKit                          0x18b508628 -[UIApplication _run]
30 UIKit                          0x18b503360 UIApplicationMain
31 myappName                      0x100036714 main (AppDelegate.swift:19)
32 (Missing)                      0x1845105b8 (Missing)

#0. Crashed: com.twitter.crashlytics.ios.exception
0  myappName                      0x10022e06c CLSProcessRecordAllThreads + 4297973868
1  myappName                      0x10022e06c CLSProcessRecordAllThreads + 4297973868
2  myappName                      0x10022df28 CLSProcessRecordAllThreads + 4297973544
3  myappName                      0x10021dc68 CLSHandler + 4297907304
4  myappName                      0x10022c074 __CLSExceptionRecord_block_invoke + 4297965684
5  libdispatch.dylib              0x1844dd1c0 _dispatch_client_callout + 16
6  libdispatch.dylib              0x1844ea860 _dispatch_barrier_sync_f_invoke + 84
7  myappName                      0x10022bb08 CLSExceptionRecord + 4297964296
8  myappName                      0x10022b930 CLSExceptionRecordNSException + 4297963824
9  myappName                      0x10022b544 CLSTerminateHandler() + 4297962820
10 libc++abi.dylib                0x18407b66c std::__terminate(void (*)()) + 16
11 libc++abi.dylib                0x18407b234 __cxa_rethrow + 144
12 libobjc.A.dylib                0x18408c71c objc_exception_rethrow + 44
13 CoreFoundation                 0x18552e0bc CFRunLoopRunSpecific + 560
14 GraphicsServices               0x186fb1198 GSEventRunModal + 180
15 UIKit                          0x18b508628 -[UIApplication _run] + 684
16 UIKit                          0x18b503360 UIApplicationMain + 208
17 myappName                      0x100036714 main (AppDelegate.swift:19)
18 (Missing)                      0x1845105b8 (Missing)

#1. Thread
0  libsystem_kernel.dylib         0x184622a88 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1846e536c _pthread_wqthread + 1452
2  libsystem_pthread.dylib        0x1846e4db4 start_wqthread + 4

#2. Thread
0  libsystem_kernel.dylib         0x184622a88 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1846e5188 _pthread_wqthread + 968
2  libsystem_pthread.dylib        0x1846e4db4 start_wqthread + 4

#3. com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x18460416c mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184603fdc mach_msg + 72
2  CoreFoundation                 0x185601cec __CFRunLoopServiceMachPort + 192
3  CoreFoundation                 0x1855ff908 __CFRunLoopRun + 1132
4  CoreFoundation                 0x18552e048 CFRunLoopRunSpecific + 444
5  Foundation                     0x18603cb1c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6  Foundation                     0x18605d60c -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7  UIKit                          0x18be7dc7c -[UIEventFetcher threadMain] + 136
8  Foundation                     0x18613a50c __NSThread__start__ + 1024
9  libsystem_pthread.dylib        0x1846e7860 _pthread_body + 240
10 libsystem_pthread.dylib        0x1846e7770 _pthread_body + 282
11 libsystem_pthread.dylib        0x1846e4dbc thread_start + 4

#4. Thread
0  libsystem_pthread.dylib        0x1846e4db0 start_wqthread + 126

#5. Thread
0  libsystem_kernel.dylib         0x184622a88 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1846e536c _pthread_wqthread + 1452
2  libsystem_pthread.dylib        0x1846e4db4 start_wqthread + 4

#6. RLMRealm notification listener
0  libsystem_kernel.dylib         0x184608630 kevent + 8
1  Realm                          0x1011058c8 realm::_impl::ExternalCommitHelper::listen() + 212
2  Realm                          0x101106a4c std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>::operator()() + 28
3  Realm                          0x1011069d4 std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >::__execute() + 28
4  Realm                          0x101106b84 std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >::*)(), std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >*> >(void*, void*) + 64
5  libsystem_pthread.dylib        0x1846e7860 _pthread_body + 240
6  libsystem_pthread.dylib        0x1846e7770 _pthread_body + 282
7  libsystem_pthread.dylib        0x1846e4dbc thread_start + 4

#7. com.twitter.crashlytics.ios.MachExceptionServer
0  libsystem_kernel.dylib         0x18460416c mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184603fdc mach_msg + 72
2  myappName                      0x100218b38 CLSMachExceptionServer + 4297886520
3  libsystem_pthread.dylib        0x1846e7860 _pthread_body + 240
4  libsystem_pthread.dylib        0x1846e7770 _pthread_body + 282
5  libsystem_pthread.dylib        0x1846e4dbc thread_start + 4

#8. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x18460416c mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184603fdc mach_msg + 72
2  CoreFoundation                 0x185601cec __CFRunLoopServiceMachPort + 192
3  CoreFoundation                 0x1855ff908 __CFRunLoopRun + 1132
4  CoreFoundation                 0x18552e048 CFRunLoopRunSpecific + 444
5  CFNetwork                      0x185d1bcec +[NSURLConnection(Loader) _resourceLoadLoop:] + 336
6  Foundation                     0x18613a50c __NSThread__start__ + 1024
7  libsystem_pthread.dylib        0x1846e7860 _pthread_body + 240
8  libsystem_pthread.dylib        0x1846e7770 _pthread_body + 282
9  libsystem_pthread.dylib        0x1846e4dbc thread_start + 4

#9. com.squareup.SocketRocket.NetworkThread
0  libsystem_kernel.dylib         0x18460416c mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184603fdc mach_msg + 72
2  CoreFoundation                 0x185601cec __CFRunLoopServiceMachPort + 192
3  CoreFoundation                 0x1855ff908 __CFRunLoopRun + 1132
4  CoreFoundation                 0x18552e048 CFRunLoopRunSpecific + 444
5  Foundation                     0x18603cb1c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6  myappName                      0x10034496c -[_FSRRunLoopThread main] + 4299114860
7  Foundation                     0x18613a50c __NSThread__start__ + 1024
8  libsystem_pthread.dylib        0x1846e7860 _pthread_body + 240
9  libsystem_pthread.dylib        0x1846e7770 _pthread_body + 282
10 libsystem_pthread.dylib        0x1846e4dbc thread_start + 4

#10. com.apple.CFSocket.private
0  libsystem_kernel.dylib         0x18462223c __select + 8
1  CoreFoundation                 0x185608b84 __CFSocketManager + 640
2  libsystem_pthread.dylib        0x1846e7860 _pthread_body + 240
3  libsystem_pthread.dylib        0x1846e7770 _pthread_body + 282
4  libsystem_pthread.dylib        0x1846e4dbc thread_start + 4

#11. com.apple.CoreMotion.MotionThread
0  libsystem_kernel.dylib         0x18460416c mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184603fdc mach_msg + 72
2  CoreFoundation                 0x185601cec __CFRunLoopServiceMachPort + 192
3  CoreFoundation                 0x1855ff908 __CFRunLoopRun + 1132
4  CoreFoundation                 0x18552e048 CFRunLoopRunSpecific + 444
5  CoreFoundation                 0x18557b8d4 CFRunLoopRun + 112
6  CoreMotion                     0x18c3767dc (null) + 187376
7  libsystem_pthread.dylib        0x1846e7860 _pthread_body + 240
8  libsystem_pthread.dylib        0x1846e7770 _pthread_body + 282
9  libsystem_pthread.dylib        0x1846e4dbc thread_start + 4
Iniyarajan commented 5 years ago

[UITableView setAllowMultipleSectionsOpen:] crash while loading with custom cell *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableView setAllowMultipleSectionsOpen:]: unrecognized selector sent to instance 0x7faba908f000'