Closed Bug 904313 Opened 12 years ago Closed 12 years ago

[CONTACTS] Can't import vCard when contact count > 2500

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-b2g:koi+)

RESOLVED DUPLICATE of bug 904973
1.1 QE6
blocking-b2g koi+

People

(Reporter: leo.bugzilla.gaia, Assigned: sergi, NeedInfo)

References

Details

(Keywords: perf, Whiteboard: [TD-76281][u=commsapps-user c=communications p=0][perf-reviewed])

Attachments

(1 file)

1. Title: Can't import vCard when contact count > 2500 2. Precondition: Save vCard with more than 2500 contacts in SD Card. 3. Tester's Action: Contacts > Settings > SD card 4. Detailed Symptom (ENG.): Progress stuck on "Reading from SD card..." or Contacts App. is killed. 5. Expected: The phone should not occur abnormally.(Need to place a hard limit on the number of contacts) 6. Reproducibility: Y 1) Frequency Rate : 100% 7. Gaia Master/v1-train: Reproduced 8. Gaia Revision: c5e8358d753b8954de7b1a8c3e00944617aeec5e 9. Personal email id: chlee2363@gmail.com
Severity: normal → critical
blocking-b2g: --- → leo+
Priority: -- → P1
Whiteboard: [TD-76281]
Target Milestone: --- → 1.1 QE6
This is a leo quality issue. Please check it.
Flags: needinfo?(wchang)
Can QA try to reproduce this? Leo can you provide any available logs you have or zip up the contacts you used to perform this test? Alberto, can you check this bug here?
Flags: needinfo?(wchang)
Flags: needinfo?(leo.bugzilla.gaia)
Flags: needinfo?(alberto.pastor)
Keywords: qawanted
Looks like i'm reproducing, so looking into this.
Assignee: nobody → lissyx+mozillians
Looks like the VCFReader is not very happy starting aroung 930 entries on my test case.
From what I see, even a 1000 entries file does not get read. It's getting blocked while filling in the rawContacts array. Moving away the parseSingleEntry() call to the rawContacts.forEach() callback, I achieve inserting 305 contacts from this 1000 entries file.
Whiteboard: [TD-76281] → [TD-76281][u=commsapps-user c=communications p=0]
Assignee: lissyx+mozillians → sergi.mansilla
Sergi is re-taking this one. As far as I could explore, the code somehow blocks while parsing the VCF file, in my case inside a splitLines() call.
QA Contact: dsubramanian
Is Leo actually going to pick this up? Back Leo nom until that's clear.
blocking-b2g: leo+ → leo?
Attached file logcat
I was able to repro this defect. Had more than 2500 v-card contacts. The user is able to see "Reading from SD card..." screen while trying to import contacts from SD card. Environmental Variables Leo Build ID: 20130822041201 Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/74914b454b88 Gaia: a83c5fee49525ec0545059b5a56a3fd9f1c09f19 Platform Version: 18.1
Keywords: qawanted
As import is a leo feature it seems we should block.
blocking-b2g: leo? → leo+
Progress on this can be seen at https://github.com/comoyo/gaia/compare/vcard_streaming_noworker It would be helpful if people having the problem start using it for testing. There is a second version using workers, but probably it will not be necessary.
bug 905656 might just be a dupe of this. Setting as blocked for now. I have a 20000 entries sample.
Blocks: 905656
Keywords: perf
(In reply to David Scravaglieri [:scravag] from comment #9) > As import is a leo feature it seems we should block. Like Alex said in comment #7, before we can block we need answer from Leo about whether or not they'll take such a large change to contacts parser this late Also, what the number of contacts imported should be supported. 500? 1000? 5000? 20,000?
blocking-b2g: leo+ → leo?
Flags: needinfo?(dscravaglieri)
The large change of code could not be taken to leo device now. After get a patch, we discuss it to take in leo or not. Regarding comment 8, the log file has already uploaded.
Flags: needinfo?(leo.bugzilla.gaia)
(In reply to Leo from comment #13) > The large change of code could not be taken to leo device now. Hence this does not sound like a blocker. > After get a patch, we discuss it to take in leo or not. > Regarding comment 8, the log file has already uploaded. Still waiting to hear back on the number of contacts that should be supported like asked in comment #12. Feel free to renom if needed.
blocking-b2g: leo? → koi?
I can make the code change quite smaller at the expense of some speed, but it won't be slower than it is now. I'll propose another patch. Is there a time deadline for it? I am officially on holidays, but I cna put some time on this.
FxOs-Perf Triage: Leaving this for Contacts team to decide whether to koi+
Whiteboard: [TD-76281][u=commsapps-user c=communications p=0] → [TD-76281][u=commsapps-user c=communications p=0][perf-reviewed]
This bug need a fix in koi, failing with 305 contact looks definitely bad
blocking-b2g: koi? → koi+
Flags: needinfo?(dscravaglieri)
Sergi, are you still working on this? thanks
Flags: needinfo?(sergi.mansilla)
Yes, this bug is being handled in issue https://bugzilla.mozilla.org/show_bug.cgi?id=904973.
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: needinfo?(sergi.mansilla)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: