[B2G][Bluetooth][Tarako] Attempting to send files via bluetooth fails and results in unresponsive screen.

RESOLVED WORKSFORME

Status

defect
RESOLVED WORKSFORME
5 years ago
5 years ago

People

(Reporter: lmauritson, Assigned: xinhe.yan)

Tracking

unspecified
ARM
Gonk (Firefox OS)

Firefox Tracking Flags

(b2g-v1.3T affected)

Details

(Whiteboard: 1.3tarakorun2, OOM)

Attachments

(2 attachments)

Description:
When attempting to send files via bluetooth from the device the UI can become unresponsive. This first few transfers can be successful sometimes, but after that it will no longer work properly.

Repro Steps:
1) Update a Tarako to BuildID: 20140409004001
2) Open bluetooth settings and pair with another device.
3) Send multiple files to the other device via bluetooth using Gallery, Video, Contacts, etc.
4) Repeat step 4 until the device becomes unresponsive.

Actual:
The screen will become dark or unresponsive after a few attempts at transferring.

Expected:
Bluetooth transfers do not cause the UI to become unresponsive.

1.3T Environmental Variables:
Device: Tarako 1.3T MOZ
BuildID: 20140409004001
Gaia: 643f3e6676cbb89c62708a9f7cbef2edc795a552
Gecko: e757fdd55426
Version: 28.1
Firmware Version: sp8810

Repro frequency: 50%
Link to failed test case:
See attached: Video: http://youtu.be/rk3J-GE5omY, and logcat.
The video is somewhat long to try and show steps leading up to the issue. 
The logcat was taken alongside the video.
The issue starts at http://youtu.be/rk3J-GE5omY?t=53s
On 1.3 the screen can go dark for a moment when selecting bluetooth options, but I was unable to make the device's UI freeze.

1.3 Environmental Variables:
Device: Buri 1.3 MOZ
BuildID: 20140408004002
Gaia: 0a7a50129995f080c1df4d807a2334701701e8ed
Gecko: e3fca8c23e1d
Version: 28.0
Firmware Version: v1.2-device.cfg
My apologies, the link to the failed test case is here: https://moztrap.mozilla.org/manage/case/4092/
Was there something that you were playing before hand?

04-09 16:09:10.062   671   797 I SPRDAVCDecoder: onQueueFilled, 811, decRet: -1, dataLen: 0, dec_out.frameEffective: 0, mDecoderSwFlag: 1
04-09 16:09:10.062   671   797 F libc    : Fatal signal 11 (SIGSEGV) at 0x00000290 (code=1)


I see a decoder going and then crashing.  I think that's a possible different bug.  It might have helped caused an OOM situation.
Flags: needinfo?(lmauritson)
Whiteboard: 1.3tarakorun2 → 1.3tarakorun2, OOM
Keywords: qawanted
When selecting a video to send via bluetooth in the video app the file plays automatically, so yes.
Flags: needinfo?(lmauritson)
Can we get updated STR here then taking into account comment 3? I don't comment 0's STR shows the whole picture here.
mediaserver crashed in OMX AVCDEC

04-09 16:09:11.952    88    88 I DEBUG   :          #00  pc 0000c390  /system/lib/libomx_avcdec_sw_sprd.so (H264DecGetInfo)
04-09 16:09:11.962    88    88 I DEBUG   :          #01  pc 00006128  /system/lib/libstagefright_sprd_h264dec.so (_ZN7android14SPRDAVCDecoder13onQueueFilledEm)
04-09 16:09:11.962    88    88 I DEBUG   :          #02  pc 00012b7e  /system/lib/libstagefright_omx.so (_ZN7android22SprdSimpleOMXComponent17onMessageReceivedERKNS_2spINS_8AMessageEEE)
James,
Can you help this bug?
Flags: needinfo?(james.zhang)
Updated Repro Steps:
1) Update a Tarako to BuildID: 20140409004001
2) Open Bluetooth settings and pair with another device.
3) Open the Gallery app, select a picture, and send it via Bluetooth to another device.
4) Open the Video app, select a video (It will play) and send it via Bluetooth to another device.
5) Repeat steps 3 & 4 until the device becomes unresponsive.
Posted file OOM_Logs.zip
This can also result in an OOM crash if the user tries to send a lot of data (Say, 100 contacts or more) via Bluetooth.

1.3T Environmental Variables:
Device: Tarako 1.3T MOZ
BuildID: 20140414004001
Gaia: 0e7f21e61625b75a9149480cd5a259211549f020
Gecko: 3b02811c314a
Version: 28.1
Firmware Version: sp6821
Keywords: qawanted
I don't think the bug's actual results reflect the true state of the phone. The video shows that the UI is still responsive, it's just that bluetooth file transfer is failing. So here's some other things to analyze here:

1. Does the home button still work? Can I still use other apps?
2. What's the recovery path for this bug? Could I kill the gallery app & restart it to workaround this?
Keywords: qawanted
See also bug 996912, another sending file OOM on Tarako.
See Also: → 996912
xinhe, please check this issue after driver upgrade.
Flags: needinfo?(james.zhang) → needinfo?(xinhe.yan)
(In reply to Jason Smith [:jsmith] from comment #10)
> I don't think the bug's actual results reflect the true state of the phone.
> The video shows that the UI is still responsive, it's just that bluetooth
> file transfer is failing. So here's some other things to analyze here:
> 
> 1. Does the home button still work? Can I still use other apps?
> 2. What's the recovery path for this bug? Could I kill the gallery app &
> restart it to workaround this?

hi lionel, could you help to confirm comment 10's two problems while you encountering unresponsive issue?
Flags: needinfo?(lmauritson)
Hi xinhe, 

Please check this issue.
Assignee: nobody → xinhe.yan
I test on latest build. no unresponsive after repeat send file 20 times.
Flags: needinfo?(xinhe.yan)
Keep monitor this issue.


(In reply to Xinhe Yan from comment #15)
> I test on latest build. no unresponsive after repeat send file 20 times.
Keywords: qawanted
Lionel needs to come back with a response here to clear the qawanted field.
Keywords: qawanted
As shown at the end of the video the HOME button still functions.
Other apps can be launched.
The app can be killed and restarted.
Flags: needinfo?(lmauritson)
Keywords: qawanted
(In reply to Xinhe Yan from comment #15)
> I test on latest build. no unresponsive after repeat send file 20 times.

Can we verify this on the Moz side as well? There has been a bunch of changes that landed here recently.
Keywords: qawanted
I verify with today's daily build and it's fine
no unresponsive after repeat send file 15 times.

Gaia      8895b180ed636069473703d0e7b73086989601ce
Gecko     https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/7caf4b5abfce
BuildID   20140428014001
Version   28.1
Keywords: qawanted
According to Mike's verification, now the bug has "WORKSFORME" 


(In reply to Mike Lien[:mlien] from comment #20)
> I verify with today's daily build and it's fine
> no unresponsive after repeat send file 15 times.
> 
> Gaia      8895b180ed636069473703d0e7b73086989601ce
> Gecko    
> https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/7caf4b5abfce
> BuildID   20140428014001
> Version   28.1
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.