Closed Bug 905656 Opened 11 years ago Closed 11 years ago

vcf file freeze on import

Categories

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

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-b2g:koi+)

RESOLVED DUPLICATE of bug 904973
blocking-b2g koi+

People

(Reporter: hub, Assigned: sergi)

References

Details

(Keywords: perf, Whiteboard: [c= p= s= u=1.2])

Attachments

(1 file)

Attached file address.vcf
Copy the attached vcf onto the sdcard

In contact, select import from sdcard

The import will "hang". A the cancel button will not work.

(the vcf has been generated with a Perl script of my own from a CSV file coming from "FakeNameGenerator")
Assignee: nobody → sergi.mansilla
I get this in logcat.

I/Gecko   (  618): 
I/Gecko   (  618): ###!!! [Parent][AsyncChannel] Error: Channel error: cannot send/recv
I/Gecko   (  618): 
E/GeckoConsole(  618): [JavaScript Error: "[Exception... "'Error: no message manager set' when calling method: [nsIObserver::observe]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0"  data: no]"]

618 is the pid for the b2g process.
The error is more trivial that that.

In "contacts_settings.js" in the onFiles() function, VCFReader is unknown.
um. Forget that last comment. This is not the case.
Blocks: 894751
I forgot to mention: this is master (1.2) built from source on Inari.
Related: bug 903971
Is VCF import required for 1.2? If so, should this block Koi?
blocking-b2g: --- → koi?
(In reply to Dietrich Ayala (:dietrich) from comment #6)
> Is VCF import required for 1.2? If so, should this block Koi?

Related bug is leo+, so I guess it might be.
I'd bet that this is due to the amount of contacts. I ran into this issue whil debugging bug 903971. After discussing with sergi, he started to rewrite the vCard importing using a stream approch. I've just successfully tested it on a dataset of 6000 contacts. It's still early work, but at least the import went through instead of blocking.

So there is good chances that this bug will get fixed with this new streaming import.
What's the bug for the new streaming import?
You should ask sergi, I'm not sure there's one yet.
Flags: needinfo?(sergi.mansilla)
Keywords: perf
Hi,

Progress on this can be followed on https://bugzilla.mozilla.org/show_bug.cgi?id=904313.

Hubert, try to see if you have that problem with that branch. It should be stable enough to see if it solves it.
Flags: needinfo?(sergi.mansilla)
Depends on: 904313
I definitely goes further. I get "1/5000" displayed. But then it doesn't move.
Status: NEW → ASSIGNED
blocking-b2g: koi? → koi+
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Whiteboard: [c= p= s= u=][perf-reviewed]
Priority: -- → P1
Ok, I am working on it and getting somewhere. The investigation and review of the patch will be happening in https://bugzilla.mozilla.org/show_bug.cgi?id=904973 from now on.
Whiteboard: [c= p= s= u=][perf-reviewed] → [c= p= s= u=1.2]
Sergi, are you still working on this? thanks
Flags: needinfo?(sergi.mansilla)
This issue is now being handled at https://bugzilla.mozilla.org/show_bug.cgi?id=904973.
Status: ASSIGNED → RESOLVED
Closed: 11 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: