Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2530] iOS: Adding scroll views + swiping - redraw issues (grey views) and intermittant crash

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:22.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M04
ComponentsiOS
Labelscrash, ios, regression, release-1.6.0, scrollable, view
ReporterThomas Huelbert
AssigneeRalf Pfeiffer
Created2011-04-15T03:22:02.000+0000
Updated2011-04-17T01:59:22.000+0000

Description

TiMobile sdk version 1.5.0.8f4eea3 ipod touch 4GT (4.2.1), ipod 3gt (4.0.1), iphone 3 (3.1.3). crash was on the 4gt 4.2.1

1.Base UI > Views > Scroll Views > scrollable view
2.tap add 4-5 times
3.quickly swipe through them

results: they appear as grey (no color or labels) , then will draw to the final color/add labels

console:

Tue Dec 7 10:20:43 unknown KitchenSink[3722] : *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [0 nan]'

*** Call stack at first throw:
(
    0   CoreFoundation                      0x3048e987 __exceptionPreprocess + 114
    1   libobjc.A.dylib                     0x33a0849d objc_exception_throw + 24
    2   CoreFoundation                      0x3048e7c9 +[NSException raise:format:arguments:] + 68
    3   CoreFoundation                      0x3048e803 +[NSException raise:format:] + 34
    4   QuartzCore                          0x32d75229 _ZL18CALayerSetPositionP7CALayerRKN2CA4Vec2IdEEb + 140
    5   QuartzCore                          0x32d75197 -[CALayer setPosition:] + 38
    6   UIKit                               0x313d737f -[UIView(Geometry) setCenter:] + 22
    7   KitchenSink                         0x000584eb 0x0 + 361707 
    8   KitchenSink                         0x0003761b 0x0 + 226843
    9   KitchenSink                         0x00037c21 0x0 + 228385
    10  KitchenSink                         0x000c31d3 0x0 + 799187
    11  CoreFoundation                      0x304450a3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
    12  CoreFoundation                      0x30444b5b __CFRunLoopDoTimer + 850
    13  CoreFoundation                      0x304161b5 __CFRunLoopRun + 1088
    14  CoreFoundation                      0x30415c87 CFRunLoopRunSpecific + 230
    15  CoreFoundation                      0x30415b8f CFRunLoopRunInMode + 58
    16  GraphicsServices                    0x31eec4ab GSEventRunModal + 114
    17  GraphicsServices                    0x31eec557 GSEventRun + 62
    18  UIKit                               0x313cf329 -[UIApplication _run] + 412
    19  UIKit                               0x313cce93 UIApplicationMain + 670
    20  KitchenSink                         0x00003feb 0x0 + 16363
    21  KitchenSink                         0x0000368c 0x0 + 13964
)

Tue Dec 7 10:20:43 unknown UIKitApplication:com.appcelerator.KitchenSink[0x1060][3722] : terminate called after throwing an instance of 'NSException'
Tue Dec 7 10:20:43 unknown ReportCrash[3737] : Formulating crash report for process KitchenSink[3722]

Comments

  1. Jeff Haynie 2011-04-15

    (from [6a7644e65ba82242e1ccc3a02f22d70d27e0bf93]) [#2530 state:fixed-in-qa]: More accurate loading of views based on add/remove/scroll. https://github.com/appcelerator/titanium_mobile/commit/6a7644e65ba82242e1ccc3a02f22d70d27e0bf93"> https://github.com/appcelerator/titanium_mobile/commit/6a7644e65ba8...

  2. Thomas Huelbert 2011-04-15

    4.2.1 4gt ipod touch, 3g phone 3.1.3 [INFO] Titanium SDK version: 1.6.0 (01/12/11 14:54 ff401e1)

JSON Source