Closed Bug 885132 Opened 12 years ago Closed 12 years ago

[B2G][USB][Gallery] Only pictures from the internal drive are displayed in the Gallery

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-)

RESOLVED DUPLICATE of bug 890482
blocking-b2g -

People

(Reporter: sarsenyev, Unassigned)

Details

Attachments

(1 file)

Attached video video_attachment
Description: When disconnecting USB cable and opening the Gallery app, pictures from the internal drive are displayed in the Gallery when “Share using USB” option is enable in "SD" and "Internal" storage Prerequisite: Have loaded pictures on "Internal" and "SD" storage Repro Steps: 1) Updated to Buri/Inari/Leo/Unagi Build ID: 20130610070206 2) Open "Settings" app from the home screen 3) Enable "USB storage" option 3) Open "Media Storage" option in the Settings 4) Enable "Sharing using USB" option in "Internal" and "SD storage" 5) Open the "Gallery" app with pictures from "Internal" drive and "SD" card 6) Connect USB cable and verify a message "Unplug the phone to use this app" 7) Disconnect USB cable Actual: Only pictures from the "Internal" drive are displayed on the device Expected: Pictures from "Internal" drive and "SD" card are displayed Environmental Variables Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/8e3f39363c54 Gaia: ce3b99781d182ad550a325206990c249b0dbcf0e Platform Version: 18.0 Notes: Repro frequency: 100% Q Analysts Team Priority: (Pri Levels: Pri 1) See the attachment for video
Assignee: nobody → mshiao
blocking-b2g: leo? → leo+
I was unable to reproduce with the following: build id: 20130624034413 git commit info: 2013-06-25 23:13:13 gaia: a3620dc188e68d365dcb65602e7408039798e249 platform version: 18.0 Requesting QA help to confirm and test with higher volume of files 50-100 to see if the above issue reappears.
requesting QA assistance
Keywords: qawanted
have been able to reproduce this bug 1.have pictures on Internal storage and SD card (I had 70 SD and 10 Internal pictures) 2.enable USB(Settings) and USB sharing (Media storage) 3.open Gallery app --> all pictures are shown, including Internal and SD 3.plug in USB cable --> notification pops up "Unplug the phone to use this app" 4.unplug the phone --> gallery reloads and only Internal pictures are shown *killing Gallery app and then reopening it will display all pictures again Leo build info: Gecko http://hg.mozilla.org/releases/mozilla-b2g18/rev/29933d1937db Gaia 1436e2778b90bd74635b0b94d1cf8ccb0d71b60c Build 20130625070217 Version 18.1
Keywords: qawanted
This result in comment 3 looks the same in bug 884688 comment 4, and I believe the root cause is the same.
Depends on: 884688
Leo - this for now given we are not blocking on 884688.
blocking-b2g: leo+ → -
Some additional info This bug is tied to 884688 where due to the asynchronous reporting of a volume's ready state, mediaDB can call 'scan' twice causing a race condition where completion of a full scan by volume A can cancel the full scan of volume B as follows: 1) volume A (internal) dispatches ready 2) volume A starts quick scan 3) volume A sets media.scanning to true 4) volume A checks media.scanning is true and goes into full scan 5) volume B (external) dispatches ready 6) volume B starts quick scan 7) volume B sets media.scanning to true 8) volume A finishes full scan set media.scanning to false 9) volume B checks media.scanning is false and returns (should actually perform a full scan) To test: 1) enable usb storage 2) share both internal and external 3) set default media location to internal 4) upload one image into internal 5) upload a couple of images into external ( goal is to make sure internal finishes its full scan as quickly as possible before external is done with its own quick scan) 6) open gallery and get 'Memory card in use' error message 7) disconnect usb 8) only internal images are loaded I believe resolving the issues mentioned in bug 884688 will fix this problem.
Assignee: mshiao → nobody
This is a duplicate of Bug 890482. Since it is a leo+, I make this one as a duplicated one. But the information of comment 6 is important.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
No longer depends on: 884688
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: