Closed Bug 959429 Opened 11 years ago Closed 7 years ago

[B2G[USB] "Memory card in use" prompt message blocks access to the video/audio/gallery library when USB cable is no longer attached

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v1.2 affected, b2g-v1.3 affected, b2g-v1.3T affected, b2g-v1.4 ?, b2g-v2.0 ?, b2g-v2.2 affected)

RESOLVED WONTFIX
Tracking Status
b2g-v1.2 --- affected
b2g-v1.3 --- affected
b2g-v1.3T --- affected
b2g-v1.4 --- ?
b2g-v2.0 --- ?
b2g-v2.2 --- affected

People

(Reporter: sarsenyev, Unassigned)

Details

(Whiteboard: burirun1.3-2, 1.3tarakorun2)

Attachments

(3 files)

Attached video Bug_video.mp4
Description: After connecting and disconnecting USB cable a few times, the prompt message is not disappearing and blocking access to the video/audio/gallery library when no USB cable is connected Prerequisites: Have some video/audio/gallery files on the device Repro Steps: 1) Updated Buri to BuildID: 20140113004002 2) Open the "Video" app when USB cable is attached and "USB storage" is enable in "Settings 3) Connect and disconnect USB cable a few times Actual: The prompt message "Memory card in use" is not disappear and blocking the access to the library Expected: The prompt message disappear every time when disconnecting USB cable Environmental Variables: Device: Buri 1.3 MOZ BuildID: 20140113004002 Gaia: b3fc4f712562ee92b0ed0bd17abc61be9a36a8da Gecko: 5bb1837de7c0 Version: 28.0a2 Firmware Version: v1.2-device.cfg Notes: Repro frequency: 80% See attached: video clip
Summary: [B2G[USB] "Memory card in use" prompt message blocks access to the video/audio/gallery library when USB no longer cable is attached → [B2G[USB] "Memory card in use" prompt message blocks access to the video/audio/gallery library when USB cable is no longer attached
Does this reproduce on 1.1 or 1.2?
Keywords: qawanted
After further research I noticed the issue reproduces only with my Memory SD card, seems like my memory card is corrupted it doesn't reproduce on 1.3 with another memory card
Status: NEW → RESOLVED
Closed: 11 years ago
Keywords: qawanted
Resolution: --- → WORKSFORME
(In reply to sarsenyev from comment #2) > After further research I noticed the issue reproduces only with my Memory SD > card, seems like my memory card is corrupted it doesn't reproduce on 1.3 > with another memory card Well, that implies there might be a bug here, but it's just dealing with a specific setup with your SD card. We should investigate this more.
Status: RESOLVED → REOPENED
Keywords: qawanted
Resolution: WORKSFORME → ---
I was able reproduce the issue when launched a video file on another 4GB SD card on 1.2 But I cannot reproduce it on 1.1, video is allowed to be played on the device when USB cable is attached and USB storage is enabled Device: Buri 1.2 COM BuildID: 20140113004002 Gaia: 539a25e1887b902b8b25038c547048e691bd97f6 Gecko: e672faf1e6a1 Version: 26.0 RIL Version: 01.02.00.019.102 Firmware Version: V1.2-device.cfg Environmental Variables: Device: Buri 1.1 MOZ BuildID: 20140113041201 Gaia: 6ff3a607f873320d00cb036fa76117f6fadd010f Gecko: 72322f5602a6 Version: 18.0 RIL Version: 01.02.00.019.102 Firmware Version: V1.2-device.cfg
A few questions: (1) Does the SD card where you are seeing it have any unsupported files on it? (2) Is the SD card close to being full? I wasn't able to reproduce it with 2 different SD cards using the latest 1.3 build. I tried pulling out the cable while videos were playing as well and didn't see any issues with 1.3
(In reply to Marcia Knous [:marcia - use needinfo] from comment #5) > A few questions: > > (1) Does the SD card where you are seeing it have any unsupported files on > > I wasn't able to reproduce it with 2 different SD cards using the latest 1.3 > it? > (2) Is the SD card close to being full? > build. I tried pulling out the cable while videos were playing as well and > didn't see any issues with 1.3 1) I tried both ways with supported and unsupported files, it's easy to reproduce on 1.3 when launch a video file and then connect and disconnect USB cable, I used for the test two 4GB Memory cards, I couldn't reproduce it with 2 GB 2) No the SD card is not full and not even close
I can reproduce this 100% with the following steps: 1) Update a Buri to BuildID: 20140124004002 2) Enable USB storage on the device in settings. 3) Connect the device to a computer via USB. 4) Open the gallery app on the device. >> The Memory card in use message will display. 5) On the computer dismount and format the SD card to something other than FAT (See video) 6) Disconnect the device from the computer The issue seems to occur when the device cannot access the SD card, whatever the reason. Video here: http://youtu.be/ZIu__yJuG6s 1.3 Environmental Variables: Device: Buri 1.3 MOZ BuildID: 20140124004002 Gaia: e5137ed5589d7f3bf0260b8920f874cd0f462f69 Gecko: a73b697b50b3 Version: 28.0a2 Firmware Version: v1.2-device.cfg
Whiteboard: burirun1.3-2 → burirun1.3-2, 1.3tarakorun2
on MADAI Device(B2G 1.4), This issue is reproduced. The steps are the below. ================================== Precondition : 1. Enable USB storage (from settings) 2. Enable Share using USB (settings -> Media storage) 3. Should have some videos in SD card Steps to reproduce: 1. Open video application and Play a video 2. Plug-in the USB cable 3. When the "Video can not be watched while plugged in / Unplug the phone to watch videos" pop-up is shown immediately remove the USB cable 4. Issue: The pop-up is still shown even after removing the USB cable this is easily reproduced. Please refer attached the video "Video_App_Reproduced.mp4" * Attaced video link : http://blogattach.naver.com/58cd44f4e6b5bc604eaacbffc02452238ad128c476/20140520_256_blogfile/1024hyeyoung_1400574088347_8fgKV9_mp4/Video_App_Reproduced%2801%29.mp4?type=attachment ================================== also, I attached the log. ==================== (1) main_ok.log : http://blogattach.naver.com/dc49c073613f38e4ca2e4f7b44a0d6a70e55ac4f95/20140520_13_blogfile/1024hyeyoung_1400573686610_2uEqbo_log/main_ok.log?type=attachment (2) main_NG.log: http://blogattach.naver.com/46d35aeaffa3a27e50b4d5e1de3a4c3d94cf36daed/20140520_21_blogfile/1024hyeyoung_1400573689687_44TcK9_log/main_NG.log?type=attachment ================== If you check the log I attached, you can find that The state was not changed to "unmount" when connecting usb cable. * Success Case. ========================================== <main_ok.log> 1890 AutoMounter: UsbCable switch device: 1 state: plugged 1891 AutoMounter: Calling UpdateState due to USBCableEvent 1892 AutoMounter: UpdateState: umsAvail:1 umsEnabled:1 mode:1 usbCablePluggedIn:1 tryToShare:1 1893 AutoMounter: UpdateState: Volume sdcard1 is Mounted and inserted @ /storage/sdcard1 gen 1 locked 0 sharing y 1894 VolumeManager: Volume sdcard1: IsSharing set to 1 state Mounted 1909 AutoMounter: The following files are open under /storage/sdcard1 1910 AutoMounter: PID: 1429 file: /storage/sdcard1/LG서초/V2010_0313_0413.3gp app: Video comm: Video exe: /system/b2g/plugin-container 1911 AutoMounter: UpdateState: Mounted volume sdcard1 has open files, not sharing or formatting 1955 OMXCodec: [OMX.qcom.video.decoder.mpeg4] pause mState=4 1956 OMXCodec: [OMX.qcom.video.decoder.mpeg4] onStateChange 4 1957 OMXCodec: [OMX.qcom.video.decoder.mpeg4] Now paused. 2080 AutoMounter: UpdateState: umsAvail:1 umsEnabled:1 mode:1 usbCablePluggedIn:1 tryToShare:1 2081 AutoMounter: UpdateState: Volume sdcard1 is Mounted and inserted @ /storage/sdcard1 gen 1 locked 0 sharing y 2082 AutoMounter: UpdateState: Unmounting sdcard1 2083 VolumeManager: Volume sdcard1: changing state from Mounted to Unmounting (2 observers) ========================================== * Issue Case. ========================== <main_NG.log> 67380 AutoMounter: UsbCable switch device: 1 state: plugged 67381 AutoMounter: Calling UpdateState due to USBCableEvent 67382 AutoMounter: UpdateState: umsAvail:1 umsEnabled:1 mode:1 usbCablePluggedIn:1 tryToShare:1 67383 AutoMounter: UpdateState: Volume sdcard1 is Mounted and inserted @ /storage/sdcard1 gen 6 locked 0 sharing y 67384 VolumeManager: Volume sdcard1: IsSharing set to 1 state Mounted 67385 AutoMounter: Calling UpdateState due to VolumeEventStateObserver 67406 AutoMounter: The following files are open under /storage/sdcard1 67407 AutoMounter: PID: 1378 file: /storage/sdcard1/LG서초/V2010_0208_0740.3gp app: Video comm: Video exe: /system/b2g/plugin-container 67413 AutoMounter: UpdateState: Mounted volume sdcard1 has open files, not sharing or formatting 67478 OMXCodec: [OMX.qcom.video.decoder.mpeg4] pause mState=4 67479 OMXCodec: [OMX.qcom.video.decoder.mpeg4] onStateChange 4 67480 OMXCodec: [OMX.qcom.video.decoder.mpeg4] Now paused. ******* it did not do "unmount volume", Even though usb cable was plugged. 67597 AutoMounter: UsbCable switch device: 1 state: unplugged 67598 AutoMounter: Calling UpdateState due to USBCableEvent 67599 AutoMounter: UpdateState: umsAvail:1 umsEnabled:1 mode:1 usbCablePluggedIn:0 tryToShare:0 67600 AutoMounter: UpdateState: Volume sdcard1 is Mounted and inserted @ /storage/sdcard1 gen 6 locked 0 sharing y ******* So, Volume sdcard1's previous state is still left " Mounted" at this time. 67601 AutoMounterSetting: Changing status from FilesOpen to Enabled ================================ When I checked "AutoMounter.cpp", (http://dxr.mozilla.org/mozilla-central/source/dom/system/gonk/AutoMounter.cpp) There is nothing to do in this conditions "tryToShare is 0, volState : STATE_MOUNTED". ======================================================================= void AutoMounter::UpdateState() { .... if ((tryToShare && vol->IsSharingEnabled()) || vol->IsFormatRequested() || vol->IsUnmountRequested()) { .... }else{ // We're going to try and unshare and remount the volumes switch (volState) { case nsIVolume::STATE_SHARED: { // Volume is shared. We can go ahead and unshare. LOG("UpdateState: Unsharing %s", vol->NameStr()); vol->StartUnshare(mResponseCallback); return; // UpdateState will be called again when the Unshare command completes } case nsIVolume::STATE_IDLE: { if (!vol->IsUnmountRequested()) { // Volume is unmounted and mount-requested, try to mount. LOG("UpdateState: Mounting %s", vol->NameStr()); vol->StartMount(mResponseCallback); } return; // UpdateState will be called again when Mount command completes } default: { // Not in a state that we can do anything about. break; } } } } =========================================================================== Please check this. Thank you. Hyeyoung, Kim
Flags: needinfo?(jsmith)
Flags: needinfo?(jsmith)
status-b2g-v1.4: --- → ?
status-b2g-v2.0: --- → ?
Dear, Jason Smith. you are not in charge of this area? Is it needed to request to other mozilla engineer for investigating this issue? The reason why I'm asking you is because you canceled Flags(needinfo?). Thanks. Hyeyoung, Kim
Flags: needinfo?(jsmith)
There's nothing for me to add here.
Flags: needinfo?(jsmith)
Firefox OS is not being worked on
Status: REOPENED → RESOLVED
Closed: 11 years ago7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: