Closed Bug 962215 Opened 11 years ago Closed 11 years ago

[B2G][Contacts]Unable to import contacts from the SD card.

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.3+, b2g-v1.3 fixed, b2g-v1.4 affected)

VERIFIED FIXED
1.3 C3/1.4 S3(31jan)
blocking-b2g 1.3+
Tracking Status
b2g-v1.3 --- fixed
b2g-v1.4 --- affected

People

(Reporter: astole, Assigned: arcturus)

Details

(Keywords: regression)

Attachments

(9 files)

Attached video Video
User is unable to import six or more contacts from the SD card.

Repro Steps:
1) Updated Buri to BuildID: 20140121040201
2) Make sure SD card has six or more contacts
3) Open Contacts and go to 'Settings'
4) Select 'Import Contacts'
5) Select 'Memory Card'

Actual:
The user gets stuck importing the contacts and is unable to select cancel.

Expected:
User can import all contacts from the SD card.

Environmental Variables:
Device: Buri v1.4 Master Build, Mozilla RIL
BuildID: 20140121040201
Gaia: e218d17ae7d01a81d48f833cd6fafb4e11b26cd8
Gecko: cdc0ab2c0cba
Version: 29.0a1
Firmware Version: V1.2-device.cfg

Repro frequency: 3/3 devices, 100%
See attached: Video, logcat
Attached file logcat
Attached file 21_1_2014_5.vcf
It appears the issue is slightly different then the original description. After looking at the vcf file, it appears that there were originally only five contacts on the SD card, but the phone is attempting to import six so it gets stuck after five contacts. The video example shows the same issue with trying to import 11 contacts when there were only ten on the SD card.

Update to Repro step 2:
2) Make sure SD card has five or more contacts

This issue does not occur on v1.3

Environmental Variables:
Device: Buri v1.3 Mozilla RIL
BuildID: 20140121004137
Gaia: 47049555282a9a01fb60d1e1421b57e2810c96f5
Gecko: 6f7dfe36ab6c
Version: 28.0a2
Firmware Version: V1.2-device.cfg
blocking-b2g: --- → 1.4?
Andrew: I have an SD Card that has 250 vcf contacts and did not see this issue? Can you recheck with another file to see if you still reproduce?
Checked it on four different devices, all with different SD Cards, and it occurred on all of them. Most contacts that were used was 150.
Attached file Bug962215_v1.3.txt
Hi,

I'm able to reproduce the issue "User is unable to import six or more contacts from the SD card" with v1.3

STRs:
1) Updated Buri to BuildId: 2014012206556
2) SD card has six contacts
3) Open Contacts and go to 'Gear' icon
4) Select 'Import Contacts'
5) Select 'Memory Card'

Actual:
The user gets stuck importing the contacts and is unable to select cancel.

Environmental Variables:
Device: Buri v1.3, Mozilla RIL
BuildId: 2014012206556
Gecko: 6840e8c
Gaia: 744fb69
Version: 28.0a2

Repro frequency: 100%
See also attached vcf file
Attached file 22_1_2014_6.vcf
vcf file used for reproducing the issue under v1.3 branch.
Per comment 6 marking 'status-b2g-v1.3' flag as affected and 'blocking-b2g' as v1.3?
blocking-b2g: 1.4? → 1.3?
QA Contact: sarsenyev
(In reply to Noemí Freire (:noemi) from comment #8)
> Per comment 6 marking 'status-b2g-v1.3' flag as affected and 'blocking-b2g'
> as v1.3?

I'm wondering if the bug you are seeing here is the same or different than the bug found here.

Can someone test with each vcf file here to check reproducibility on 1.3? If the reproducibility is different, then we have different bugs here.
I couldn't reproduce it on 1.3
After trying a couple builds, I used each vcf attached file, but I couldn't reproduce it on 1.3, the contacts are imported successfully every time
However it does reproduce on 1.4, looking for a regression window
blocking-b2g: 1.3? → 1.4?
Attached audio VideoBug.ogg
I noticed on some working builds, the number of imported contacts more than are shown on the importing contacts screen, for more details see the attached video

Last working build when all contacts from memory card are imported
Device: Buri 1.4 MOZ
BuildID: 20140120040203
Gaia: cf19095a08e1279667b3af0df920c0b0107c8cad
Gecko: 73bd4c0f880e
Version: 29.0a1
Firmware Version: v1.2-device.cfg

The first broken build when importing contacts process stuck 
Device: Buri 1.4 MOZ
BuildID: 20140121040201
Gaia: e218d17ae7d01a81d48f833cd6fafb4e11b26cd8
Gecko: cdc0ab2c0cba
Version: 29.0a1
RIL Version: 01.02.00.019.102
Firmware Version v1.2-device.cfg
Attached file logcat.txt
Attached file 23_1_2014_6.vcf
I am reproducing the error in latest v1.3 buri build trying to import 6 contacts from a SD card. 
Logcat included in #comment 12

Environmental Variables:
Device: Buri v1.3, Qualcom RIL
BuildId: 20140123065710
Gecko: 086e699
Gaia: 6fbeac2
Version: 28.0a2

Repro frequency: 100%
(In reply to Maria Angeles Oteo (:oteo) from comment #13)
> Created attachment 8364333 [details]
> 23_1_2014_6.vcf
> 
> 
> I am reproducing the error in latest v1.3 buri build trying to import 6
> contacts from a SD card. 
> Logcat included in #comment 12
> 
> Environmental Variables:
> Device: Buri v1.3, Qualcom RIL
> BuildId: 20140123065710
> Gecko: 086e699
> Gaia: 6fbeac2
> Version: 28.0a2
> 
> Repro frequency: 100%

So QC RIL can't be trusted here for testing - they no longer issue updated builds out to us, so we don't know if this is actually valid. This needs to be confirmed on a Moz RIL build.
As per comment 13, I am confirming the issue reproduce on the latest today's 1.3 MOZ RIL build.
With this latest attachment "23_1_2014_6.vcf" the importing process stuck on all 1.4 builds.
I tried some other vcf files, the importing doesn't stuck on previous builds on 1.3 until today, 
But the importing issues appear on previous 1.3 builds as well with this "23_1_2014_6.vcf" attachment
The previous regression window was based on the previously attached filed and my own contacts, but with this latest vcf attachement it's not easy to get a regression window, because of getting different results with different vcf files 

Device: Buri 1.3 MOZ
BuildID: 20140123004001
Gaia: 6fbeac2415f07f10de181f0877ddf67ee299b885
Gecko: e8f6bdf8db3d
Version: 28.0a2
Firmware Version: v1.2-device.cfg
I need better clarity here on comment 15.

With each vcf file attached in this bug, does this issue reproduce on 1.3 or not? I'm looking to understand if there's different bugs here or not.
Flags: needinfo?(sarsenyev)
The issue does reproduce on the latest 1.3 MOZ RIL build

21_1_2014_5.vcf- for 1.3 reproduces only today's build, for 1.4 reproduces from 1/21
22_1_2014 6.vcf- for 1.3 reproduces only today's build, for 1.4 reproduces from 1/21
23_1_2014 6.vcf- for 1.3 reproduce on the latest and previous builds, for 1.4 issue reproducible 100% from 1/21 but also sometimes on the earlier 1.4 builds, but not on all devices and not 100% reproducible
Flags: needinfo?(sarsenyev)
I can reproduce it in 1.3 as well.


Seems to me as a bug in the throttling mechanism, it fails when importing 5 contacts that is what we read in memory before saving it as a block.

Pinging Sergi for more info
Flags: needinfo?(sergi.mansilla)
blocking-b2g: 1.4? → 1.3?
Attached file Pointer to PR 15656
Sergi can you review the patch?
Attachment #8364561 - Flags: review?(sergi.mansilla)
1.3+ per triage for DSDS
blocking-b2g: 1.3? → 1.3+
Assignee: nobody → francisco.jordano
Comment on attachment 8364561 [details] [review]
Pointer to PR 15656

Changing reviewer to have this in time frame for closing 1.3 ;)
Attachment #8364561 - Flags: review?(sergi.mansilla) → review?(jmcf)
Comment on attachment 8364561 [details] [review]
Pointer to PR 15656

thanks!
Attachment #8364561 - Flags: review?(jmcf) → review+
Flags: needinfo?(sergi.mansilla)
Target Milestone: --- → 1.3 C3/1.4 S3(31jan)
Landed:

https://github.com/mozilla-b2g/gaia/commit/994bf56beaa04bb63a5a0448a0a82ac93f399502
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Uplifted 994bf56beaa04bb63a5a0448a0a82ac93f399502 to:
v1.3: 443b07588116a34a9b7901882c98d29df2cea06f
Tested (02/03/2014) and WORKING
1.3
Gecko e01ea79
Gaia f9a37c7
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: