Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1958] Can't display Titanium.Contacts.Person with Ti.API.info

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:57:39.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0, Sprint 2011-11
ComponentsiOS
Labelscontacts, ios, klist
Reporterjohnmcknight (at yahoo)
AssigneeReggie Seagraves
Created2011-04-15T03:06:30.000+0000
Updated2011-04-17T01:57:39.000+0000

Description

On 1.4.1 and 1.4.2 continuous builds I get a crash in the iPhone simulator if I try to display an array of Titanium.Contacts.Person or just a single Titanium.Contacts.Person object.

Example

// This works
var peeps = Ti.Contacts.getAllPeople();

// This crashes
Ti.API.info(peeps);

BTW - This is also true of the Kitchen Sink app. Edit contacts_db.js around line 7 and add a line to display a person while walking the array of contacts. It will crash immediately and if you remove the Ti.API.info it will work.

Comments

  1. johnmcknight (at yahoo) 2011-04-15

    Forgot to mention this. It crashes in 3.2 on the iPad and also 4.1 on the iPhone.

  2. Stephen Tramer 2011-04-15

    Should be printing the -[TiProxy description] instead of crashing.

  3. Jeff Haynie 2011-04-15

    (from [42a8c3893133671e0d98d55ab556ff24966d888f]) [#2317 state:fixed-in-qa milestone:"Sprint-2011-11"][#1849 state:fixed-in-qa milestone:Sprint-2011-11][#1958 state:fixed-in-qa milestone:Sprint-2011-11] Numerous fixes for crashers in Contacts. https://github.com/appcelerator/titanium_mobile/commit/42a8c3893133671e0d98d55ab556ff24966d888f"> https://github.com/appcelerator/titanium_mobile/commit/42a8c3893133...

  4. Stephen Tramer 2011-04-15

    TESTING:

    • Run KS->Phone->Contacts->Display people
    • Should see a line per contact which contains "[object TiContactsPerson]"
    • Should not crash
  5. Natalie Huynh 2011-04-15

    Tested with Titanium SDK version: 1.7.0 (03/15/11 11:42 1f6dbfe) on
    Simulator 4.1
    iPad 3.2
    iPad2 4.3
    Emulator 2.1
    Samsung Galaxy 2.2

JSON Source