Quantcast
Viewing all articles
Browse latest Browse all 8068

Keyboard and empty TableView crashes app on iOS 7.1

  • Titanium SDK: 3.2.3.GA, OSX 10.9.3
  • Platform: iOS 7.1
  • Device: iOS Simulator, iOS Device

My problem is as follows: I got TableView with header view and search field inside the header. When table view is completely empty and i try to focus on text field, the app crashes with:

[ERROR] :  The application has crashed with an uncaught exception 'NSInternalInconsistencyException'.
[ERROR] :  Reason:
[ERROR] :  request for rect of invalid section (-1)
[ERROR] :  Stack trace:
[ERROR] :  0   CoreFoundation                      0x045791c8 __exceptionPreprocess + 152
[ERROR] :  1   libobjc.A.dylib                     0x03f5f8e5 objc_exception_throw + 44
[ERROR] :  2   CoreFoundation                      0x04579048 +[NSException raise:format:arguments:] + 136
[ERROR] :  3   Foundation                          0x00e1d4de -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
[ERROR] :  4   UIKit                               0x014b976f -[UITableViewRowData rectForSection:] + 181
[ERROR] :  5   UIKit                               0x013365b1 -[UITableView rectForSection:] + 80
[ERROR] :  6   test                                0x000d449e -[TiUITableView keyboardDidShowAtHeight:] + 430
[ERROR] :  7   test                                0x00130487 -[TiRootViewController handleNewKeyboardStatus] + 743
[ERROR] :  8   Foundation                          0x00e735ec __NSFireDelayedPerform + 372
[ERROR] :  9   CoreFoundation                      0x04537ac6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
[ERROR] :  10  CoreFoundation                      0x045374ad __CFRunLoopDoTimer + 1181
[ERROR] :  11  CoreFoundation                      0x0451f538 __CFRunLoopRun + 1816
[ERROR] :  12  CoreFoundation                      0x0451e9d3 CFRunLoopRunSpecific + 467
[ERROR] :  13  CoreFoundation                      0x0451e7eb CFRunLoopRunInMode + 123
[ERROR] :  14  GraphicsServices                    0x043215ee GSEventRunModal + 192
[ERROR] :  15  GraphicsServices                    0x0432142b GSEventRun + 104
[ERROR] :  16  UIKit                               0x0124ff9b UIApplicationMain + 1225
[ERROR] :  17  test                                0x000054c8 main + 456
[ERROR] :  18  libdyld.dylib                       0x04a5e701 start + 1
[ERROR] :  2014-07-09 17:42:14.092 test[7654:70b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'request for rect of invalid section (-1)'
[ERROR] :  *** First throw call stack:
[ERROR] :  (
[ERROR] :   0   CoreFoundation                      0x045791e4 __exceptionPreprocess + 180
[ERROR] :   1   libobjc.A.dylib                     0x03f5f8e5 objc_exception_throw + 44
[ERROR] :   2   CoreFoundation                      0x04579048 +[NSException raise:format:arguments:] + 136
[ERROR] :   3   Foundation                          0x00e1d4de -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
[ERROR] :   4   UIKit                               0x014b976f -[UITableViewRowData rectForSection:] + 181
[ERROR] :   5   UIKit                               0x013365b1 -[UITableView rectForSection:] + 80
[ERROR] :   6   test                                0x000d449e -[TiUITableView keyboardDidShowAtHeight:] + 430
[ERROR] :   7   test                                0x00130487 -[TiRootViewController handleNewKeyboardStatus] + 743
[ERROR] :   8   Foundation                          0x00e735ec __NSFireDelayedPerform + 372
[ERROR] :   9   CoreFoundation                      0x04537ac6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
[ERROR] :   10  CoreFoundation                      0x045374ad __CFRunLoopDoTimer + 1181
[ERROR] :   11  CoreFoundation                      0x0451f538 __CFRunLoopRun + 1816
[ERROR] :   12  CoreFoundation                      0x0451e9d3 CFRunLoopRunSpecific + 467
[ERROR] :   13  CoreFoundation                      0x0451e7eb CFRunLoopRunInMode + 123
[ERROR] :   14  GraphicsServices                    0x043215ee GSEventRunModal + 192
[ERROR] :   15  GraphicsServices                    0x0432142b GSEventRun + 104
[ERROR] :   16  UIKit                               0x0124ff9b UIApplicationMain + 1225
[ERROR] :   17  test                                0x000054c8 main + 456
[ERROR] :   18  libdyld.dylib                       0x04a5e701 start + 1
[ERROR] :  )
[ERROR] :  libc++abi.dylib: terminating with uncaught exception of type NSException
-- End simulator log ---------------------------------------------------------
And TableView to reproduce crash:
<TableView id="table">
    <HeaderView>
        <View height="45" width="Ti.UI.FILL">
            <TextField top="0" height="45" width="Ti.UI.FIll" hintText="Search" />
        </View>
    </HeaderView>
</TableView>
Any help appreciated.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>