Closed
Bug 1003979
Opened 11 years ago
Closed 11 years ago
[B2G][Open_C][Dialer]Contact picture does not appear in the call log
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Tracking
(blocking-b2g:2.0+, b2g-v1.4 unaffected, b2g-v2.0 fixed)
Tracking | Status | |
---|---|---|
b2g-v1.4 | --- | unaffected |
b2g-v2.0 | --- | fixed |
People
(Reporter: astole, Assigned: jmcf)
References
Details
(Keywords: regression)
Attachments
(3 files)
The image associated with a contact does not show up in the call log or messages timeline. The contact's picture appears in the messages timeline if the app is killed, but does not show up in the call log when the dialer app is killed.
Repro Steps:
1) Update a Open_C to BuildID: 20140430040206
2) Create a contact with a picture associated with it
3) Call contact
4) After call has been completed, navigate to call log
Actual:
The area where the image should be located is a blank circle
Expected:
The image associated with the contact shows up
2.0 Environmental Variables:
Device: Open_C 2.0 Master M-C MOZ
BuildID: 20140430040206
Gaia: badc73ee7f108fa631150bded0cc57e92aad810e
Gecko: e19812f56952
Version: 32.0a1
Firmware Version: P821A10-ENG_20140410
Repro frequency: 100%
See attached: Screenshot, logcat
Reporter | ||
Comment 1•11 years ago
|
||
This issue does not occur on the latest 1.4 on Open_C. The visual design is different on 1.4.
1.4 Environmental Variables:
Device: Open_C 1.4 MOZ
BuildID: 20140430000201
Gaia: 81e97c3ca58be0487292011bc59efa4cebab30be
Gecko: 123485e733d5
Version: 30.0
Firmware Version: P821A10-ENG_20140410
Reporter | ||
Comment 2•11 years ago
|
||
This issue does NOT occur on Master M-C build on Buri
2.0 Master M-C Environmental Variables:
Device: Buri 2.0 Master M-C MOZ
BuildID: 20140430040206
Gaia: badc73ee7f108fa631150bded0cc57e92aad810e
Gecko: e19812f56952
Version: 32.0a1
Firmware Version: V1.2-device.cfg
status-b2g-v1.4:
--- → unaffected
status-b2g-v2.0:
--- → affected
Summary: [B2G][Dialer]Contact picture does not appear in the call log → [B2G][Open_C][Dialer]Contact picture does not appear in the call log
Updated•11 years ago
|
blocking-b2g: --- → 2.0?
Keywords: regression,
regressionwindow-wanted
Comment 3•11 years ago
|
||
Adding contact's picture withing call log is part of the work to be done under Visual Refresh for 2.0, adding the corresponding dependencies
Depends on: 951700
Comment 4•11 years ago
|
||
it seems to be an OpenC specific bug, perhaps adding the new rounded contact's photo in the call log according to the 2.0 Visual Refresh proposal in a device with different resolution (as the OpenC)is causing the error.
Andrew, if you could be so kind of checking in the OpenC (master) if the contact's photo is shown in the thread list screen of the Messaging application? Just to try to figure out if the photos change are affecting to the messaging application too in the OpenC.
Flags: needinfo?(astole)
Comment 5•11 years ago
|
||
I believe this is a regression from Building blocks. We haven't touched the call log yet in Dialer. And I'm seeing those weird empty circles in the Message app on my dogfooding phone.
Arnau: Have you landed anything in that area in building blocks?
Flags: needinfo?(arnau)
Sorry, I cannot reproduce this.
I don't have an open C, but I've followed the steps described in comment 1, and I can see the picture in my Peak, flashed with current master @1.5.
Flags: needinfo?(arnau)
Reporter | ||
Comment 7•11 years ago
|
||
Confirmed, as well as with comment 5, that the contact's photo is not seen in the messages app. However, if the messages app is killed then the picture shows up when the app is reopened. Killing and reopening the dialer app does not make it so the picture shows up.
Flags: needinfo?(astole)
Comment 8•11 years ago
|
||
(In reply to Andrew Stole from comment #7)
> Confirmed, as well as with comment 5, that the contact's photo is not seen
> in the messages app. However, if the messages app is killed then the picture
> shows up when the app is reopened. Killing and reopening the dialer app does
> not make it so the picture shows up.
That bug has also been reported in Bug 1003789 - [VR][Messaging] Contact's photo doesn't appear in the message inbox, and it's happennig in buri too.
Andrew, you have you tested it in the OpenC too, haven't you?
Updated•11 years ago
|
Flags: needinfo?(astole)
Reporter | ||
Comment 9•11 years ago
|
||
Yes, I tested it on OpenC as well and saw it occur.
Flags: needinfo?(astole)
Comment 10•11 years ago
|
||
Hi,
Tested with today's (5/5) master build:
Device: Hamachi
BuildId: 20140505081601
Gecko: 6fafefc
Gaia: 265062
Platform version: 32.0a1
With the following STRs, the issue always occurs:
1- Tap on Contacts app
2- Create a contact (with image)
3- Tap on the contact created (contacts details) -> Tap on call
4- Tap on "home" button
5- Tap on dialer app
6- Tap on call log -> The contact image is properly shown
7- Being in call log, tap on contacts icon
8- Access to contacts details -> Tap on call
9- Tap on call log icon -> The contact image is not shown
Updated•11 years ago
|
blocking-b2g: 2.0? → 2.0+
Updated•11 years ago
|
QA Contact: ckreinbring
Comment 11•11 years ago
|
||
B2G-Inbound Regression window
No repro:
Build ID: 20140429053002
Gecko: https://hg.mozilla.org/integration/b2g-inbound/rev/0d45d99bba09
Gaia: 1892ba3a857f7e9cd1d2a0cf1c87481f3dcaca2c
Platform Version: 32.0a1
Firmware Version: V1.2-device.cfg
Repro:
Build ID: 20140429083002
Gecko: https://hg.mozilla.org/integration/b2g-inbound/rev/81dc74c9a5a2
Gaia: feef47764b9ae49fa5cc28a07186db7905481297
Platform Version: 32.0a1
Firmware Version: V1.2-device.cfg
Old Gaia / New Gecko - OK
New Gaia / Old Gecko - Fail
https://github.com/mozilla-b2g/gaia/compare/1892ba3a857f7e9cd1d2a0cf1c87481f3dcaca2c...feef47764b9ae49fa5cc28a07186db7905481297
Keywords: regressionwindow-wanted
Comment 12•11 years ago
|
||
Caused by bug 990478.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jmcf
Updated•11 years ago
|
Status: NEW → ASSIGNED
Updated•11 years ago
|
Flags: needinfo?(noef)
Assignee | ||
Comment 14•11 years ago
|
||
I have my doubts this has to do with bug 990478.
By inspecting the logcat it can be found
E/GeckoConsole( 3068): [JavaScript Error: "IndexedDB UnknownErr: IDBTransaction.cpp:864"]
E/GeckoConsole( 3928): Security Error: Content at app://communications.gaiamobile.org/dialer/index.html#keyboard-view may not load data from blob:11a11751-710b-426a-bdbc-5f59ae1b6cf1.
Assignee | ||
Comment 15•11 years ago
|
||
the problem was a race condition between URL rovoke operation and the assignment to the background img. I have just put a delay in the URL revoke. please let me know what do you think
thanks
Attachment #8417911 -
Flags: review?(etienne)
Comment 16•11 years ago
|
||
Comment on attachment 8417911 [details]
18971.html
The |URL.revokeObjectURL(this.src);| line is commented, so with this patch we're just never revoking... :/
And I think we should be able to add a test thanks to sinon.useFakeTimers.
But before you make another version of the patch I'd like to ask Julien for recommendation since I recall the SMS app had a very similar issue recently.
Attachment #8417911 -
Flags: review?(etienne) → review-
Flags: needinfo?(felash)
Assignee | ||
Comment 17•11 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #16)
> Comment on attachment 8417911 [details]
> 18971.html
>
> The |URL.revokeObjectURL(this.src);| line is commented, so with this patch
> we're just never revoking... :/
Oh yes, my mistake, thanks for spotting
> And I think we should be able to add a test thanks to sinon.useFakeTimers.
sure
>
> But before you make another version of the patch I'd like to ask Julien for
> recommendation since I recall the SMS app had a very similar issue recently.
ok, let me know
Comment 18•11 years ago
|
||
Yes, Bug 994553 is what happens in the SMS app.
I had a lengthy discussion with Gecko developers, and here are the important points:
* we need to always revoke the blob url
* but if the blob is not an in-memory blob (eg: backed with a file, or IndexedDB), then it's fine to not revoke it asap, because it does not take much memory.
So I can have 2 suggestions for you if the blob is not in-memory:
* use a setTimeout with a big delay (IMO 1 second is not enough, you can still have the issue on slow or loaded devices; better use eg 60 seconds). There is one issue with that: eventually, Gecko developers want to lazy load the images used as background-image; I mean that if the image is not displayed, the url won't even be fetched. This is not happening right now though.
* or revoke the url when the element is removed from the page (not always easy to do)
If the blob is in-memory, then you should try to see why it's the case, but I think it's not here, right?
Flags: needinfo?(felash)
Assignee | ||
Comment 19•11 years ago
|
||
Etienne,
Please let me know your thoughts about how to continue with this
thanks
Flags: needinfo?(etienne)
Updated•11 years ago
|
Target Milestone: --- → 2.0 S2 (23may)
Comment 20•11 years ago
|
||
(In reply to Jose Manuel Cantera from comment #19)
> Etienne,
>
> Please let me know your thoughts about how to continue with this
After discussing it with Julien I think our best bet right now is to do the revoke in a long setTimeout and cover it with a test.
Thanks!
Flags: needinfo?(etienne)
Assignee | ||
Comment 21•11 years ago
|
||
Comment on attachment 8417911 [details]
18971.html
PR updated with the latest recommendations, including one test
Attachment #8417911 -
Flags: review- → review?(etienne)
Comment 22•11 years ago
|
||
Comment on attachment 8417911 [details]
18971.html
Really cool to see this coming with a test.
Can we just change the order to do onload/onerror _then_ the revoke timeout instead of timeout first then wait for load?
Attachment #8417911 -
Flags: review?(etienne)
Assignee | ||
Updated•11 years ago
|
Attachment #8417911 -
Flags: review?(etienne)
Assignee | ||
Comment 23•11 years ago
|
||
Comments adressed
Comment 24•11 years ago
|
||
Comment on attachment 8417911 [details]
18971.html
Thanks!
Attachment #8417911 -
Flags: review?(etienne) → review+
Assignee | ||
Comment 25•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Comment 26•11 years ago
|
||
veirfy with Flame KK v180 + v2.0 gaia/gecko, it's fine
Gaia 7edd3b0b9f65c3dde235c732d270e43e055a1254
Gecko https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/13e04ab68621
BuildID 20140914162307
Version 32.0
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in
before you can comment on or make changes to this bug.
Description
•