Closed Bug 984733 Opened 10 years ago Closed 10 years ago

[bluedroid]file transfer directly after pairing causes b2g to crash and restart

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

x86
macOS
defect
Not set
critical

Tracking

(blocking-b2g:1.4+)

RESOLVED DUPLICATE of bug 985949
blocking-b2g 1.4+

People

(Reporter: dietrich, Assigned: shawnjohnjr)

Details

(Keywords: crash, regression, Whiteboard: [b2g-crash][osrestartcrash])

Nexus 4, master, built Mar 17, 2014.

STR:

1. pair
2. send image to Mac
3. mac UI shows image transfer starting

Expected: transfer completes

Actual: b2 crashed and restarted

Doing a transfer at that point worked ok.
I'll take a first look.
Assignee: nobody → echou
Walter - Some questions for investigation:

1. Can you find out if this happening on 1.3? That will confirm if this is a regression or not.
2. This is a JB-specific bluetooth bug also, right?
3. Can you confirm this on 1.4 & get a crash report with this bug?
Severity: normal → critical
Flags: needinfo?(wachen)
Keywords: crash
Whiteboard: [b2g-crash]
Whiteboard: [b2g-crash] → [b2g-crash][osrestartcrash]
Summary: file transfer directly after pairing causes b2g to crash and restart → [bluedroid]file transfer directly after pairing causes b2g to crash and restart
(In reply to Jason Smith [:jsmith] from comment #2)
> Walter - Some questions for investigation:
> 
> 1. Can you find out if this happening on 1.3? That will confirm if this is a
> regression or not.
> 2. This is a JB-specific bluetooth bug also, right?
> 3. Can you confirm this on 1.4 & get a crash report with this bug?
Nexus 4 is using bluedroid stack, and we officially support bluedroid stack for 1.4.
We currently support two bluetooth stacks for JB. All shipping devices currently use bluez as back-end.
1. It's different backend stack for 1.3 (bluez) and nexus is using (bluedroid)
2. Let's say bluedroid specific bug
3. I think there is no official build of 1.4 nexus now. I will try to confirm later
Flags: needinfo?(wachen)
So if this is officially supported for 1.4, then should this be nomed to block for 1.4?
(In reply to Jason Smith [:jsmith] from comment #5)
> So if this is officially supported for 1.4, then should this be nomed to
> block for 1.4?
I think it's reasonable to nominate to blocker of 1.4.
Can you help to figure out the concrete reproducing steps?
I tried gaia=c250da9f, gecko=a742504b, i fail to reproduce the crash. I will increase REPS anyway, it will be good if you can help to test.
Flags: needinfo?(echang)
Hello Dietrich,
Is it 100% reproducible? Can you provide more information such as back trace?
Flags: needinfo?(dietrich)
About 10 times I tested, the phone restarted once with build of 17(jenkins-B2G.master.nexus4-264)

1. Nexus pairs up with a Mac.
2. Nexus sends a file to Mac.
3. Transfer completed, then Nexus restarted, and the icons on home screen overlapped. But not sure if it is the same as described in this bug.
4. but not reproducible all the time; Try with Ubuntu, but not able to reproduce.


Mar 19, 2014 (from shawn)
gaia=c250da9f, gecko=a742504b 

Mar 17, 2014
GECKO_REV=7ca769079e28439d2f91577d3c5dcc7b763578c8
GAIA_REV=8f802237927c7d5e024fb7dca054dd5efef6b2e6
GECKO_BRANCH=mozillaorg/master
GAIA_BRANCH=mozillaorg/master
BUILD_TAG=jenkins-B2G.master.nexus4-264
BuildID=20140317023054

Mar 17, 2014
GECKO_REV=ce1c96e4f6a16a5db6142b15622f8860007cbcaf
GAIA_REV=0701e08a025787481a5d23443c75be7473c866f5
GECKO_BRANCH=mozillaorg/master
GAIA_BRANCH=mozillaorg/master
BUILD_TAG=jenkins-B2G.master.nexus4-265
BuildID=20140317143054
Flags: needinfo?(echang)
Assignee: echou → shuang
blocking-b2g: --- → 1.4?
(In reply to Eric Chang [:ericcc] [:echang] from comment #9)
> About 10 times I tested, the phone restarted once with build of
> 17(jenkins-B2G.master.nexus4-264)
> 
> 1. Nexus pairs up with a Mac.
> 2. Nexus sends a file to Mac.
> 3. Transfer completed, then Nexus restarted, and the icons on home screen
> overlapped. But not sure if it is the same as described in this bug.
> 4. but not reproducible all the time; Try with Ubuntu, but not able to
> reproduce. 
I tried over 20 times with MacOSX 10.8.5, not be able to reproduce it. I'm not sure that is easier to reproduce on MacOSX 10.9. I will try it later.
Can you provide minidump and exact crashreporter symbol version?
Flags: needinfo?(echang)
That time my phone crashes which is right after the file transfer has been completed, the build is from TWCI #264, but according to Shawn, the symbol is not matching again the dump. I will try reproduce again.

But so far, I was not able to reproduce this issue as described in this bug.

Hi Dietrich,
Do you have more information on this? adb logcat or any other info to help? Rate to reproduce? Nexus build from PVT or by yourself? Thanks.
Flags: needinfo?(echang)
blocking-b2g: 1.4? → 1.4+
This time I hit issues getting the devices to pair, but didn't get the crash.

NOTE: I'm flashing between tests to ensure a clean environment.
Flags: needinfo?(dietrich)
I will have further update if i have backtrace.
Flags: needinfo?(echang)
Thanks, I tried like 30 times yesterday, with Mac 10.9.2, 10.9.0and ubuntu 12.4, pairing, file transfer, multiple file transfer, unpairing, my nexus works okay without crash.

GECKO_REV=7ca769079e28439d2f91577d3c5dcc7b763578c8
GAIA_REV=8f802237927c7d5e024fb7dca054dd5efef6b2e6
BuildID=20140317023054
Flags: needinfo?(echang)
Hi Eric, are you using Eng or User/Userdebug build?
Flags: needinfo?(echang)
I am using engineering build here.
Flags: needinfo?(echang)
We have identified one MOZ_ASSERT in bug 983590 while during with gecko debug build, i suspect this bug is also related to the fallout of bug 967364 which been mentioned in bug 983590.  But all this is just suspicion.
(In reply to Shawn Huang [:shuang] [:shawnjohnjr] from comment #17)
> We have identified one MOZ_ASSERT in bug 983590 while during with gecko
> debug build, i suspect this bug is also related to the fallout of bug 967364
> which been mentioned in bug 983590.  But all this is just suspicion.

bug 983590 merged into bug 985949.
https://hg.mozilla.org/mozilla-central/rev/3b1e6a7980d5
https://hg.mozilla.org/mozilla-central/rev/7a9c4ebb1ec6

Please test build which includes these patches.
Flags: needinfo?(dietrich)
Flags: needinfo?(echang)
I cannot reproduce it now, thanks everyone!
Flags: needinfo?(dietrich)
Per comment 17, 18 and 19, close as resolved duplicate of bug 985949.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(echang)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.