Closed
Bug 818623
Opened 12 years ago
Closed 11 years ago
[Dialer] if an outside call hangs up and calls again, the second call does not ring nor give the incoming overlay
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect, P1)
Tracking
(blocking-b2g:tef+, firefox21 fixed, b2g18+ fixed, b2g18-v1.0.0 fixed)
People
(Reporter: nhirata, Assigned: arcturus)
References
Details
(Whiteboard: [target:12/21])
Attachments
(1 file)
## Environment : Unagi phone, build 2012-12-4 ## Repro : 1. make sure that the phone is unlocked 2. call b2g phone on another device 3. hang up 4. immediately call b2g phone again ## Expected : 1. another incoming call from the same number, overlay should appear ## Actual : 1. overlay doesn't appear, no ringing ## Note : 1. I have had friends that hang up and called me again immediately like this.
Reporter | ||
Comment 1•12 years ago
|
||
maybe related to bug 811655; note if the phone is locked, it will get the call. locked screen state versus nonlocked screen state seems to show different results.
Updated•12 years ago
|
Assignee: nobody → gfs07
blocking-basecamp: ? → +
Priority: -- → P3
Updated•12 years ago
|
Assignee: gfs07 → alberto.pastor
Updated•12 years ago
|
Assignee: alberto.pastor → gfs07
Updated•12 years ago
|
Assignee: gfs07 → alberto.pastor
Comment 2•12 years ago
|
||
After investigating a little bit, it seems that telephony.calls.length == 0 every time the Dialer is open, and that's why the second time you call it fails. In fact, it will fail on firts time as well if you previously open the Dialer. This line is the one that closes the oncall when telephony.calls.length == 0 https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/js/dialer.js#L304 I would say that's a platform issue, but I don't know how that is possibly related to the fact the Dialer app is open or closed. CCing some people to get new ideas. Jose Antonio, any idea in the Backend side?
Flags: needinfo?(josea.olivera)
Comment 3•12 years ago
|
||
(In reply to Alberto Pastor from comment #2) > After investigating a little bit, it seems that telephony.calls.length == 0 > every time the Dialer is open, and that's why the second time you call it > fails. In fact, it will fail on firts time as well if you previously open > the Dialer. > > This line is the one that closes the oncall when telephony.calls.length == 0 > > https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/ > js/dialer.js#L304 > > I would say that's a platform issue, but I don't know how that is possibly > related to the fact the Dialer app is open or closed. > > CCing some people to get new ideas. > > Jose Antonio, any idea in the Backend side? In bug 812368, we sent out 'telephony-new-call' system message right at the moment when we receive a ringing call notification from the modem, for solving bug 812059, though at that time we do not have complete information about the new call. We think it's okay without complete call info because we just want to start bringing up the dialer content process while the modem is getting ready to tell us more. However, when the dialer is open, the DOM may not acquire any call. Also, in bug 811192, I added https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/js/dialer.js#L304 but I realized that I should be more careful of the condition for 'exitCallScreen'. I will say this is rather a gaia issue and IMHO, the possible approach could be listening to 'callschanged' event first and then checking 'telephony.calls.length' to make sure that 'the zero calls length' results from a call ending, instead of the DOM being not ready. How do you think about this? Thanks :)
Flags: needinfo?(josea.olivera)
Comment 4•12 years ago
|
||
Hey Alberto, I'm still unable to reproduce this, still happening for you?
Comment 5•12 years ago
|
||
If reproducible, this would likely be a P1 certification blocker. If not, Resolved/WFM.
Priority: P3 → P1
Target Milestone: --- → B2G C3 (12dec-1jan)
Comment 6•12 years ago
|
||
I'm still able to reproduce it with last gecko/gaia. Someone in qa can take a look? In the maintime, I'm going to work in a quickfix in gaia for not depending on telephony.calls.length in the way we are doing right now as hsinyi was suggesting. Thanks!
Flags: needinfo?(nhirata.bugzilla)
Updated•12 years ago
|
Whiteboard: [target:12/21]
Updated•12 years ago
|
Assignee: alberto.pastor → francisco.jordano
Comment 7•12 years ago
|
||
(In reply to Alberto Pastor from comment #6) > I'm still able to reproduce it with last gecko/gaia. Someone in qa can take > a look? > Lastest == m-c + master ? Can you include the changeset you use to reproduce, we fail to do it here :)
Keywords: qawanted
Comment 8•12 years ago
|
||
Driving retriage: Continued problems reproducing, blocking-. If we get reports from other sources able to reproduce w/ steps, please re-nominate.
blocking-basecamp: + → -
tracking-b2g18:
--- → +
Comment 9•12 years ago
|
||
I can reproduce this, exactly as described in the STR. I can make the bug go away if I kill the dialer app after the first call. This is with a gecko build from vingtetun. I don't know the details of the build. Renominating.
blocking-basecamp: - → ?
Comment 10•12 years ago
|
||
(In reply to David Flanagan [:djf] from comment #9) > I can reproduce this, exactly as described in the STR. > > I can make the bug go away if I kill the dialer app after the first call. > > This is with a gecko build from vingtetun. I don't know the details of the > build. > > Renominating. This is a build against m-c and I can not reproduce it using b2g18.
Comment 11•12 years ago
|
||
I can also reproduce this with the phone asleep. With the phone sleeping, the first call rings normally, and I answer and hang up. Then, I put the phone back to sleep. Then I call again. This time the phone wakes up but does not diplay the answer controls. Sometimes, there is a partial ring, less than 1 second of the ring tone, but then silence and now way to answer. When I hang up on the other phone, the device goes back to sleep, so it seems to know that the call has disconnected. If I wake the phone up and go to the homescreen and kill the dialer app, then the phone starts working again.
Comment 12•12 years ago
|
||
Even if this only occurs in m-c, I think we need to understand it and fix it so it doesn't come back and bite us later in the product cycle. The fact that killing and restarting the Gaia app fixes the bug makes me think that we can at least guard against or workaround this bug in Gaia.
Comment 13•12 years ago
|
||
I've also reproduced this bug with out the hang up step. If I answer the first call and then disconnect from either phone, I sometimes don't receive the second call. Nothing seems consistent, though.
Updated•12 years ago
|
blocking-basecamp: ? → +
Target Milestone: B2G C3 (12dec-1jan) → B2G C4 (2jan on)
Comment 14•12 years ago
|
||
Hi, I think the bug is when receiving a call and the dialer is already open. It doesn't matter if you answered/hanged up the previous call. As I said in https://bugzilla.mozilla.org/show_bug.cgi?id=818623#c2 , we are checking if telephony.calls.length > 0, and for some strange reason, it returns 0 when the dialer is already open.
Comment 15•12 years ago
|
||
(In reply to Alberto Pastor from comment #14) > Hi, > > I think the bug is when receiving a call and the dialer is already open. It > doesn't matter if you answered/hanged up the previous call. As I said in > https://bugzilla.mozilla.org/show_bug.cgi?id=818623#c2 , we are checking if > telephony.calls.length > 0, and for some strange reason, it returns 0 when > the dialer is already open. We are checking telephony.calls.length in the app frame (and not the attention screen) to avoid this (or try to avoid it :)) Maybe we need another work around while waiting for bug 823958.
Assignee | ||
Comment 16•11 years ago
|
||
Hi all, I'm unable to reproduce this after Etienne change in bug 822722. I've tried several cases and both, me and Alberto, are not able to reproduce with the current gaia code and latest from m-c. If we comment this line: https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/js/dialer.js#L105 We will be able to reproduce it, constantly. So will close it as WFM, cause the workaround in gaia seems to be working. Of course waiting for bug 823958 to be solved ;)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Updated•11 years ago
|
Flags: needinfo?(nhirata.bugzilla)
Reporter | ||
Comment 17•11 years ago
|
||
Something seemed to have gotten fixed. I am guessing from comment 16: Gecko http://hg.mozilla.org/releases/mozilla-b2g18/rev/f2460bf17811 Gaia 693a1b8e123eb9e8084231692cc8d89eba182be5 BuildID 20130114230201 Version 18.0 Otoro
Status: RESOLVED → VERIFIED
Comment 18•11 years ago
|
||
Sorry, we need to reopen this. Both m-c or b2g18 build doesn't work. STR ============================== 1. Call b2g phone from another mobile. 2. Hang up. 3. Call again. Expected ============================== The second call should ring. Actual ============================== The second call doesn't ring. Note ============================== If the Dialer app doesn't launch then the call will always ring. It doesn't ring only when the Dialer app is alive. That's why the second call will fail because the Dialer app has been launched by the first call. Therefore, if you kill the Dialer app after the first call, then the second call will succeed to ring.
Status: VERIFIED → REOPENED
Resolution: WORKSFORME → ---
Comment 19•11 years ago
|
||
(In reply to Gene Lian [:gene] [:clian] from comment #18) > Sorry, we need to reopen this. Both m-c or b2g18 build doesn't work. Correction: after more testings with Hsin-Yi, the b2g18 is working but not for m-c. The most weird thing is, if this is a Gaia issue, why it doesn't work for m-c? Also, it doesn't meet the comment #16, which was saying the m-c was working well. Not sure if we need to nominate for tef+ if it doesn't affect b2g18. However, I think this bug is horrible and definitely needs too be fixed even for m-c, because it potentially means my friend cannot reach me anymore after our first chat.
blocking-b2g: --- → tef?
Comment 20•11 years ago
|
||
Is not a gaia issue. We can try to workaround it, but the real problem comes from Bug 823958. I'm not sure why now is working with b2g18 and not m-c, but what is clear is that the problem is we try to access some information that returns null, not because it is null but because the info is not ready yet. Apparently the info is ready sooner depending on the build you use. In my opinion, this is a serious problem. We need to find a way to workaround it in Gaia in the meanwhile Bug 823958 is not fixed. (In reply to Gene Lian [:gene] [:clian] from comment #19) > (In reply to Gene Lian [:gene] [:clian] from comment #18) > > Sorry, we need to reopen this. Both m-c or b2g18 build doesn't work. > > Correction: after more testings with Hsin-Yi, the b2g18 is working but not > for m-c. The most weird thing is, if this is a Gaia issue, why it doesn't > work for m-c? Also, it doesn't meet the comment #16, which was saying the > m-c was working well. > > Not sure if we need to nominate for tef+ if it doesn't affect b2g18. > However, I think this bug is horrible and definitely needs too be fixed even > for m-c, because it potentially means my friend cannot reach me anymore > after our first chat.
Assignee | ||
Comment 21•11 years ago
|
||
As Alberto says in comment 20 this is a problem related to the backend. It's already workarounded in gaia, the more we try to solve probably we will be adding more problems. I've requested the QA Telefonica team to try b2g18 backend to be tested in unagi, otoro and the two developers phones announced recently. If the problem cannot be reproduced we would like the tef+ (now implicit as a bb+) to be removed and fixed in previous releases via bug 823958
Flags: needinfo?(mbarone976)
Comment 22•11 years ago
|
||
From QA Telefonica team we can say that the problem only appeared once on unagi but never again with the same sample or others. We tried to reproduce the bug with otoro, unagi and the two developers phones. Don't know the conditions when the problem happened or how to reproduce it again. Naoki, since you saw this problem at the first place, or Gene, as you reopened the bug, could you please try to reproduce it with the latest build? Thanks Thanks
Comment 23•11 years ago
|
||
More info: Tested with all the devices with b2g18
Comment 24•11 years ago
|
||
Not a blocker until it's an issue on b2g18
Updated•11 years ago
|
blocking-b2g: tef? → -
Comment 25•11 years ago
|
||
(In reply to Isabel Rios [:isabel_rios] from comment #22) > Naoki, since you saw this problem at the first place, or Gene, as you > reopened the bug, could you please try to reproduce it with the latest > build? Thanks Yes, we don't have this problem on b2g18. It only happens on m-c.
status-b2g18:
--- → unaffected
status-firefox21:
--- → affected
Comment 26•11 years ago
|
||
I think we got the root cause. Bug 812368 produces this bug, which has been checked in into m-c but not for b2g18. However, that bug is a tef+ one and waiting for check-in. We need to fix the bug here or provide a follow-up for bug 812368, so that bug 812368 can safely be landed to b2g18 as well. Do we have any Gaia-solution for this second-call problem?
Blocks: 812368
Comment 27•11 years ago
|
||
'exitCallScreen' when we got notified there's no call.
Comment 28•11 years ago
|
||
Comment on attachment 705751 [details] Pull request to gaia Hi Etienne, The main concept is that, I think we should be more careful before asking callScreen to be closed. We open call screen when there's a new call, and it shall be to close the screen when we got notification that there's no call. This patch works well even with Bug 812368 applied to b2g-18. Could you help review this? Thank you :)
Attachment #705751 -
Flags: review?(etienne)
Updated•11 years ago
|
blocking-b2g: - → tef?
Comment 29•11 years ago
|
||
this bug blocks bug 812368 (which is TEF+) once bug 812368 lands, status-b2g18 will become affected. this fix needs to land on b2g18!
Comment 30•11 years ago
|
||
Comment on attachment 705751 [details]
Pull request to gaia
Nothing guarantees us that the callScreen will be loaded by the time we get notified that there is no call right? And then we won't get anymore notifications :/
That said worst case scenario we get a callScreen with no call and the user has to press the hang-up button to get out. Which is better than missing a call and less likely to happen. So feel free to land this.
Attachment #705751 -
Flags: review?(etienne) → review+
Comment 31•11 years ago
|
||
Could any Gaia members help with the merge? :) When it's done, then it's safe to land bug 812368, which is a tef+ and rushing to be landed today.
Assignee | ||
Comment 32•11 years ago
|
||
Landed https://github.com/mozilla-b2g/gaia/commit/63e87f0bbd4c1bc5ac5d2a372acae8e22f4beaa3
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 33•11 years ago
|
||
Hi this bug has been nominated again to be picked for branch 1.0.0. It was a tef+ before and will be a problem once that bug 812368 lands in b2g18. Thanks
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(mbarone976)
Updated•11 years ago
|
blocking-b2g: tef? → tef+
blocking-basecamp: + → ---
Comment 35•11 years ago
|
||
Marking b2g18 as affected due to bug 834350 and comment 33. We need to uplift this today. I'm talking with jhford about ensuring this makes it onto the v1-train and v1.0.0 branches.
Flags: needinfo?(jhford)
Updated•11 years ago
|
Comment 37•11 years ago
|
||
Verified fixed in pvt b2g18 user build. Gaia: Rev 7cacbcb8042b49d816a34de8e9767dcedefa6d84 B-D 2013-01-25 02:57:10 Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/32c2cc3e19ff BuildID 20130124140859 Version 18.0
Status: RESOLVED → VERIFIED
Comment 38•11 years ago
|
||
Smoketest regression Verified fixed Build 20130125070201 gecko:94a2d6fcdfde gaia:c814c79378b9 user can recieve incoming calls succesfully Reprod: 10/10 on 4 devices
Comment 39•11 years ago
|
||
Landed on mozilla-b2g18/gaia master prior to the 1/25 branching to mozilla-b2g18_v1_0_0/v1.0.0, updating status-b2g-v1.0.0 to fixed.
status-b2g18-v1.0.0:
--- → fixed
Comment 41•11 years ago
|
||
We have a regression. I can reproduce the exact same bug using the described steps above and the workaround in comment #9 works too. Hardware Revision: qcom Platform Version: 24.0a1 Build Identifier: 20130527104420 Git Commit Info: ca0af90c
You need to log in
before you can comment on or make changes to this bug.
Description
•