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)
Tracking
(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)
|
641.70 KB,
text/plain
|
Details |
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)
Comment 2•12 years ago
|
||
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
Comment 3•12 years ago
|
||
Looks like i'm reproducing, so looking into this.
Updated•12 years ago
|
Assignee: nobody → lissyx+mozillians
Comment 4•12 years ago
|
||
Looks like the VCFReader is not very happy starting aroung 930 entries on my test case.
Comment 5•12 years ago
|
||
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.
Updated•12 years ago
|
Whiteboard: [TD-76281] → [TD-76281][u=commsapps-user c=communications p=0]
| Assignee | ||
Updated•12 years ago
|
Assignee: lissyx+mozillians → sergi.mansilla
Comment 6•12 years ago
|
||
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.
Updated•12 years ago
|
QA Contact: dsubramanian
Comment 7•12 years ago
|
||
Is Leo actually going to pick this up? Back Leo nom until that's clear.
blocking-b2g: leo+ → leo?
Comment 8•12 years ago
|
||
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
Comment 9•12 years ago
|
||
As import is a leo feature it seems we should block.
blocking-b2g: leo? → leo+
| Assignee | ||
Comment 10•12 years ago
|
||
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.
Comment 11•12 years ago
|
||
bug 905656 might just be a dupe of this. Setting as blocked for now.
I have a 20000 entries sample.
Blocks: 905656
Comment 12•12 years ago
|
||
(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)
| Reporter | ||
Comment 13•12 years ago
|
||
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)
Comment 14•12 years ago
|
||
(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?
| Assignee | ||
Comment 15•12 years ago
|
||
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.
Comment 16•12 years ago
|
||
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]
Comment 17•12 years ago
|
||
This bug need a fix in koi, failing with 305 contact looks definitely bad
blocking-b2g: koi? → koi+
Flags: needinfo?(dscravaglieri)
Comment 18•12 years ago
|
||
Sergi, are you still working on this? thanks
Flags: needinfo?(sergi.mansilla)
| Assignee | ||
Comment 19•12 years ago
|
||
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.
Description
•