Closed Bug 1237125 Opened 8 years ago Closed 6 years ago

USB Mass storage will not connect while the music app is open.

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.6?, b2g-v2.2 unaffected, b2g-v2.5 affected, b2g-master affected)

RESOLVED WONTFIX
blocking-b2g 2.6?
Tracking Status
b2g-v2.2 --- unaffected
b2g-v2.5 --- affected
b2g-master --- affected

People

(Reporter: JMercado, Unassigned)

References

()

Details

(Keywords: regression, Whiteboard: [2.6-Daily-Testing][Spark])

Attachments

(1 file)

Attached file UMS_did_not_open.txt
Description:
If the music application is open, the device will not open USB storage when connected to a computer.  This does NOT occur with the Video and Gallery apps or when using MTP instead of UMS.

Pre-requsites:
1) Enable USB storage

Repro Steps:
1) Update a Aries to 20160105105910
2) Open the music application
3) Connect the device to a computer

Actual:
USB Mass Storage is not opened as long as the music app is running.

Expected:
USB Mass Storage has priority and will oepn 

Environmental Variables:
Device: Aries 2.6
Build ID: 20160105105910
Gaia: 78b2bc4cad3fcf83cbbbe4aeb77079cf956972cf
Gecko: 29258f59e5456a1a518ccce6b473b50c1173477e
Gonk: a19052e4389c3ae2d8fc3e7a74a475401baacc56
Version: 46.0a1 (2.6)
Firmware Version: D5803_23.1.A.1.28_NCB.ftf
User Agent: Mozilla/5.0 (Mobile; rv:46.0) Gecko/46.0 Firefox/46.0

Repro frequency: 10/10
See attached: logcat and video
This issue also occurs on the latest Flame 2.6 and Aries 2.5 builds.

Actual Results: USB Mass Storage is not opened as long as the music app is running.

Environmental Variables:
Device: Flame 2.6
BuildID: 20160105030240
Gaia: 78b2bc4cad3fcf83cbbbe4aeb77079cf956972cf
Gecko: 29258f59e5456a1a518ccce6b473b50c1173477e
Gonk: 040bb1e9ac8a5b6dd756fdd696aa37a8868b5c67
Version: 46.0a1 (2.6) 
Firmware Version: v18D
User Agent: Mozilla/5.0 (Mobile; rv:46.0) Gecko/46.0 Firefox/46.0

Environmental Variables:
Device: Aries 2.5
BuildID: 20160105132122
Gaia: 50c5babe34fb2b055da34fdde6847aabffe73246
Gecko: d8517b54e27903b9f0a94d76470b4f8126e09eb0
Gonk: a19052e4389c3ae2d8fc3e7a74a475401baacc56
Version: 44.0 (2.5) 
Firmware Version: D5803_23.1.A.1.28_NCB.ftf
User Agent: Mozilla/5.0 (Mobile; rv:44.0) Gecko/44.0 Firefox/44.0


This issue does NOT occur on the latest Flame 2.2 build

Actual Results:  USB Mass Storage has priority over the music app.

Environmental Variables:
Device: Flame 2.2
BuildID: 20151218032501
Gaia: 885647d92208fb67574ced44004ab2f29d23cb45
Gecko: 2120b3e6f680
Gonk: bd9cb3af2a0354577a6903917bc826489050b40d
Version: 37.0 (2.2) 
Firmware Version: v18D
User Agent: Mozilla/5.0 (Mobile; rv:37.0) Gecko/37.0 Firefox/37.0
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
[Blocking Requested - why for this release]:

This did not work like this in the past and the end user is not given a message if this is intended behavior so nominating to block on this.
blocking-b2g: --- → 2.6?
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
This is the most accurate "Last Working" and "First Broken" builds that we have in b2g-inbound. And there is no more accurate builds in Mozilla-inbound and Nightly. Hope this helps.

b2g-inbound Regression Window:

Last Working Environmental Variables:
Build ID               20150919012935
Gaia Revision          e67d319d0854e32e23210784eb9c4e1b8a025adb
Gaia Date              2015-09-19 07:42:05
Gecko Revision         https://hg.mozilla.org/integration/b2g-inbound/rev/9718f1e5a391dfc85138f04bd26db8479a0a80dc
Gecko Version          43.0a1
Device Name            flame
Firmware(Release)      4.4.2
Firmware(Incremental)  eng.cltbld.20150820.183055
Firmware Date          Thu Aug 20 18:31:07 EDT 2015
Bootloader             L1TC000118D0

First Broken Environment Variables:
Build ID               20151001002926
Gaia Revision          bd8ff00faac97ad6a2df5a6217910b8d295d56a3
Gaia Date              2015-10-01 06:59:53
Gecko Revision         https://hg.mozilla.org/integration/b2g-inbound/rev/b8f68e468d43c13a13081a911c73718a6954edcb
Gecko Version          44.0a1
Device Name            flame
Firmware(Release)      4.4.2
Firmware(Incremental)  eng.cltbld.20150820.183055
Firmware Date          Thu Aug 20 18:31:07 EDT 2015
Bootloader             L1TC000118D0

First Broken Gaia & Last Working Gecko – issue DOES repro
Gaia Revision          bd8ff00faac97ad6a2df5a6217910b8d295d56a3
Gecko Revision         https://hg.mozilla.org/integration/b2g-inbound/rev/9718f1e5a391dfc85138f04bd26db8479a0a80dc

First Broken Gecko & Last Working Gaia – issue DOES NOT repro
Gaia Revision          e67d319d0854e32e23210784eb9c4e1b8a025adb 
Gecko Revision         https://hg.mozilla.org/integration/b2g-inbound/rev/b8f68e468d43c13a13081a911c73718a6954edcb

Gaia pushlog:
https://github.com/mozilla-b2g/gaia/compare/e67d319d0854e32e23210784eb9c4e1b8a025adb...bd8ff00faac97ad6a2df5a6217910b8d295d56a3

Waitting for someone else to do a smaller regressionwindow.
QA Whiteboard: [MGSEI-Triage+]
QA Contact: jmercado
This issue only occurs on Music NGA and has been occurring since Music NGA has had the ability to play music.

B2g-inbound Regression Window

Last Working 
Environmental Variables:
Device: Flame 2.5
BuildID: 20150817083238
Gaia: 3e450f495a2a72ffc89ff3e0485a087e8c0deae3
Gecko: fe5473db08cd9ae9d8d80f4f51fd38335db638c7
Version: 43.0a1 (2.5) 
Firmware Version: v18D
User Agent: Mozilla/5.0 (Mobile; rv:43.0) Gecko/43.0 Firefox/43.0

First Broken 
Environmental Variables:
Device: Flame 2.5
BuildID: 20150817103438
Gaia: d9d99f32762975a370f1abd34a3512bd6fe29111
Gecko: 3362fc869bdb536bd3e7dea6aa273482c223270a
Version: 43.0a1 (2.5) 
Firmware Version: v18D
User Agent: Mozilla/5.0 (Mobile; rv:43.0) Gecko/43.0 Firefox/43.0

ast Working gaia / First Broken gecko - Issue does NOT occur
Gaia: 3e450f495a2a72ffc89ff3e0485a087e8c0deae3
Gecko: 3362fc869bdb536bd3e7dea6aa273482c223270a

First Broken gaia / Last Working gecko - Issue DOES occur
Gaia: d9d99f32762975a370f1abd34a3512bd6fe29111
Gecko: fe5473db08cd9ae9d8d80f4f51fd38335db638c7

Gaia Pushlog: https://github.com/mozilla-b2g/gaia/compare/3e450f495a2a72ffc89ff3e0485a087e8c0deae3...d9d99f32762975a370f1abd34a3512bd6fe29111
Blocks: 1194342
QA Whiteboard: [MGSEI-Triage+] → [MGSEI-Triage+][QAnalyst-Triage?]
Justin can you please take a look at this issue?
Flags: needinfo?(ktucker)
Flags: needinfo?(jdarcangelo)
QA Whiteboard: [MGSEI-Triage+][QAnalyst-Triage?] → [MGSEI-Triage+][QAnalyst-Triage+]
Flags: needinfo?(ktucker)
USB Mass Storage (in particular UMS mode) won't connect to the PC if there are files open on the volume being shared.

When the AutoMounter detects open files it prints a message in logcat indicating which files are currently and which app/process has them open.

The logcat shows this:

> 01-05 16:05:39.839   321   675 W AutoMounter: The following files are open under '/storage/sdcard1'
> 01-05 16:05:39.839   321   675 W AutoMounter:   PID: 3310 file: '/storage/sdcard1/Attitude City - Ninja Sex Party/NinjaSexParty-AttitudeCity-03-AttitudeCity.mp3' app: 'Music' comm: 'Music' exe: '/system/b2g/b2g'
> 01-05 16:05:39.849   321   675 W AutoMounter: UpdateState: Mounted volume sdcard1 has open files, not sharing or formatting
> 01-05 16:05:39.849   321   675 I AutoMounter: UpdateState: Volume sdcard is Mounted and inserted @ /mnt/shell/emulated/0 gen 1 locked 0 sharing x
> 01-05 16:05:39.849   321   675 I AutoMounterSetting: Changing status from 'Disabled' to 'FilesOpen'
> 01-05 16:05:40.849   321   675 I AutoMounter: UpdateState: ums:A1C1E1 mtp:A1C0E0 mode:1 usb:1 tryToShare:1 state:UMS_CONFIGURED
> 01-05 16:05:40.849   321   675 I AutoMounter: UpdateState: Volume sdcard1 is Mounted and inserted @ /storage/sdcard1 gen 4 locked 0 sharing en-y
(In reply to Jayme Mercado [:JMercado] from comment #5)
> Justin can you please take a look at this issue?

As Dave mentioned in Comment 6, UMS will prevent connection as long as files are open. I don't believe anything can be done in this case.
Flags: needinfo?(jdarcangelo)
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: