Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16111

iOS: Listitem or View in list item set to layout vertical causes crash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Using continuous build & alloy

      Description

      The scenario is as follow, where each item in the template has an image, label than a view containing meta information and a content label. It is required that they have a vertical layout.
      Now setting vertical layout on either "#newsRow"(if the list item has no .viewRowContainer) or on ".newsRowContainer causes the application to crash

      <ListView class="listView" defaultItemTemplate="newsRow">
      <Templates>
      <ItemTemplate name="newsRow" id="newsRow">
      <View class="newsRowContainer">
      <ImageView bindId="pic" class="newsImage" />
      <View class="newsMeta">
      <Label bindId="category" class="newsCategory" />
      <Label bindId="date" class="newsDate" />
      </View>
      <Label bindId="content" class="newsContent" />

      </View>
      </ItemTemplate>
      </Templates>
      <ListSection id="newsListSection"></ListSection>
      </ListView>

      //Simulator log show as follows:

      [ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'.
      [ERROR] : Reason:
      [ERROR] : -[UILongPressGestureRecognizer bounds]: unrecognized selector sent to instance 0xce6af80
      [ERROR] : Stack trace:
      [ERROR] : 0 CoreFoundation 0x044165c8 __exceptionPreprocess + 152
      [ERROR] : 1 libobjc.A.dylib 0x03dfa8b6 objc_exception_throw + 44
      [ERROR] : 2 CoreFoundation 0x044b3903 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
      [ERROR] : 3 CoreFoundation 0x0440690b __forwarding__ + 1019
      [ERROR] : 4 CoreFoundation 0x0444346e _forwarding_prep_1__ + 14
      [ERROR] : 5 ToM 0x0007d10e -[TiViewProxy relayout] + 334
      [ERROR] : 6 ToM 0x0007c283 -[TiViewProxy refreshView:] + 675
      [ERROR] : 7 ToM 0x0007daf3 -[TiViewProxy layoutChildrenIfNeeded] + 259
      [ERROR] : 8 ToM 0x00205177 +[TiLayoutQueue layoutProxy:] + 87
      [ERROR] : 9 ToM 0x00204f42 performLayoutRefresh + 530
      [ERROR] : 10 CoreFoundation 0x043d4bd6 _CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION_ + 22
      [ERROR] : 11 CoreFoundation 0x043d45bd __CFRunLoopDoTimer + 1181
      [ERROR] : 12 CoreFoundation 0x043bc628 __CFRunLoopRun + 1816
      [ERROR] : 13 CoreFoundation 0x043bbac3 CFRunLoopRunSpecific + 467
      [ERROR] : 14 CoreFoundation 0x043bb8db CFRunLoopRunInMode + 123
      [ERROR] : 15 GraphicsServices 0x041a99e2 GSEventRunModal + 192
      [ERROR] : 16 GraphicsServices 0x041a9809 GSEventRun + 104
      [ERROR] : 17 UIKit 0x0122fd3b UIApplicationMain + 1225
      [ERROR] : 18 ToM 0x000054f8 main + 456
      [ERROR] : 19 libdyld.dylib 0x04adc725 start + 0
      [ERROR] : 20 ??? 0x00000001 0x0 + 1
      [ERROR] : 2013-12-13 13:31:15.028 ToM[25556:a0b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UILongPressGestureRecognizer bounds]: unrecognized selector sent to instance 0xce6af80'
      [ERROR] : *** First throw call stack:
      [ERROR] : (
      [ERROR] : 0 CoreFoundation 0x044165e4 __exceptionPreprocess + 180
      [ERROR] : 1 libobjc.A.dylib 0x03dfa8b6 objc_exception_throw + 44
      [ERROR] : 2 CoreFoundation 0x044b3903 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
      [ERROR] : 3 CoreFoundation 0x0440690b __forwarding__ + 1019
      [ERROR] : 4 CoreFoundation 0x0444346e _forwarding_prep_1__ + 14
      [ERROR] : 5 ToM 0x0007d10e -[TiViewProxy relayout] + 334
      [ERROR] : 6 ToM 0x0007c283 -[TiViewProxy refreshView:] + 675
      [ERROR] : 7 ToM 0x0007daf3 -[TiViewProxy layoutChildrenIfNeeded] + 259
      [ERROR] : 8 ToM 0x00205177 +[TiLayoutQueue layoutProxy:] + 87
      [ERROR] : 9 ToM 0x00204f42 performLayoutRefresh + 530
      [ERROR] : 10 CoreFoundation 0x043d4bd6 _CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION_ + 22
      [ERROR] : 11 CoreFoundation 0x043d45bd __CFRunLoopDoTimer + 1181
      [ERROR] : 12 CoreFoundation 0x043bc628 __CFRunLoopRun + 1816
      [ERROR] : 13 CoreFoundation 0x043bbac3 CFRunLoopRunSpecific + 467
      [ERROR] : 14 CoreFoundation 0x043bb8db CFRunLoopRunInMode + 123
      [ERROR] : 15 GraphicsServices 0x041a99e2 GSEventRunModal + 192
      [ERROR] : 16 GraphicsServices 0x041a9809 GSEventRun + 104
      [ERROR] : 17 UIKit 0x0122fd3b UIApplicationMain + 1225
      [ERROR] : 18 ToM 0x000054f8 main + 456
      [ERROR] : 19 libdyld.dylib 0x04adc725 start + 0
      [ERROR] : 20 ??? 0x00000001 0x0 + 1
      [ERROR] : )
      [ERROR] : libc++abi.dylib: terminating with uncaught exception of type NSException
      – End simulator log ---------------------------------------------------------

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              mrahman Mostafizur Rahman
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18123
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code