Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-704] Android TableView Crashes with height 'auto'

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:58.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.2.0
ComponentsAndroid
Labelsandroid, defect
ReporterDan Mullineux
AssigneeMarshall Culpepper
Created2011-04-15T02:34:50.000+0000
Updated2011-04-17T01:53:58.000+0000

Description

KS layout_2
SDK - head pull from a couple of days ago - Tue Mar 30

As layout_2 example gets drawn you get a stopped responding - force close error.

I also get this in my app - in fact I get a force close with an explicit height set, when the orientation changes from

Comments

  1. Marshall Culpepper 2011-04-15

    I just ran Views > Table View > Table View (Layout 2) locally, it seems to be running (albeit a bit slowly). Do you have a trace that you can attach?

  2. Dan Mullineux 2011-04-15

    Ah, did you set height: 'auto'

    the crash is clear, sorry didnt think to check the trace....

    [TRACE] E/TiUncaughtHandler( 237): (main) [5,31321] Sending event: exception on thread: main msg:java.lang.NumberFormatException: unable to parse 'auto' as integer

    in...
    TiTableViewRowProxyItem
    line 124

  3. Dan Mullineux 2011-04-15

    I cant get the trace when my app stops on orientation change can I?

  4. Don Thorp 2011-04-15

    You can use adb [-d | -e] logcat it'll dump the latest stuff.

  5. Dan Mullineux 2011-04-15

    of course - the orientation change crash is seperate from this defect - I'll raise another defect for that

  6. Don Thorp 2011-04-15

    See this http://developer.appcelerator.com/question/11231/auto-height-bug-in-113"> Q&A too.

  7. Marshall Culpepper 2011-04-15

    (from [f99ae3e57158d849d17ab62b3e03dddd5ab35dcd]) fallback to default for row "auto" height [#704 state:resolved] http://github.com/appcelerator/titanium_mobile/commit/f99ae3e57158d849d17ab62b3e03dddd5ab35dcd"> http://github.com/appcelerator/titanium_mobile/commit/f99ae3e57158d...

JSON Source