Closed Bug 781004 Opened 12 years ago Closed 12 years ago

DeviceStorage not loading "video" area (gaia video app broken)

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 777259
blocking-basecamp +

People

(Reporter: cjones, Unassigned)

Details

Attachments

(1 file)

When it loads, there's just a black screen.  In logcat I see

E/nsVolumeService(   77): GetVolumeByPath: Unable to find volume by path: '/sdcard'
E/GeckoConsole(   77): [JavaScript Error: "TypeError: storage is null" {file: "app://video.thisdomaindoesnotexist.org/js/video.js" line: 31}]

I'm making a small test case that I'll attach here in a minute.
Closing the video app and then reopening makes the bug go away.
blocking-basecamp: --- → +
Attached patch Small gaia testSplinter Review
STR
 (1) cd $b2g/gaia && git apply 781004-test.patch && make install-gaia
 (2) Open "Template" app

See 

E/nsVolumeService(  453): GetVolumeByPath: Unable to find volume by path: '/sdcard'
E/GeckoConsole(  453): [JavaScript Error: "TypeError: storage is null" {file: "app://template.gaiamobile.org/index.html" line: 15}]

in logcat, and the message "BUG!!!" in the UI.
The code in this testing patch is extracted from the video app.
I see the same thing.  Basically, we ask the Volume Manager if the "sdcard" exists.  It says, no.  So, we go ahead and return nothing to web content. 

I can also reproduce this in the gallery.
If I flash the phone using ./flash.sh then I see the problem for the run that occurs immediately after the reboot from flashing. If I do an adb reboot, then it works fine.

After my preliminary debugging, it looks like the Volume Manager is failing to become "Ready". Still investigating...
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: