Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16111] iOS: Listitem or View in list item set to layout vertical causes crash

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-08-18T21:49:51.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
LabelsLayout, List, ListViews, supportTeam
ReporterMostafizur Rahman
AssigneeEric Merriman
Created2013-12-13T12:32:27.000+0000
Updated2017-08-18T21:49:51.000+0000

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 //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 ---------------------------------------------------------

Comments

  1. Michael DeGiovanni 2013-12-13

    To add on this it seems this occurs when the element being set to vertical layout has a width of 100%.
  2. Lee Morris 2017-08-18

    I am unable to reproduce this issue with the following environment; iPhone 6 (10.2) Studio 4.9.1.201707200100 Ti SDK 6.1.2 GA Appc CLI 6.2.3 Ti CLI 5.0.14 Alloy 1.9.13 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source