Closed Bug 1063912 Opened 10 years ago Closed 10 years ago

Camera app claiming there is no SD card/memory card inserted, but it is

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: aryx, Unassigned)

Details

Boot2Gecko 2.2.0.0-prerelease 20140905221556 on Geeksphone Keon

The Camera app often claims that there is no SD card inserted, but it is.

Steps to reproduce:
1. Reboot device.
2. Open Camera app.
3. Take a picture.
4. Kill Camera app from card list of open apps.
5. Open Camera app.
6. Kill Camera app from card list of open apps.

Repeat 5 und 6 until you get the message that there is no SD card.

Further information: My Camera app is set to ask me everytime if I want to grant it access to geolocation which I deny without letting it remember the choice.
This may be related to bug 1058016 and/or bug 1058387

I have a suspicion that bug 1040017 caused the bug to surface, and bug 1063877 may have the fix.

So far, I haven't been able to reproduce locally.
I see this too on both my flame and nexus-4. A potentially-relevant logcat:

I/Gecko   ( 2070): ##### DeviceStorage: NS_NewLocalFile failed StorageType: '' path 'videos'
I/Gecko   ( 2070): ##### GetRootDirectoryForType('videos', 'sdcard') failed #####
I/Gecko   ( 2070): ##### DeviceStorage: NS_NewLocalFile failed StorageType: '' path 'pictures'
I/Gecko   ( 2070): ##### GetRootDirectoryForType('pictures', 'sdcard') failed #####
I/Gecko   ( 2070): ##### DeviceStorage: NS_NewLocalFile failed StorageType: '' path 'videos'
I/Gecko   ( 2070): ##### GetRootDirectoryForType('videos', 'sdcard') failed #####
I/Gecko   ( 2070): ##### DeviceStorage: NS_NewLocalFile failed StorageType: '' path 'pictures'
I/Gecko   ( 2070): ##### GetRootDirectoryForType('pictures', 'sdcard') failed #####
E/GeckoConsole( 2070): Content JS LOG at app://camera.gaiamobile.org/js/main.js:7762 in App.prototype.logPerf: domloaded: 676ms
E/GeckoConsole( 2070): Content JS LOG at app://camera.gaiamobile.org/js/main.js:7764 in App.prototype.logPerf: first module: 164ms
E/GeckoConsole( 2070): Content JS LOG at app://camera.gaiamobile.org/js/main.js:7766 in App.prototype.logPerf: critical-path: 1409ms
E/GeckoConsole( 2070): Content JS LOG at app://camera.gaiamobile.org/js/main.js:7768 in App.prototype.logPerf: app-fully-loaded: 2084ms
Once it occurs, it seems to never resolve itself; I must reboot for it to recognize the sd card again.
This is probably a dup of bug 1063877
aryx, are you still seeing this issue with recent builds?
Flags: needinfo?(archaeopteryx)
Can't reproduce the issue anymore with B2G 2.2.0.0-prerelease 20141007133417 on Geeksphone Keon, so likely fixed by bug 1063877.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(archaeopteryx)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.